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
13dfae49
Unverified
Commit
13dfae49
authored
Jun 19, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix package installation for custom repositories
parent
ea353ae8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
CHANGELOG.md
+1
-0
poetry/installation/pip_installer.py
+14
-0
poetry/packages/package.py
+3
-0
No files found.
CHANGELOG.md
View file @
13dfae49
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
-
Fixed handling of root incompatibilities.
-
Fixed handling of root incompatibilities.
-
Fixed an error where packages from custom repositories would not be found.
-
Fixed an error where packages from custom repositories would not be found.
-
Fixed wildcard Python requirement being wrongly set in distributions metadata.
-
Fixed wildcard Python requirement being wrongly set in distributions metadata.
-
Fixed installation of packages from a custom repository.
## [0.10.3] - 2018-06-04
## [0.10.3] - 2018-06-04
...
...
poetry/installation/pip_installer.py
View file @
13dfae49
...
@@ -3,6 +3,11 @@ import tempfile
...
@@ -3,6 +3,11 @@ import tempfile
from
subprocess
import
CalledProcessError
from
subprocess
import
CalledProcessError
try
:
import
urllib.parse
as
urlparse
except
ImportError
:
import
urlparse
from
poetry.utils._compat
import
encode
from
poetry.utils._compat
import
encode
from
poetry.utils.venv
import
Venv
from
poetry.utils.venv
import
Venv
...
@@ -18,6 +23,15 @@ class PipInstaller(BaseInstaller):
...
@@ -18,6 +23,15 @@ class PipInstaller(BaseInstaller):
args
=
[
"install"
,
"--no-deps"
]
args
=
[
"install"
,
"--no-deps"
]
if
package
.
source_type
==
"legacy"
and
package
.
source_url
:
if
package
.
source_type
==
"legacy"
and
package
.
source_url
:
parsed
=
urlparse
.
urlparse
(
package
.
source_url
)
if
parsed
.
scheme
==
"http"
:
self
.
_io
.
write_error
(
" <warning>Installing from unsecure host: {}</warning>"
.
format
(
parsed
.
netloc
)
)
args
+=
[
"--trusted-host"
,
parsed
.
netloc
]
args
+=
[
"--index-url"
,
package
.
source_url
]
args
+=
[
"--index-url"
,
package
.
source_url
]
if
update
:
if
update
:
...
...
poetry/packages/package.py
View file @
13dfae49
...
@@ -318,6 +318,9 @@ class Package(object):
...
@@ -318,6 +318,9 @@ class Package(object):
clone
.
python_versions
=
self
.
python_versions
clone
.
python_versions
=
self
.
python_versions
clone
.
platform
=
self
.
platform
clone
.
platform
=
self
.
platform
clone
.
extras
=
self
.
extras
clone
.
extras
=
self
.
extras
clone
.
source_type
=
self
.
source_type
clone
.
source_url
=
self
.
source_url
clone
.
source_reference
=
self
.
source_reference
for
dep
in
self
.
requires
:
for
dep
in
self
.
requires
:
clone
.
requires
.
append
(
dep
)
clone
.
requires
.
append
(
dep
)
...
...
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