From 446dfe546dd9004b38f4dd9fa9c6ad126240f666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Mollier?= Date: Thu, 14 Dec 2023 19:06:07 +0100 Subject: python3.12.patch: new: port versioneer.py. Closes: #1058220 --- debian/patches/python3.12.patch | 23 +++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 24 insertions(+) create mode 100644 debian/patches/python3.12.patch diff --git a/debian/patches/python3.12.patch b/debian/patches/python3.12.patch new file mode 100644 index 0000000..ecd4137 --- /dev/null +++ b/debian/patches/python3.12.patch @@ -0,0 +1,23 @@ +Description: fix versioneer.py for python3.12. + This probably ought to be fully refreshed, but the change is sufficient for + the Python 3.12 version bump. +Author: Étienne Mollier +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058220 +Forwarded: https://github.com/qiime2/q2-sample-classifier/pull/229 +Last-Update: 2023-12-14 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- q2-sample-classifier.orig/versioneer.py ++++ q2-sample-classifier/versioneer.py +@@ -340,9 +340,9 @@ + # 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() ++ parser = configparser.ConfigParser() + with open(setup_cfg, "r") as f: +- parser.readfp(f) ++ parser.read_file(f) + VCS = parser.get("versioneer", "VCS") # mandatory + + def get(parser, name): diff --git a/debian/patches/series b/debian/patches/series index bee42c3..1b7b2d5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ reduce-precision-in-tests.patch fix-autopkgtest.patch sklearn-1.2.1.patch convert-estimator.patch +python3.12.patch -- cgit v1.2.3