blob: ecd4137a36e0ea30f5a8eb201b5e6897f73b1c8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 <emollier@debian.org>
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):
|