From b952446ba2fefa93eab123784d8af98dcf1ac0ec Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 7 Mar 2019 18:31:53 -0500 Subject: [PATCH] fix URL in get_pypi_info() The JSON API path is wrong. See https://warehouse.pypa.io/api-reference/json/ Change-Id: I1574e568e6c3eeddc3619591b6335c314bf92c39 Signed-off-by: Doug Hellmann --- openstack_releases/pythonutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_releases/pythonutils.py b/openstack_releases/pythonutils.py index bb1149da69..c979b2b5ff 100644 --- a/openstack_releases/pythonutils.py +++ b/openstack_releases/pythonutils.py @@ -106,7 +106,7 @@ def get_pypi_info(dist_name): "Return PyPI information for the distribution." canonical_name = packaging_utils.canonicalize_name(dist_name) LOG.debug('looking at PyPI for {!r}'.format(canonical_name)) - url = 'https://pypi.org/project/{}/json'.format(canonical_name) + url = 'https://pypi.org/pypi/{}/json'.format(canonical_name) LOG.debug(url) try: return requests.get(url).json()