Skip to content

Commit 08295f9

Browse files
committed
Remove v tagging
1 parent cabb941 commit 08295f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def getversioncfg():
4949
cp0.read(gitarchivecfgfile)
5050
if len(cp0.get('DEFAULT', 'commit')) > 20:
5151
g = cp0.defaults()
52-
mx = re.search(r'\btag: v(\d[^,]*)', g.pop('refnames'))
52+
mx = re.search(r'\btag: (\d[^,]*)', g.pop('refnames'))
5353
if mx:
5454
g['version'] = mx.group(1)
5555
# then try to obtain version data from git.
@@ -75,6 +75,7 @@ def getversioncfg():
7575
return cp
7676

7777
versiondata = getversioncfg()
78+
print(versiondata.get('DEFAULT', 'version'))
7879

7980
with open(os.path.join(MYDIR, 'README.rst')) as fp:
8081
long_description = fp.read()

0 commit comments

Comments
 (0)