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 421fa88 commit 2743575Copy full SHA for 2743575
setuptools_scm/version.py
@@ -92,10 +92,11 @@ def guess_next_version(tag_version, distance):
92
if '.dev' in version:
93
prefix, tail = version.rsplit('.dev', 1)
94
assert tail == '0', 'own dev numbers are unsupported'
95
- return '%s.dev%s' % (prefix, distance)
96
else:
97
prefix, tail = re.match('(.*?)(\d+)$', version).groups()
98
- return '%s%d.dev%s' % (prefix, int(tail) + 1, distance)
+ prefix = '%s%d' % (prefix, int(tail) + 1)
+ suffix = '.dev%s' % distance
99
+ return prefix + suffix
100
101
102
def guess_next_dev_version(version):
0 commit comments