public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Maxwell G <maxwell@gtmx.me>
To: git-commits@fedoraproject.org
Subject: [rpms/python-commoncode] rawhide: Address scancode Python 3.14 failures
Date: Sat, 06 Jun 2026 19:12:31 GMT [thread overview]
Message-ID: <178077315156.1.2630808297846832533.rpms-python-commoncode-8a7034a15391@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-commoncode
Branch : rawhide
Commit : 8a7034a15391da262e23627d39c0b62cf585df4d
Author : Maxwell G <maxwell@gtmx.me>
Date : 2026-06-06T13:41:43-05:00
Stats : +29/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-commoncode/c/8a7034a15391da262e23627d39c0b62cf585df4d?branch=rawhide
Log:
Address scancode Python 3.14 failures
---
diff --git a/0001-Make-py314-constant-also-apply-to-py315.patch b/0001-Make-py314-constant-also-apply-to-py315.patch
new file mode 100644
index 0000000..65bef99
--- /dev/null
+++ b/0001-Make-py314-constant-also-apply-to-py315.patch
@@ -0,0 +1,27 @@
+From 576cf67f3a4528d221df9327f945a35153f70b01 Mon Sep 17 00:00:00 2001
+From: Maxwell G <maxwell@gtmx.me>
+Date: Sat, 6 Jun 2026 13:29:52 -0500
+Subject: [PATCH] Make py314 constant also apply to py315
+
+This addresses test failures in scancode. The issues that broke the
+tests in Python 3.14 also apply to Python 3.15.
+---
+ src/commoncode/system.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/commoncode/system.py b/src/commoncode/system.py
+index 3c5a674..5f80830 100644
+--- a/src/commoncode/system.py
++++ b/src/commoncode/system.py
+@@ -148,7 +148,7 @@ py310 = py3 and _sys_v1 == 10
+ py311 = py3 and _sys_v1 == 11
+ py312 = py3 and _sys_v1 == 12
+ py313 = py3 and _sys_v1 == 13
+-py314 = py3 and _sys_v1 == 14
++py314 = py3 and _sys_v1 >= 14
+
+ # Do not let Windows error pop up messages with default SetErrorMode
+ # See http://msdn.microsoft.com/en-us/library/ms680621(VS100).aspx
+--
+2.54.0
+
diff --git a/python-commoncode.spec b/python-commoncode.spec
index 49c0555..4f5e9d6 100644
--- a/python-commoncode.spec
+++ b/python-commoncode.spec
@@ -13,6 +13,8 @@ License: Apache-2.0 AND Python-2.0 AND LicenseRef-Fedora-Public-Domain
URL: https://github.com/nexB/commoncode
Source: %url/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
+Patch: 0001-Make-py314-constant-also-apply-to-py315.patch
+
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(pytest)
reply other threads:[~2026-06-06 19:12 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=178077315156.1.2630808297846832533.rpms-python-commoncode-8a7034a15391@fedoraproject.org \
--to=maxwell@gtmx.me \
--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