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
e71c3e86
Unverified
Commit
e71c3e86
authored
Mar 08, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of packages with bad markers for PyPiRepository
parent
1bc9cdcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
CHANGELOG.md
+1
-0
poetry/repositories/pypi_repository.py
+8
-1
No files found.
CHANGELOG.md
View file @
e71c3e86
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
### Fixed
### Fixed
-
Fixed
`show`
command for VCS dependencies.
-
Fixed
`show`
command for VCS dependencies.
-
Fixed handling of releases with bad markers in PyPiRepository.
## [0.3.0] - 2018-03-05
## [0.3.0] - 2018-03-05
...
...
poetry/repositories/pypi_repository.py
View file @
e71c3e86
...
@@ -84,7 +84,14 @@ class PyPiRepository(Repository):
...
@@ -84,7 +84,14 @@ class PyPiRepository(Repository):
release_info
=
self
.
get_release_info
(
name
,
version
)
release_info
=
self
.
get_release_info
(
name
,
version
)
package
=
Package
(
name
,
version
,
version
)
package
=
Package
(
name
,
version
,
version
)
for
req
in
release_info
[
'requires_dist'
]:
for
req
in
release_info
[
'requires_dist'
]:
req
=
InstallRequirement
.
from_line
(
req
)
try
:
req
=
InstallRequirement
.
from_line
(
req
)
except
Exception
:
# Probably an invalid marker
# We strip the markers hoping for the best
req
=
req
.
split
(
';'
)[
0
]
req
=
InstallRequirement
.
from_line
(
req
)
name
=
req
.
name
name
=
req
.
name
version
=
str
(
req
.
req
.
specifier
)
version
=
str
(
req
.
req
.
specifier
)
...
...
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