|
|
|
@@ -1,4 +1,5 @@
|
|
|
|
|
%bcond xarray 1
|
|
|
|
|
# python-xarray is not available on EPEL10
|
|
|
|
|
%bcond xarray 0
|
|
|
|
|
# Not yet packaged: python-uncertainties
|
|
|
|
|
%bcond uncertainties 0
|
|
|
|
|
# Requires babel <= 2.8; F42 has 2.16.0
|
|
|
|
@@ -7,12 +8,11 @@
|
|
|
|
|
%bcond pandas 0
|
|
|
|
|
# Not yet packaged: python-mip
|
|
|
|
|
%bcond mip 0
|
|
|
|
|
# Requires dask < 2025.3.0 but F43 and Rawhide are at 2025.9.1
|
|
|
|
|
# See: https://github.com/dask/dask-ml/issues/1016
|
|
|
|
|
# python-dask is not available on EPEL10
|
|
|
|
|
%bcond dask 0
|
|
|
|
|
|
|
|
|
|
Name: python-pint
|
|
|
|
|
Version: 0.25.2
|
|
|
|
|
Version: 0.24.4
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Physical quantities module
|
|
|
|
|
|
|
|
|
@@ -22,9 +22,6 @@ Source: %{pypi_source pint}
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# To manipulate pyproject.toml
|
|
|
|
|
BuildRequires: tomcli
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Pint is a Python package to define, operate and manipulate physical quantities:
|
|
|
|
|
the product of a numerical value and a unit of measurement. It allows
|
|
|
|
@@ -59,14 +56,15 @@ Summary: %{summary}
|
|
|
|
|
%if %{with mip}
|
|
|
|
|
%pyproject_extras_subpkg -n python3-pint mip
|
|
|
|
|
%endif
|
|
|
|
|
%pyproject_extras_subpkg -n python3-pint matplotlib
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n pint-%{version} -p1
|
|
|
|
|
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
|
|
|
|
tomcli set pyproject.toml lists delitem project.optional-dependencies.test \
|
|
|
|
|
pytest-cov
|
|
|
|
|
sed -r -i '/pytest-cov/d' pyproject.toml
|
|
|
|
|
|
|
|
|
|
# pytest-mpl is not available on EPEL10
|
|
|
|
|
sed -r -i '/pytest-mpl/d' pyproject.toml
|
|
|
|
|
|
|
|
|
|
# This module is executable in the source, and it might make sense for upstream
|
|
|
|
|
# to run it directly as a script during development, but this package will
|
|
|
|
@@ -96,8 +94,7 @@ sed -r -i '1{/^#!/d}' pint/pint_convert.py
|
|
|
|
|
%if %{with mip}
|
|
|
|
|
-x mip \
|
|
|
|
|
%endif
|
|
|
|
|
-x matplotlib \
|
|
|
|
|
-x test-all }
|
|
|
|
|
-x test}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|