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
e47313a2
Unverified
Commit
e47313a2
authored
Jun 07, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting
parent
7f82674c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
poetry/version/requirements.py
+2
-6
No files found.
poetry/version/requirements.py
View file @
e47313a2
...
@@ -20,8 +20,7 @@ from poetry.semver import parse_constraint
...
@@ -20,8 +20,7 @@ from poetry.semver import parse_constraint
from
.markers
import
MARKER_EXPR
,
Marker
from
.markers
import
MARKER_EXPR
,
Marker
LEGACY_REGEX
=
(
LEGACY_REGEX
=
r"""
r"""
(?P<operator>(==|!=|<=|>=|<|>))
(?P<operator>(==|!=|<=|>=|<|>))
\s*
\s*
(?P<version>
(?P<version>
...
@@ -32,11 +31,9 @@ LEGACY_REGEX = (
...
@@ -32,11 +31,9 @@ LEGACY_REGEX = (
# them, and a comma since it's a version separator.
# them, and a comma since it's a version separator.
)
)
"""
"""
)
REGEX
=
(
REGEX
=
r"""
r"""
(?P<operator>(~=|==|!=|<=|>=|<|>|===))
(?P<operator>(~=|==|!=|<=|>=|<|>|===))
(?P<version>
(?P<version>
(?:
(?:
...
@@ -128,7 +125,6 @@ REGEX = (
...
@@ -128,7 +125,6 @@ REGEX = (
)
)
)
)
"""
"""
)
class
InvalidRequirement
(
ValueError
):
class
InvalidRequirement
(
ValueError
):
...
...
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