From 62728e192766f35afb354704670019062752d508 Mon Sep 17 00:00:00 2001 From: melissaml Date: Sat, 21 Apr 2018 08:06:03 +0800 Subject: [PATCH] Trivial: Update pypi url to new url Pypi url changed from [1] to [2] [1] https://pypi.python.org/pypi/ [2] https://pypi.org/project/ Change-Id: I69093744a6a96c8fc0b9cd361db6ce1f64f19b0b --- detail.py | 2 +- openstack_requirements/cmds/check_py2.py | 2 +- tools/what-broke.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/detail.py b/detail.py index fe957787dc..080bb1101b 100644 --- a/detail.py +++ b/detail.py @@ -27,7 +27,7 @@ import pkg_resources try: PYPI_LOCATION = os.environ['PYPI_LOCATION'] except KeyError: - PYPI_LOCATION = 'http://pypi.python.org/pypi' + PYPI_LOCATION = 'http://pypi.org/project' KEEP_KEYS = frozenset([ diff --git a/openstack_requirements/cmds/check_py2.py b/openstack_requirements/cmds/check_py2.py index 432222168d..c727406cf1 100755 --- a/openstack_requirements/cmds/check_py2.py +++ b/openstack_requirements/cmds/check_py2.py @@ -20,7 +20,7 @@ import pkg_resources import requests -_url_template = 'https://pypi.python.org/pypi/{dist}/{version}/json' +_url_template = 'https://pypi.org/project/{dist}/{version}/json' def _get_metadata(dist, version): diff --git a/tools/what-broke.py b/tools/what-broke.py index 9dc9949c4a..32f94b0ae8 100755 --- a/tools/what-broke.py +++ b/tools/what-broke.py @@ -94,7 +94,7 @@ def get_releases_for_package(name, since): our purposes. """ - f = urlreq.urlopen("http://pypi.python.org/pypi/%s/json" % name) + f = urlreq.urlopen("http://pypi.org/project/%s/json" % name) jsondata = f.read() data = json.loads(jsondata) releases = []