[med-svn] [Git][med-team/python-csb][master] 2 commits: Add patch to fix FTBFS with py3.12 (Closes: #1056464)
Nilesh Patra (@nilesh)
gitlab at salsa.debian.org
Sat Dec 9 16:04:43 GMT 2023
Nilesh Patra pushed to branch master at Debian Med / python-csb
Commits:
e59653db by Nilesh Patra at 2023-12-09T15:48:25+00:00
Add patch to fix FTBFS with py3.12 (Closes: #1056464)
- - - - -
6d562eb3 by Nilesh Patra at 2023-12-09T21:19:12+05:30
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/python-3.12.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+python-csb (1.2.5+dfsg-10) unstable; urgency=medium
+
+ * Team Upload.
+ * Add patch to fix FTBFS with py3.12 (Closes: #1056464)
+
+ -- Nilesh Patra <nilesh at debian.org> Sat, 09 Dec 2023 21:19:02 +0530
+
python-csb (1.2.5+dfsg-9) unstable; urgency=medium
* Fix Python3 syntax
=====================================
debian/patches/python-3.12.patch
=====================================
@@ -0,0 +1,44 @@
+Description: Replace imp usage with importlib since the former is removed with py3.12
+Author: Nilesh Patra <nilesh at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056464
+Last-Update: 2023-12-09
+--- a/csb/build.py
++++ b/csb/build.py
+@@ -55,7 +55,7 @@
+ """
+ It is now safe to import any modules
+ """
+-import imp
++import importlib
+ import shutil
+ import tarfile
+
+@@ -333,7 +333,7 @@
+ version = package = None
+
+ try:
+- setup = imp.load_source('setupcsb', 'setup.py')
++ setup = importlib.machinery.SourceFileLoader('setupcsb', 'setup.py').load_module()
+ d = setup.build()
+ version = setup.VERSION
+ package = d.dist_files[0][2]
+--- a/csb/test/__init__.py
++++ b/csb/test/__init__.py
+@@ -159,7 +159,7 @@
+ """
+ import os
+ import sys
+-import imp
++import importlib
+ import types
+ import time
+ import tempfile
+@@ -564,7 +564,7 @@
+ name = os.path.splitext(os.path.abspath(path))[0]
+ name = name.replace('.', '-').rstrip('__init__').strip(os.path.sep)
+
+- return imp.load_source(name, path)
++ return importlib.machinery.SourceFileLoader(name, path).load_module()
+
+ def _recurse(self, obj):
+ """
=====================================
debian/patches/series
=====================================
@@ -3,3 +3,4 @@ reproducible.patch
fix_setup.patch
avoid-multiple-namespace.patch
python3-syntax.patch
+python-3.12.patch
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/compare/c8678ab2b4ae9a0e648195c8c3da748f53f97811...6d562eb33f0ee2379801504716dd102629f84530
--
View it on GitLab: https://salsa.debian.org/med-team/python-csb/-/compare/c8678ab2b4ae9a0e648195c8c3da748f53f97811...6d562eb33f0ee2379801504716dd102629f84530
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/20231209/6e1920ee/attachment-0001.htm>
More information about the debian-med-commit
mailing list