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
0e22bb5d
Unverified
Commit
0e22bb5d
authored
Oct 18, 2019
by
Sébastien Eustace
Committed by
GitHub
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the behavior of the ~= operator (#1481)
Fixes #1153
parent
01b01aa6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
poetry/semver/__init__.py
+1
-1
tests/semver/test_main.py
+1
-1
No files found.
poetry/semver/__init__.py
View file @
0e22bb5d
...
@@ -79,7 +79,7 @@ def parse_single_constraint(constraint): # type: (str) -> VersionConstraint
...
@@ -79,7 +79,7 @@ def parse_single_constraint(constraint): # type: (str) -> VersionConstraint
low
=
version
low
=
version
high
=
version
.
stable
.
next_major
high
=
version
.
stable
.
next_major
else
:
else
:
low
=
Version
(
version
.
major
,
version
.
minor
,
0
)
low
=
Version
(
version
.
major
,
version
.
minor
,
version
.
patch
)
high
=
version
.
stable
.
next_minor
high
=
version
.
stable
.
next_minor
return
VersionRange
(
return
VersionRange
(
...
...
tests/semver/test_main.py
View file @
0e22bb5d
...
@@ -67,7 +67,7 @@ def test_parse_constraint_wildcard(input, constraint):
...
@@ -67,7 +67,7 @@ def test_parse_constraint_wildcard(input, constraint):
(
"~0.3"
,
VersionRange
(
Version
(
0
,
3
,
0
),
Version
(
0
,
4
,
0
),
True
)),
(
"~0.3"
,
VersionRange
(
Version
(
0
,
3
,
0
),
Version
(
0
,
4
,
0
),
True
)),
(
"~3.5"
,
VersionRange
(
Version
(
3
,
5
,
0
),
Version
(
3
,
6
,
0
),
True
)),
(
"~3.5"
,
VersionRange
(
Version
(
3
,
5
,
0
),
Version
(
3
,
6
,
0
),
True
)),
(
"~=3.5"
,
VersionRange
(
Version
(
3
,
5
,
0
),
Version
(
4
,
0
,
0
),
True
)),
# PEP 440
(
"~=3.5"
,
VersionRange
(
Version
(
3
,
5
,
0
),
Version
(
4
,
0
,
0
),
True
)),
# PEP 440
(
"~=3.5.3"
,
VersionRange
(
Version
(
3
,
5
,
0
),
Version
(
3
,
6
,
0
),
True
)),
# PEP 440
(
"~=3.5.3"
,
VersionRange
(
Version
(
3
,
5
,
3
),
Version
(
3
,
6
,
0
),
True
)),
# PEP 440
],
],
)
)
def
test_parse_constraint_tilde
(
input
,
constraint
):
def
test_parse_constraint_tilde
(
input
,
constraint
):
...
...
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