2 Commits
f43 ... epel10

Author SHA1 Message Date
Martin Hoyer
d61024c99f Disable xarray subpackage 2025-02-11 16:59:15 +01:00
Martin Hoyer
727e6be146 Disable dask subpackage and remove pytest-mpl dep 2025-02-11 16:32:22 +01:00
3 changed files with 10 additions and 16 deletions

3
.gitignore vendored
View File

@@ -17,6 +17,3 @@
/pint-0.24.1.tar.gz
/pint-0.24.3.tar.gz
/pint-0.24.4.tar.gz
/pint-0.25.tar.gz
/pint-0.25.1.tar.gz
/pint-0.25.2.tar.gz

View File

@@ -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

View File

@@ -1 +1 @@
SHA512 (pint-0.25.2.tar.gz) = dbad952e1b8c99aef9c105c594962c2a68347d98068b51bda6ec25d190b2b2462c0562b40f30c40f4c0d656b26408f747ae875a9e2fa0cd9c1a74f27ac16122a
SHA512 (pint-0.24.4.tar.gz) = ff663d361d358cd21c856fef3cd35da3afb286fc173a4a3e13c926b312636d109ca0543eb46a1bf76a83381889643ae0eac1c0a986f57b2026d8f9d4d127d8d6