Trivial: Update pypi url to new url
Pypi url changed from [1] to [2] [1] https://pypi.python.org/pypi/<package> [2] https://pypi.org/project/<package> Change-Id: I69093744a6a96c8fc0b9cd361db6ce1f64f19b0b
This commit is contained in:
parent
9668332df5
commit
62728e1927
@ -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([
|
||||
|
@ -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):
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user