Commit 22cf4155 by Sébastien Eustace

Fix setting an explicit version in version command

parent aaacde6d
......@@ -10,6 +10,7 @@
- Fixed bad version number being picked with private repositories.
- Fixed handling of duplicate dependencies with same constraint.
- Fixed installation from custom repositories.
- Fixed setting an explicit version in `version` command.
## [0.10.2] - 2018-05-31
......
......@@ -81,6 +81,6 @@ patch, minor, major, prepatch, preminor, premajor, prerelease.
else:
new = version.next_patch.first_prerelease
else:
new = rule
new = Version.parse(rule)
return new
......@@ -31,6 +31,7 @@ def command():
("1.2.3beta1", "prerelease", "1.2.3-beta.2"),
("1.2.3b1", "prerelease", "1.2.3-beta.2"),
("1.2.3", "prerelease", "1.2.4-alpha.0"),
("0.0.0", "1.2.3", "1.2.3"),
],
)
def test_increment_version(version, rule, expected, command):
......
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