[med-svn] [Git][med-team/atropos][master] 2 commits: python3.12 compatibility patch

Andreas Tille (@tille) gitlab at salsa.debian.org
Mon Nov 27 07:40:36 GMT 2023



Andreas Tille pushed to branch master at Debian Med / atropos


Commits:
7b6439f8 by Vladimir Petko at 2023-11-27T10:36:14+13:00
python3.12 compatibility patch

- - - - -
68515d78 by Vladimir Petko at 2023-11-27T10:36:21+13:00
changelog

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/python3.12.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+atropos (1.1.31+dfsg-4) UNRELEASED; urgency=medium
+
+  * d/p/python3.12.patch: replace SafeConfigParser with ConfigParser due
+    to SafeConfigParser removal in Python 3.12 (Closes: #1055730).
+
+ -- Vladimir Petko <vladimir.petko at canonical.com>  Mon, 27 Nov 2023 10:35:11 +1300
+
 atropos (1.1.31+dfsg-3) unstable; urgency=medium
 
   * Team Upload.


=====================================
debian/patches/python3.12.patch
=====================================
@@ -0,0 +1,24 @@
+Description: Replace SafeConfigParser with ConfigParser
+ SafeConfigParser was removed in python 3.12. 
+ Replace SafeConfigParser with ConfigParser.
+Author: Vladimir Petko <vladimir.petko at canonical.com>
+Bug: https://github.com/jdidion/atropos/pull/136
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/atropos/+bug/2044660
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055730
+Last-Update: 2023-11-27
+diff --git a/versioneer.py b/versioneer.py
+index 7ed2a21..74bd5c4 100644
+--- a/versioneer.py
++++ b/versioneer.py
+@@ -409,9 +409,8 @@ def get_config_from_root(root):
+     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
+     # the top of versioneer.py for instructions on writing your setup.cfg .
+     setup_cfg = os.path.join(root, "setup.cfg")
+-    parser = configparser.SafeConfigParser()
+-    with open(setup_cfg, "r") as f:
+-        parser.readfp(f)
++    parser = configparser.ConfigParser()
++    parser.read(setup_cfg)
+     VCS = parser.get("versioneer", "VCS")  # mandatory
+ 
+     def get(parser, name):


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 python3.10.patch
+python3.12.patch



View it on GitLab: https://salsa.debian.org/med-team/atropos/-/compare/e3ba414264c2adb0918ea097596e2210005c1628...68515d787de089b989aa73b879ca528c79072adb

-- 
View it on GitLab: https://salsa.debian.org/med-team/atropos/-/compare/e3ba414264c2adb0918ea097596e2210005c1628...68515d787de089b989aa73b879ca528c79072adb
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/20231127/8db981d7/attachment-0001.htm>


More information about the debian-med-commit mailing list