public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pint] rpmlint-etc: add upstream bug reference
Date: Sat, 12 Sep 2026 10:21:45 GMT [thread overview]
Message-ID: <178920850597.1.5696460326552139646.rpms-python-pint-d3cc22fd5d0e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pint
Branch : rpmlint-etc
Commit : d3cc22fd5d0e231c60181dafe98651b587439cf5
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2023-07-17T00:38:51+09:00
Stats : +3/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pint/c/d3cc22fd5d0e231c60181dafe98651b587439cf5?branch=rpmlint-etc
Log:
add upstream bug reference
---
diff --git a/python-pint.spec b/python-pint.spec
index 98f4097..63edfbe 100644
--- a/python-pint.spec
+++ b/python-pint.spec
@@ -63,6 +63,7 @@ Documentation for the pint module
%setup -q -n %{pypi_name}-%{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|' \
@@ -70,13 +71,11 @@ sed -i pint/testsuite/test_numpy.py \
-e 's|np\.alen|len|' \
%{nil}
-# Passing format_spec = 'n' to Fraction causes TypeError with python3.11 and below,
-# now causes ValueError. Workaround for this
-# https://github.com/python/cpython/commit/3e09f3152e518cdc8779b52943b86812114ce071#diff-f561eb7eb97f832b2698837f52c2c2cf23bdb0b31c69cf1f6aaa560280993316R417
-# FIXME this one must be reported upstream
+# 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
reply other threads:[~2026-09-12 10:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178920850597.1.5696460326552139646.rpms-python-pint-d3cc22fd5d0e@fedoraproject.org \
--to=mtasaka@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox