No longer whitelist externally-hosted requirements

* pypi_mirror/cmd/run_mirror.py: Stop whitelisting netifaces,
psutil, pysendfile and pytidylib for insecure/external hosting
off-PyPI. They all now host versions on PyPI which meet the listed
requirements in openstack/requirements:global-requirements.txt for
currently supported branches.

Change-Id: I640a85435de7bb300aaaa347cb97b1fad7543e17
This commit is contained in:
Jeremy Stanley 2014-05-20 18:59:48 +00:00
parent 57992fc80f
commit 59a4a18150

View File

@ -173,10 +173,6 @@ class Mirror(object):
"%(pip)s install -U %(extra_args)s --exists-action=w"
" --download-cache=%(download_cache)s"
" --build %(build_dir)s -f %(find_links)s"
" --allow-external netifaces --allow-insecure netifaces"
" --allow-external psutil --allow-insecure psutil"
" --allow-external pysendfile --allow-insecure pysendfile"
" --allow-external pytidylib --allow-insecure pytidylib"
" --no-use-wheel"
" -r %(requirements_file)s")
venv_format = (
@ -185,25 +181,13 @@ class Mirror(object):
upgrade_format = (
"%(pip)s install -U --exists-action=w"
" --download-cache=%(download_cache)s --build %(build_dir)s"
" --allow-external netifaces --allow-insecure netifaces"
" --allow-external psutil --allow-insecure psutil"
" --allow-external pysendfile --allow-insecure pysendfile"
" --allow-external pytidylib --allow-insecure pytidylib"
" -f %(find_links)s %(requirement)s")
wheel_file_format = (
"%(pip)s wheel --download-cache=%(download_cache)s"
" --wheel-dir %(wheel_dir)s -f %(find_links)s"
" --allow-external netifaces --allow-insecure netifaces"
" --allow-external psutil --allow-insecure psutil"
" --allow-external pysendfile --allow-insecure pysendfile"
" --allow-external pytidylib --allow-insecure pytidylib"
" -r %(requirements_file)s")
wheel_format = (
"%(pip)s wheel --download-cache=%(download_cache)s"
" --allow-external netifaces --allow-insecure netifaces"
" --allow-external psutil --allow-insecure psutil"
" --allow-external pysendfile --allow-insecure pysendfile"
" --allow-external pytidylib --allow-insecure pytidylib"
" -f %(find_links)s --wheel-dir %(wheel_dir)s %(requirement)s")
workdir = tempfile.mkdtemp()