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
cdd6e2bd
Commit
cdd6e2bd
authored
Apr 29, 2022
by
Arun Babu Neelicattu
Committed by
Bjorn Neergaard
May 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pip installer: fix typing issues for http repos
parent
73a6dbe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
src/poetry/installation/pip_installer.py
+16
-10
No files found.
src/poetry/installation/pip_installer.py
View file @
cdd6e2bd
...
@@ -12,6 +12,7 @@ from typing import Any
...
@@ -12,6 +12,7 @@ from typing import Any
from
poetry.core.pyproject.toml
import
PyProjectTOML
from
poetry.core.pyproject.toml
import
PyProjectTOML
from
poetry.installation.base_installer
import
BaseInstaller
from
poetry.installation.base_installer
import
BaseInstaller
from
poetry.repositories.http
import
HTTPRepository
from
poetry.utils._compat
import
encode
from
poetry.utils._compat
import
encode
from
poetry.utils.helpers
import
remove_directory
from
poetry.utils.helpers
import
remove_directory
from
poetry.utils.pip
import
pip_install
from
poetry.utils.pip
import
pip_install
...
@@ -57,23 +58,28 @@ class PipInstaller(BaseInstaller):
...
@@ -57,23 +58,28 @@ class PipInstaller(BaseInstaller):
)
)
args
+=
[
"--trusted-host"
,
parsed
.
hostname
]
args
+=
[
"--trusted-host"
,
parsed
.
hostname
]
if
repository
.
cert
:
if
isinstance
(
repository
,
HTTPRepository
):
args
+=
[
"--cert"
,
str
(
repository
.
cert
)]
if
repository
.
cert
:
args
+=
[
"--cert"
,
str
(
repository
.
cert
)]
if
repository
.
client_cert
:
if
repository
.
client_cert
:
args
+=
[
"--client-cert"
,
str
(
repository
.
client_cert
)]
args
+=
[
"--client-cert"
,
str
(
repository
.
client_cert
)]
index_url
=
repository
.
authenticated_url
index_url
=
repository
.
authenticated_url
args
+=
[
"--index-url"
,
index_url
]
args
+=
[
"--index-url"
,
index_url
]
if
(
if
(
self
.
_pool
.
has_default
()
self
.
_pool
.
has_default
()
and
repository
.
name
!=
self
.
_pool
.
repositories
[
0
]
.
name
and
repository
.
name
!=
self
.
_pool
.
repositories
[
0
]
.
name
):
):
args
+=
[
first_repository
=
self
.
_pool
.
repositories
[
0
]
"--extra-index-url"
,
self
.
_pool
.
repositories
[
0
]
.
authenticated_url
,
if
isinstance
(
first_repository
,
HTTPRepository
):
]
args
+=
[
"--extra-index-url"
,
first_repository
.
authenticated_url
,
]
if
update
:
if
update
:
args
.
append
(
"-U"
)
args
.
append
(
"-U"
)
...
...
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