Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
22cf4155
Unverified
Commit
22cf4155
authored
Jun 04, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix setting an explicit version in version command
parent
aaacde6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
CHANGELOG.md
+1
-0
poetry/console/commands/version.py
+1
-1
tests/console/commands/test_version.py
+1
-0
No files found.
CHANGELOG.md
View file @
22cf4155
...
...
@@ -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
...
...
poetry/console/commands/version.py
View file @
22cf4155
...
...
@@ -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
tests/console/commands/test_version.py
View file @
22cf4155
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment