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
c615c5b2
Unverified
Commit
c615c5b2
authored
Apr 14, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dependency resolution on Windows when unpacking distributions
parent
c4ad420b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
CHANGELOG.md
+1
-0
poetry/repositories/pypi_repository.py
+7
-0
No files found.
CHANGELOG.md
View file @
c615c5b2
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
### Fixed
### Fixed
-
Fixed
`add`
command picking up prereleases by default.
-
Fixed
`add`
command picking up prereleases by default.
-
Fixed dependendency resolution on Windows when unpacking distributions.
## [0.8.1] - 2018-04-13
## [0.8.1] - 2018-04-13
...
...
poetry/repositories/pypi_repository.py
View file @
c615c5b2
...
@@ -350,6 +350,7 @@ class PyPiRepository(Repository):
...
@@ -350,6 +350,7 @@ class PyPiRepository(Repository):
# Still not dependencies found
# Still not dependencies found
# So, we unpack and introspect
# So, we unpack and introspect
suffix
=
filepath
.
suffix
suffix
=
filepath
.
suffix
gz
=
None
if
suffix
==
'.zip'
:
if
suffix
==
'.zip'
:
tar
=
zipfile
.
ZipFile
(
str
(
filepath
))
tar
=
zipfile
.
ZipFile
(
str
(
filepath
))
else
:
else
:
...
@@ -360,7 +361,13 @@ class PyPiRepository(Repository):
...
@@ -360,7 +361,13 @@ class PyPiRepository(Repository):
tar
=
tarfile
.
TarFile
(
str
(
filepath
),
fileobj
=
gz
)
tar
=
tarfile
.
TarFile
(
str
(
filepath
),
fileobj
=
gz
)
try
:
tar
.
extractall
(
os
.
path
.
join
(
temp_dir
,
'unpacked'
))
tar
.
extractall
(
os
.
path
.
join
(
temp_dir
,
'unpacked'
))
finally
:
if
gz
:
gz
.
close
()
tar
.
close
()
unpacked
=
Path
(
temp_dir
)
/
'unpacked'
unpacked
=
Path
(
temp_dir
)
/
'unpacked'
sdist_dir
=
unpacked
/
Path
(
filename
)
.
name
.
rstrip
(
'.tar.gz'
)
sdist_dir
=
unpacked
/
Path
(
filename
)
.
name
.
rstrip
(
'.tar.gz'
)
...
...
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