|
|
|
@@ -1,9 +1,9 @@
|
|
|
|
|
%global pypi_name Pint
|
|
|
|
|
%bcond_without bootstrap
|
|
|
|
|
%bcond_with docs
|
|
|
|
|
|
|
|
|
|
Name: python-pint
|
|
|
|
|
Version: 0.13
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 0.16.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Physical quantities module
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@@ -38,7 +38,7 @@ to different units.
|
|
|
|
|
It is distributed with a comprehensive list of physical units, prefixes
|
|
|
|
|
and constants.
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%package -n python3-pint-doc
|
|
|
|
|
Summary: Documentation for the pint module
|
|
|
|
|
%{?python_provide:%python_provide python3-pint-doc}
|
|
|
|
@@ -49,6 +49,9 @@ BuildRequires: python3-ipykernel
|
|
|
|
|
BuildRequires: python3-jupyter-client
|
|
|
|
|
BuildRequires: python3-matplotlib
|
|
|
|
|
BuildRequires: python3-nbsphinx
|
|
|
|
|
BuildRequires: python3-pandas
|
|
|
|
|
BuildRequires: python3-dask
|
|
|
|
|
BuildRequires: python3-pygments
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: python3-xarray
|
|
|
|
|
|
|
|
|
@@ -59,13 +62,16 @@ Documentation for the pint module
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
|
|
# drop numpy version requirement
|
|
|
|
|
sed -i '/@helpers.requires_numpy_at_least("1.16")/d' pint/testsuite/test_quantity.py
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -t
|
|
|
|
|
%pyproject_buildrequires -x test
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
|
|
|
|
sphinx-build-3 docs html
|
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
@@ -77,7 +83,7 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%tox
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files -n python3-pint
|
|
|
|
|
%license LICENSE
|
|
|
|
@@ -85,13 +91,23 @@ rm -rf html/.{doctrees,buildinfo}
|
|
|
|
|
%{python3_sitelib}/pint
|
|
|
|
|
%{python3_sitelib}/Pint-%{version}.*
|
|
|
|
|
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files -n python3-pint-doc
|
|
|
|
|
%doc html
|
|
|
|
|
%license docs/_themes/LICENSE
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 24 2021 Matthias Runge <mrunge@redhat.com> - 0.16.1-2
|
|
|
|
|
- rebuild without bootstrap
|
|
|
|
|
- fix FTBFS (rhbz#1914333)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 21 2020 Lumír Balhar <lbalhar@redhat.com> - 0.13-3
|
|
|
|
|
- Fix test dependencies and execution
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|