Commit 7e5377ae by Sébastien Eustace

Fix version command for prereleases

parent c426192e
......@@ -5,6 +5,7 @@
### Fixed
- Fixed resolution with bad (empty) releases.
- Fixed `version` for prereleases.
## [0.8.0] - 2018-04-13
......
......@@ -102,9 +102,9 @@ patch, minor, major, prepatch, preminor, premajor, prerelease.
# We bump the prerelease part of the version
sep = ''
if not extra_matches[0]:
extra_matches[0] = 'alpha'
extra_matches[1] = '.0'
sep = '-'
extra_matches[0] = 'a'
extra_matches[1] = '0'
sep = ''
else:
if extras.startswith(('.', '_', '-')):
sep = extras[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment