Skip to content

Commit

Permalink
Merge pull request #33 from Sparks29032/new_version
Browse files Browse the repository at this point in the history
No 'v' tag
  • Loading branch information
Sparks29032 authored Oct 2, 2023
2 parents 6735cf0 + 5fb074b commit 40d2337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def getversioncfg():
cp0.read(gitarchivecfgfile)
if len(cp0.get('DEFAULT', 'commit')) > 20:
g = cp0.defaults()
mx = re.search(r'\btag: v(\d[^,]*)', g.pop('refnames'))
mx = re.search(r'\btag: (\d[^,]*)', g.pop('refnames'))
if mx:
g['version'] = mx.group(1)
# then try to obtain version data from git.
Expand Down

0 comments on commit 40d2337

Please sign in to comment.