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
7326ba70
Unverified
Commit
7326ba70
authored
Jun 29, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing dependencies in some cases
parent
2ac1dccb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletions
+31
-1
CHANGELOG.md
+7
-0
poetry/puzzle/provider.py
+6
-0
poetry/repositories/pypi_repository.py
+18
-1
No files found.
CHANGELOG.md
View file @
7326ba70
# Change Log
## [Unreleased]
### Fixed
-
Fixed missing dependencies when resolving in some cases.
## [0.11.1] - 2018-06-29
### Fixed
...
...
poetry/puzzle/provider.py
View file @
7326ba70
...
...
@@ -382,6 +382,12 @@ class Provider:
continue
markers
=
pep_508_dep
.
split
(
";"
)[
1
]
.
strip
()
if
not
markers
:
# One of the constraint has no markers
# so this means we don't actually need to merge
new_markers
=
[]
break
new_markers
.
append
(
"({})"
.
format
(
markers
))
if
not
new_markers
:
...
...
poetry/repositories/pypi_repository.py
View file @
7326ba70
...
...
@@ -275,7 +275,7 @@ class PyPiRepository(Repository):
# dependencies by introspecting packages
urls
=
{}
for
url
in
json_data
[
"urls"
]:
# Only get sdist and universal wheels
# Only get sdist and universal wheels
if they exist
dist_type
=
url
[
"packagetype"
]
if
dist_type
not
in
[
"sdist"
,
"bdist_wheel"
]:
continue
...
...
@@ -299,6 +299,23 @@ class PyPiRepository(Repository):
continue
if
not
urls
:
# If we don't have urls, we try to take the first one
# we find and go from there
if
not
json_data
[
"urls"
]:
return
data
for
url
in
json_data
[
"urls"
]:
# Only get sdist and universal wheels if they exist
dist_type
=
url
[
"packagetype"
]
if
dist_type
!=
"bdist_wheel"
:
continue
urls
[
url
[
"packagetype"
]]
=
url
[
"url"
]
break
if
not
urls
:
return
data
info
=
self
.
_get_info_from_urls
(
urls
)
...
...
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