Skip to content

Commit bb2380a

Browse files
committed
fix: fix versioneer
1 parent 1e0ef76 commit bb2380a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

versioneer.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ def get_config_from_root(root):
400400
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
401401
# the top of versioneer.py for instructions on writing your setup.cfg .
402402
setup_cfg = os.path.join(root, "setup.cfg")
403-
parser = configparser.SafeConfigParser()
403+
parser = configparser.ConfigParser()
404404
with open(setup_cfg, "r") as f:
405-
parser.readfp(f)
405+
parser.read_file(f)
406406
VCS = parser.get("versioneer", "VCS") # mandatory
407407

408408
def get(parser, name):
@@ -476,9 +476,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
476476
return stdout
477477

478478

479-
LONG_VERSION_PY[
480-
"git"
481-
] = """
479+
LONG_VERSION_PY["git"] = """
482480
# This file helps to compute a version number in source trees obtained from
483481
# git-archive tarball (such as those provided by githubs download-from-tag
484482
# feature). Distribution tarballs (built by setup.py sdist) and build

0 commit comments

Comments
 (0)