Blame SPECS/python-pint.spec

159572
%global pypi_name Pint
159572
%bcond_with docs
159572
159572
Name:           python-pint
159572
Version:        0.16.1
159572
Release:        3%{?dist}
159572
Summary:        Physical quantities module
159572
159572
License:        BSD
159572
URL:            https://github.com/hgrecco/pint
159572
Source0:        %pypi_source
159572
159572
BuildArch:      noarch
159572
BuildRequires:  pyproject-rpm-macros
159572
159572
%description
159572
Pint is Python module/package to define, operate and manipulate physical
159572
quantities: the product of a numerical value and a unit of measurement.
159572
It allows arithmetic operations between them and conversions from and
159572
to different units.
159572
159572
It is distributed with a comprehensive list of physical units, prefixes
159572
and constants.
159572
159572
%package -n python3-pint
159572
Summary:        Physical quantities module
159572
%{?python_provide:%python_provide python3-pint}
159572
159572
BuildRequires:  python3-numpy
159572
BuildRequires:  python3-pytest
159572
159572
%description -n python3-pint
159572
Pint is Python module/package to define, operate and manipulate physical
159572
quantities: the product of a numerical value and a unit of measurement.
159572
It allows arithmetic operations between them and conversions from and
159572
to different units.
159572
159572
It is distributed with a comprehensive list of physical units, prefixes
159572
and constants.
159572
159572
%if %{with docs}
159572
%package -n python3-pint-doc
159572
Summary:        Documentation for the pint module
159572
%{?python_provide:%python_provide python3-pint-doc}
159572
159572
BuildRequires:  pandoc
159572
BuildRequires:  python3-graphviz
159572
BuildRequires:  python3-ipykernel
159572
BuildRequires:  python3-jupyter-client
159572
BuildRequires:  python3-matplotlib
159572
BuildRequires:  python3-nbsphinx
159572
BuildRequires:  python3-pandas
159572
BuildRequires:  python3-dask
159572
BuildRequires:  python3-pygments
159572
BuildRequires:  python3-sphinx
159572
BuildRequires:  python3-xarray
159572
159572
%description -n python3-pint-doc
159572
Documentation for the pint module
159572
%endif
159572
159572
%prep
159572
%setup -q -n %{pypi_name}-%{version}
159572
sed -i 's/, "setuptools_scm.*"//' pyproject.toml
159572
159572
# drop numpy version requirement
159572
sed -i '/@helpers.requires_numpy_at_least("1.16")/d' pint/testsuite/test_quantity.py
159572
159572
%generate_buildrequires
159572
%pyproject_buildrequires -x test
159572
159572
%build
159572
%pyproject_wheel
159572
159572
%if %{with docs}
159572
export PYTHONPATH="$( pwd ):$PYTHONPATH"
159572
sphinx-build-3 docs html
159572
# remove the sphinx-build leftovers
159572
159572
rm -rf html/.{doctrees,buildinfo}
159572
%endif
159572
159572
%install
159572
%pyproject_install
159572
159572
%check
159572
%pytest
159572
159572
%files -n python3-pint
159572
%license LICENSE
159572
%{_bindir}/pint-convert
159572
%{python3_sitelib}/pint
159572
%{python3_sitelib}/Pint-%{version}.*
159572
159572
%if %{with docs}
159572
%files -n python3-pint-doc
159572
%doc html
159572
%license docs/_themes/LICENSE
159572
%endif
159572
159572
%changelog
159572
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
159572
159572
* Sun Jan 24 2021 Matthias Runge <mrunge@redhat.com> - 0.16.1-2
159572
- rebuild without bootstrap
159572
- fix FTBFS (rhbz#1914333)
159572
159572
* Mon Sep 21 2020 Lumír Balhar <lbalhar@redhat.com> - 0.13-3
159572
- Fix test dependencies and execution
159572
159572
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
159572
159572
* Tue Jun 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.13-1
159572
- Update to 0.13
159572
159572
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.10.1-3
159572
- Rebuilt for Python 3.9
159572
159572
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-2
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
159572
159572
* Thu Jan 09 2020 Matthias Runge <mrunge@redhat.com> - 0.10.1-1
159572
- update to 0.10.1 (rhbz#1789066)
159572
- modernize specfile
159572
159572
* Thu Sep 05 2019 Matthias Runge <mrunge@redhat.com> - 0.9-5
159572
- skip test_quantity for now (rhbz#1706212)
159572
159572
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-5
159572
- Rebuilt for Python 3.8
159572
159572
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
159572
159572
* Wed Jul 10 2019 Matthias Runge <mrunge@redhat.com> - 0.9-3
159572
- Use context manager for assertWarns and fix DeprecationWarning
159572
  resolves: rhbz#1706212
159572
159572
* Sun Mar 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9-2
159572
- Subpackages python2-pint, python2-pint-doc have been removed
159572
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
159572
159572
* Mon Feb 25 2019 Yatin Karel <ykarel@redhat.com> - 0.9-1
159572
- Update to 0.9
159572
159572
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-16
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
159572
159572
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-15
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
159572
159572
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6-14
159572
- Rebuilt for Python 3.7
159572
159572
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-13
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
159572
159572
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.6-12
159572
- Update Python 2 dependency declarations to new packaging standards
159572
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
159572
159572
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-11
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
159572
159572
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-10
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
159572
159572
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6-9
159572
- Rebuild for Python 3.6
159572
159572
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-8
159572
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
159572
159572
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-7
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
159572
159572
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-6
159572
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
159572
159572
* Sun Sep 06 2015 Matthias Runge <mrunge@redhat.com> - 0.6-5
159572
- fix uppercase/lowercase naming, fix obsoletes
159572
159572
* Fri Sep 04 2015 Chandan Kumar <chkumar246@gmail.com> - 0.6-4
159572
- Add python2 and python3 subpackages
159572
159572
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-3
159572
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
159572
159572
* Mon Dec 15 2014 Matthias Runge <mrunge@redhat.com> - 0.6-2
159572
- change BR python-devel to python2-devel (rhbz#1173109)
159572
159572
* Thu Dec 11 2014 Matthias Runge <mrunge@redhat.com> - 0.6-1
159572
- Initial package.