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 cabb941 commit 08295f9Copy full SHA for 08295f9
setup.py
@@ -49,7 +49,7 @@ def getversioncfg():
49
cp0.read(gitarchivecfgfile)
50
if len(cp0.get('DEFAULT', 'commit')) > 20:
51
g = cp0.defaults()
52
- mx = re.search(r'\btag: v(\d[^,]*)', g.pop('refnames'))
+ mx = re.search(r'\btag: (\d[^,]*)', g.pop('refnames'))
53
if mx:
54
g['version'] = mx.group(1)
55
# then try to obtain version data from git.
@@ -75,6 +75,7 @@ def getversioncfg():
75
return cp
76
77
versiondata = getversioncfg()
78
+print(versiondata.get('DEFAULT', 'version'))
79
80
with open(os.path.join(MYDIR, 'README.rst')) as fp:
81
long_description = fp.read()
0 commit comments