summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Mollier <emollier@debian.org>2023-12-14 19:06:53 +0100
committerÉtienne Mollier <emollier@debian.org>2023-12-14 19:06:53 +0100
commit0c08dd77aff73e18202d47a17ecddb607d49731d (patch)
tree501e36a2bfc0e401d2f94f6bc6e9b5b029cc93c0
parentaca437068d6b2d64decfd6d2f8369a8e02ad1911 (diff)
fix versioneer.py for python3.12.
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 probably ought to be fully refreshed, but the change is sufficient for the Python 3.12 version bump. Last-Update: 2023-12-14 Gbp-Pq: Name python3.12.patch
-rw-r--r--versioneer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/versioneer.py b/versioneer.py
index a5e7a20..886455f 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -340,9 +340,9 @@ 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()
+ 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):