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: Iffc845fad9dab3c9af8c7b78bfa9fb8ab6fe0153
This commit is contained in:
Tovin Seven 2018-04-20 17:29:00 +07:00
parent 77321fe821
commit 0290a15965
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,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.python.org/pypi/{}/json'.format(canonical_name)
url = 'https://pypi.org/project/{}/json'.format(canonical_name)
LOG.debug(url)
try:
return requests.get(url).json()
@ -72,7 +72,7 @@ def get_pypi_info(dist_name):
def _get_pypi_roles(dist_name):
client = xmlrpc.client.ServerProxy('https://pypi.python.org/pypi')
client = xmlrpc.client.ServerProxy('https://pypi.org/project')
LOG.debug('retrieving roles for {!r}'.format(
dist_name))
return client.package_roles(dist_name)

View File

@ -67,7 +67,7 @@ Subject: {{email_tags}} {{project}} {{end_rev}}{% if series %} ({{series}}){% en
{% endif %}
"""
PYPI_URL_TPL = 'https://pypi.python.org/pypi/%s'
PYPI_URL_TPL = 'https://pypi.org/project/%s'
# This will be replaced with template values and then wrapped using parawrap
# to correctly wrap at paragraph boundaries...