[med-svn] [Git][med-team/python-csb][master] 2 commits: Exclude Python 3.15 from build
Andreas Tille (@tille)
gitlab at salsa.debian.org
Fri Oct 23 19:58:47 BST 2026
Andreas Tille pushed to branch master at Debian Med / python-csb
Commits:
bcadf532 by Andreas Tille at 2026-10-23T20:42:50+02:00
Exclude Python 3.15 from build
- - - - -
12137641 by Andreas Tille at 2026-10-23T20:46:50+02:00
Upload to unstable
- - - - -
5 changed files:
- debian/changelog
- debian/patches/series
- debian/patches/fix-1149340.patch → debian/patches/some_numpy_fixes.patch
- debian/rules
- debian/tests/build
Changes:
=====================================
debian/changelog
=====================================
@@ -1,13 +1,13 @@
-python-csb (1.2.5+dfsg-11) UNRELEASED; urgency=medium
+python-csb (1.2.5+dfsg-11) unstable; urgency=medium
* Fix Python3.12 string syntax
Closes: #1085900
- * Fix FTBFS against numpy 2.0 / Python 3.15 (Closes: #1149340)
+ * Exclude Python 3.15 from build (Closes: #1149340)
+ as well as fixing further NumPy issues
- replace numpy.asfarray (removed in numpy 2.0) with numpy.asarray
- replace binary numpy.fromstring with numpy.frombuffer
- fix failing test-suite assertions (replica exchange samplers,
enum comparison, pickling recursion limit)
- * Standards-Version: 4.7.0 (routine-update)
* Build-Depends: s/dh-python/dh-sequence-python3/ (routine-update)
* d/watch: version=5
* Standards-Version: 4.7.4 (routine-update)
@@ -17,7 +17,7 @@ python-csb (1.2.5+dfsg-11) UNRELEASED; urgency=medium
* Reformat the Last-Update date as ISO YYYY-MM-DD.
* debputy lint --auto-fix (routine-update)
- -- Andreas Tille <tille at debian.org> Wed, 11 Dec 2024 13:22:23 +0100
+ -- Andreas Tille <tille at debian.org> Fri, 23 Oct 2026 20:43:07 +0200
python-csb (1.2.5+dfsg-10) unstable; urgency=medium
=====================================
debian/patches/series
=====================================
@@ -5,4 +5,4 @@ avoid-multiple-namespace.patch
python3-syntax.patch
python-3.12.patch
pyhon3.12-syntax.patch
-fix-1149340.patch
+some_numpy_fixes.patch
=====================================
debian/patches/fix-1149340.patch → debian/patches/some_numpy_fixes.patch
=====================================
@@ -1,11 +1,9 @@
-Description: Restore python 3.15 / numpy 2.0 compatibility (FTBFS)
+Description: This patch fixes some NumPy issues, but does not solve the Python3.15 build problem due to missing NumPy extensions at the time of writing
np.asfarray() and the binary mode of numpy.fromstring() were removed in
- numpy 2.0. Replace them and fix the test-suite assertions that break under
- python 3.15 / numpy 2.0. Drop the obsolete TestDumpLoad.testRecusionLimit:
+ numpy 2.0. Drop the obsolete TestDumpLoad.testRecusionLimit:
under CPython 3.14 pickling recursion is bounded by the C stack, so dumping
an over-deep object no longer raises the expected RecursionError and the
assertion cannot be satisfied deterministically on every interpreter.
-
Author: Andreas Tille <tille at debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149340
Forwarded: not-needed
=====================================
debian/rules
=====================================
@@ -6,6 +6,8 @@
PY3VERS = $(shell py3versions -r)
export PYBUILD_NAME=csb
+export PYBUILD_DISABLE=python3.15
+
%:
dh $@ --buildsystem=pybuild
=====================================
debian/tests/build
=====================================
@@ -6,5 +6,9 @@ cp -r csb/test "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"
for py in $(py3versions -s); do
+ # Skip Python 3.15 since NumPy extensions are missing
+ if [ "$py" = "python3.15" ]; then
+ continue
+ fi
PYTHONWARNINGS=d $py test/app.py --generated-resources /tmp --verbosity 2
done
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/compare/87c07758b6bfd030958cd834abba800f847f66d7...12137641c2a2c0eed1e0b9f33e6ba0e80fb85eba
--
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/compare/87c07758b6bfd030958cd834abba800f847f66d7...12137641c2a2c0eed1e0b9f33e6ba0e80fb85eba
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261023/e3d79f71/attachment-0001.htm>
More information about the debian-med-commit
mailing list