forked from pool/python-StrEnum
- Switch to GitHub tarball for tests, and run the testsuite.
- Add patch support-python-312.patch: * Support configparser changes in Python 3.12. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-StrEnum?expand=0&rev=5
This commit is contained in:
25
support-python-312.patch
Normal file
25
support-python-312.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From 896bef1b7e4a50c8b53d90c8d2fb5c0164f08ecd Mon Sep 17 00:00:00 2001
|
||||
From: Fabian Affolter <mail@fabian-affolter.ch>
|
||||
Date: Wed, 17 Jan 2024 17:15:30 +0100
|
||||
Subject: [PATCH] Replace SafeConfigParser and readfp
|
||||
|
||||
---
|
||||
versioneer.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/versioneer.py b/versioneer.py
|
||||
index 64fea1c..3aa5da3 100644
|
||||
--- a/versioneer.py
|
||||
+++ b/versioneer.py
|
||||
@@ -339,9 +339,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):
|
||||
Reference in New Issue
Block a user