From 804509aff99acffc012a067006cd6d4ef4c4e23c Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Thu, 13 Jul 2023 19:29:54 -0700 Subject: [PATCH] Fixed build issue with Python 3.12 --- ChangeLog.txt | 1 + src/gitversion/versioneer.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 65e0e55b..0f1ff74e 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,6 +1,7 @@ Version 0.11.4 (unreleased) --------------- * Fixed build issue with GCC 13 (see https://github.com/cryfs/cryfs/pull/448 ) +* Fixed build issue with Python 3.12 (see https://github.com/cryfs/cryfs/issues/459 ) Version 0.11.3 --------------- diff --git a/src/gitversion/versioneer.py b/src/gitversion/versioneer.py index 4b4a71d4..1c59b1d6 100644 --- a/src/gitversion/versioneer.py +++ b/src/gitversion/versioneer.py @@ -406,9 +406,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):