FTBFS and update to 0.16.1
This commit is contained in:
+16
-6
@@ -1,9 +1,9 @@
|
||||
%global pypi_name Pint
|
||||
%bcond_without bootstrap
|
||||
%bcond_with docs
|
||||
|
||||
Name: python-pint
|
||||
Version: 0.16
|
||||
Release: 1%{?dist}
|
||||
Version: 0.16.1
|
||||
Release: 2%{?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 -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
|
||||
@@ -85,13 +91,17 @@ 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
|
||||
* 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user