public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-commoncode] rawhide: Address scancode Python 3.14 failures
@ 2026-06-06 19:12 Maxwell G
0 siblings, 0 replies; only message in thread
From: Maxwell G @ 2026-06-06 19:12 UTC (permalink / raw)
To: git-commits
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-06 19:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-06 19:12 [rpms/python-commoncode] rawhide: Address scancode Python 3.14 failures Maxwell G
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox