From f1b5b2ff9d567e503e410326100f582894f4b281 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 25 Jan 2021 08:30:20 +0100 Subject: [PATCH] FTBFS and update to 0.16.1 --- python-pint.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/python-pint.spec b/python-pint.spec index c23fa87..1eb4889 100644 --- a/python-pint.spec +++ b/python-pint.spec @@ -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 - 0.16.1-2 +- rebuild without bootstrap +- fix FTBFS (rhbz#1914333) + * Mon Sep 21 2020 Lumír Balhar - 0.13-3 - Fix test dependencies and execution