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
7f5edda4
Unverified
Commit
7f5edda4
authored
Mar 10, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a TypeError when requires_dist is null on PyPI
parent
b0d33a15
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
CHANGELOG.md
+8
-0
poetry/repositories/pypi_repository.py
+2
-1
No files found.
CHANGELOG.md
View file @
7f5edda4
# Change Log
# Change Log
## [Unreleased]
### Fixed
-
Fixed TypeError when
`requires_dist`
is null on PyPI.
## [0.4.1] - 2018-03-08
## [0.4.1] - 2018-03-08
### Fixed
### Fixed
...
...
poetry/repositories/pypi_repository.py
View file @
7f5edda4
...
@@ -83,7 +83,8 @@ class PyPiRepository(Repository):
...
@@ -83,7 +83,8 @@ 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'
]:
requires_dist
=
release_info
[
'requires_dist'
]
or
[]
for
req
in
requires_dist
:
try
:
try
:
req
=
InstallRequirement
.
from_line
(
req
)
req
=
InstallRequirement
.
from_line
(
req
)
except
Exception
:
except
Exception
:
...
...
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