[med-svn] [Git][python-team/packages/python-easydev][master] 2 commits: Fix multicore tests on Python 3.14
Colin Watson (@cjwatson)
gitlab at salsa.debian.org
Tue Jan 6 12:43:48 GMT 2026
Colin Watson pushed to branch master at Debian Python Team / packages / python-easydev
Commits:
0ebf4b23 by Colin Watson at 2026-01-06T12:43:24+00:00
Fix multicore tests on Python 3.14
Closes: #1123235
- - - - -
be2ca1bb by Colin Watson at 2026-01-06T12:43:31+00:00
releasing package python-easydev version 0.13.3+dfsg1-2
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/py314-multicore.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-easydev (0.13.3+dfsg1-2) unstable; urgency=medium
+
+ * Team upload.
+ * Fix multicore tests on Python 3.14 (closes: #1123235).
+
+ -- Colin Watson <cjwatson at debian.org> Tue, 06 Jan 2026 12:43:25 +0000
+
python-easydev (0.13.3+dfsg1-1) unstable; urgency=medium
* Team upload.
=====================================
debian/patches/py314-multicore.patch
=====================================
@@ -0,0 +1,45 @@
+From: Colin Watson <cjwatson at debian.org>
+Date: Tue, 6 Jan 2026 12:38:19 +0000
+Subject: Fix multicore tests on Python 3.14
+
+The pool initializer function must be pickleable.
+
+Forwarded: https://github.com/cokelaer/easydev/pull/40
+Bug-Debian: https://bugs.debian.org/1123235
+Last-Update: 2026-01-06
+---
+ easydev/multicore.py | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/easydev/multicore.py b/easydev/multicore.py
+index c977525..c64c0b9 100644
+--- a/easydev/multicore.py
++++ b/easydev/multicore.py
+@@ -19,6 +19,12 @@ from multiprocessing import Pool, Process, Queue, cpu_count
+ __all__ = ["MultiProcessing"]
+
+
++def _init_worker():
++ import signal
++
++ signal.signal(signal.SIGINT, signal.SIG_IGN)
++
++
+ class MultiProcessing(object):
+ """Class to run jobs in an asynchronous manner.
+
+@@ -102,13 +108,8 @@ class MultiProcessing(object):
+ self.pb = Progress(len(self.jobs), 1)
+ self.pb.animate(0)
+
+- def init_worker():
+- import signal
+-
+- signal.signal(signal.SIGINT, signal.SIG_IGN)
+-
+ self.results = []
+- self.pool = Pool(self.maxcpu, init_worker)
++ self.pool = Pool(self.maxcpu, _init_worker)
+
+ for process in self.jobs:
+ self.pool.apply_async(process._target, process._args, process._kwargs, callback=self._cb)
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
privacy.patch
+py314-multicore.patch
View it on GitLab: https://salsa.debian.org/python-team/packages/python-easydev/-/compare/cd29f3e2502fd05de082325db0146aa9632dde9c...be2ca1bbd5b628d20c2755594b99be839a9b57ff
--
View it on GitLab: https://salsa.debian.org/python-team/packages/python-easydev/-/compare/cd29f3e2502fd05de082325db0146aa9632dde9c...be2ca1bbd5b628d20c2755594b99be839a9b57ff
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260106/210b713b/attachment-0001.htm>
More information about the debian-med-commit
mailing list