We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 098a856 commit f51b91dCopy full SHA for f51b91d
versioneer.py
@@ -339,9 +339,14 @@ def get_config_from_root(root):
339
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
340
# the top of versioneer.py for instructions on writing your setup.cfg .
341
setup_cfg = os.path.join(root, "setup.cfg")
342
- parser = configparser.SafeConfigParser()
343
- with open(setup_cfg, "r") as f:
344
- parser.readfp(f)
+ try:
+ parser = configparser.SafeConfigParser()
+ with open(setup_cfg, "r") as f:
345
+ parser.readfp(f)
346
+ except AttributeError:
347
+ parser = configparser.ConfigParser()
348
349
+ parser.read_file(f)
350
VCS = parser.get("versioneer", "VCS") # mandatory
351
352
def get(parser, name):
0 commit comments