9 Commits
f42 ... rawhide

Author SHA1 Message Date
jinqiang zhang
d60f241c79 remove all subpkg 2026-03-02 18:10:00 +08:00
Fedora Release Engineering
c5334005ad Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 08:48:23 +00:00
Federico Pellegrin
90facad227 Bump to 0.25.2 (rhbz#2411726), reenable xarray, update dash status 2025-11-12 06:01:57 +01:00
Python Maint
62ba43a318 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:59:32 +02:00
Federico Pellegrin
c59ae2ba3d Add new matplotlib extra, use tomcli to remove cov instead of sed. 2025-08-16 12:44:20 +02:00
Federico Pellegrin
7452bc1c85 Update to 0.25 (rhbz#2387323) 2025-08-16 06:33:31 +02:00
Python Maint
6c9be93cfb Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:23:13 +02:00
Fedora Release Engineering
4475febe51 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 09:21:51 +00:00
Benjamin A. Beasley
7f147e1bbf Temporarily omit dask/xarray to build for Python 3.14
- Disable dask extra until it can be built
- Disable xarray extra until it can be built, and due to a circular
  dependency
- Fixes RHBZ#2372030
2025-06-15 07:03:41 -04:00
3 changed files with 14 additions and 46 deletions

3
.gitignore vendored
View File

@@ -17,3 +17,6 @@
/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

@@ -7,11 +7,12 @@
%bcond pandas 0
# Not yet packaged: python-mip
%bcond mip 0
# may need to be disabled sometimes for bootstrapping
%bcond dask 1
# Requires dask < 2025.3.0 but F43 and Rawhide are at 2025.9.1
# See: https://github.com/dask/dask-ml/issues/1016
%bcond dask 0
Name: python-pint
Version: 0.24.4
Version: 0.25.2
Release: %autorelease
Summary: Physical quantities module
@@ -21,6 +22,9 @@ 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
@@ -36,31 +40,12 @@ Summary: %{summary}
%description -n python3-pint %{_description}
%pyproject_extras_subpkg -n python3-pint numpy
%if %{with xarray}
%pyproject_extras_subpkg -n python3-pint xarray
%endif
%if %{with dask}
%pyproject_extras_subpkg -n python3-pint dask
%endif
%if %{with uncertainties}
%pyproject_extras_subpkg -n python3-pint uncertainties
%endif
%if %{with babel}
%pyproject_extras_subpkg -n python3-pint babel
%endif
%if %{with pandas}
%pyproject_extras_subpkg -n python3-pint pandas
%endif
%if %{with mip}
%pyproject_extras_subpkg -n python3-pint mip
%endif
%prep
%autosetup -n pint-%{version} -p1
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -r -i '/pytest-cov/d' pyproject.toml
tomcli set pyproject.toml lists delitem project.optional-dependencies.test \
pytest-cov
# 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
@@ -70,27 +55,7 @@ sed -r -i '/pytest-cov/d' pyproject.toml
sed -r -i '1{/^#!/d}' pint/pint_convert.py
%generate_buildrequires
%{pyproject_buildrequires \
-x numpy \
%if %{with uncertainties}
-x uncertainties \
%endif
%if %{with babel}
-x babel \
%endif
%if %{with pandas}
-x pandas \
%endif
%if %{with xarray}
-x xarray \
%endif
%if %{with dask}
-x dask \
%endif
%if %{with mip}
-x mip \
%endif
-x test}
%{pyproject_buildrequires}
%build
%pyproject_wheel

View File

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