Skip to content

Commit 9aa851a

Browse files
committedJul 29, 2015
revert PR Yelp#134. Will be using pip.conf for trusted-host option
1 parent d548bbb commit 9aa851a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎pyleus/cli/virtualenv_proxy.py

-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
import os
1414
import subprocess
15-
from six.moves.urllib.parse import urlparse
1615

1716
from pyleus.exception import VirtualenvError
1817

@@ -74,8 +73,6 @@ def install_package(self, package):
7473

7574
if self._pypi_index_url is not None:
7675
cmd += ["-i", self._pypi_index_url]
77-
url = urlparse(self._pypi_index_url)
78-
cmd += ["--trusted-host", url.hostname]
7976

8077
if self._use_wheel:
8178
cmd += ['--use-wheel']

‎tests/cli/virtualenv_proxy_test.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111

1212
VENV_PATH = "/tmp/my/beloved/venv"
13-
PYPI_HOST = "pypi-ninja.ninjacorp.com"
14-
PYPI_URL = "http://{0}/simple".format(PYPI_HOST)
13+
PYPI_URL = "http://pypi-ninja.ninjacorp.com/simple"
1514

1615

1716
class TestVirtualenvProxyTopLevelFunctions(object):

0 commit comments

Comments
 (0)