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
0ac244fa
Unverified
Commit
0ac244fa
authored
Mar 13, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of post releases
parent
89208696
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
CHANGELOG.md
+4
-0
poetry/semver/helpers.py
+7
-0
No files found.
CHANGELOG.md
View file @
0ac244fa
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
-
Added hashes check when installing packages.
-
Added hashes check when installing packages.
### Fixed
-
Fixed handking of post releases.
## [0.4.2] - 2018-03-10
## [0.4.2] - 2018-03-10
...
...
poetry/semver/helpers.py
View file @
0ac244fa
...
@@ -64,6 +64,11 @@ def normalize_version(version):
...
@@ -64,6 +64,11 @@ def normalize_version(version):
# add version modifiers if a version was matched
# add version modifiers if a version was matched
if
index
is
not
None
:
if
index
is
not
None
:
if
len
(
m
.
groups
())
-
1
>=
index
and
m
.
group
(
index
):
if
len
(
m
.
groups
())
-
1
>=
index
and
m
.
group
(
index
):
if
m
.
group
(
index
)
==
'post'
:
# Post releases should be considered
# stable releases
return
version
version
=
f
'{version}'
\
version
=
f
'{version}'
\
f
'-{_expand_stability(m.group(index))}'
f
'-{_expand_stability(m.group(index))}'
...
@@ -105,6 +110,8 @@ def parse_stability(version: str) -> str:
...
@@ -105,6 +110,8 @@ def parse_stability(version: str) -> str:
return
'alpha'
return
'alpha'
elif
m
.
group
(
1
)
in
[
'rc'
,
'c'
]:
elif
m
.
group
(
1
)
in
[
'rc'
,
'c'
]:
return
'RC'
return
'RC'
elif
m
.
group
(
1
)
==
'post'
:
return
'stable'
else
:
else
:
return
'dev'
return
'dev'
...
...
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