public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pint] rpmlint-etc: Drop obsolete patches
@ 2026-09-12 10:21 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-12 10:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pint
Branch : rpmlint-etc
Commit : 11bba046ebca33721c28a88bc413b04d8e1e2cd1
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2023-10-30T07:16:59-04:00
Stats : +0/-19 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pint/c/11bba046ebca33721c28a88bc413b04d8e1e2cd1?branch=rpmlint-etc
Log:
Drop obsolete patches
---
diff --git a/python-pint.spec b/python-pint.spec
index 68d0ee1..c40f80d 100644
--- a/python-pint.spec
+++ b/python-pint.spec
@@ -39,25 +39,6 @@ Provides: bundled(python3dist(flexcache)) = 0.2
%prep
%autosetup -n Pint-%{version}
-# numpy 1.24.x removes np.float np.alen and so on
-# These are already fixed upstream
-grep -rl "dtype=np\.float" . | xargs sed -i -e 's|dtype=np\.float|dtype=float|'
-sed -i pint/testsuite/test_numpy.py \
- -e 's|dtype=float32|dtype=np.float32|' \
- -e 's|dtype=float64|dtype=np.float64|' \
- -e 's|np\.alen|len|' \
- %{nil}
-
-# Workaround for https://github.com/hgrecco/pint/issues/1818
-sed -i pint/testsuite/__init__.py -e '115s|except TypeError:|except (TypeError, ValueError):|'
-
-# python 3.12 removes deprecated unittest.assertEquals
-# This is already fixed upstream
-sed -i pint/testsuite/test_contexts.py -e 's|self.assertEquals|self.assertEqual|'
-
-# drop numpy version requirement
-sed -i '/@helpers.requires_numpy_at_least("1.16")/d' pint/testsuite/test_quantity.py
-
# We are not sure where this was bundled from, but we are pretty sure it was
# bundled from somewhere! We are not building HTML documentation, so we do not
# need it.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-12 10:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-12 10:21 [rpms/python-pint] rpmlint-etc: Drop obsolete patches Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox