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
9c816b83
Unverified
Commit
9c816b83
authored
Oct 17, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an error when installing from a private repository
parent
2cf5ee1c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
CHANGELOG.md
+7
-0
poetry/installation/pip_installer.py
+4
-1
No files found.
CHANGELOG.md
View file @
9c816b83
# Change Log
# Change Log
## [Unreleased]
### Fixed
-
Fixed an error when installing from private repositories.
## [0.12.1] - 2018-10-17
## [0.12.1] - 2018-10-17
### Fixed
### Fixed
...
...
poetry/installation/pip_installer.py
View file @
9c816b83
...
@@ -3,6 +3,7 @@ import tempfile
...
@@ -3,6 +3,7 @@ import tempfile
from
subprocess
import
CalledProcessError
from
subprocess
import
CalledProcessError
from
poetry.config
import
Config
from
poetry.utils.helpers
import
get_http_basic_auth
from
poetry.utils.helpers
import
get_http_basic_auth
...
@@ -45,7 +46,9 @@ class PipInstaller(BaseInstaller):
...
@@ -45,7 +46,9 @@ class PipInstaller(BaseInstaller):
)
)
args
+=
[
"--trusted-host"
,
parsed
.
hostname
]
args
+=
[
"--trusted-host"
,
parsed
.
hostname
]
auth
=
get_http_basic_auth
(
package
.
source_reference
)
auth
=
get_http_basic_auth
(
Config
.
create
(
"auth.toml"
),
package
.
source_reference
)
if
auth
:
if
auth
:
index_url
=
"{scheme}://{username}:{password}@{netloc}{path}"
.
format
(
index_url
=
"{scheme}://{username}:{password}@{netloc}{path}"
.
format
(
scheme
=
parsed
.
scheme
,
scheme
=
parsed
.
scheme
,
...
...
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