diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-06-17 14:01:18 +0200 |
---|---|---|
committer | René Moser <mail@renemoser.net> | 2018-06-17 14:01:18 +0200 |
commit | dc7e50fa90b7efd67b33eab11f0a3fed41f837fa (patch) | |
tree | 4a174689704cc758637fbe6bd3f13ca9b6dc79fd /hacking | |
parent | Add changelog for gce_net sort fix (diff) | |
download | ansible-dc7e50fa90b7efd67b33eab11f0a3fed41f837fa.tar.xz ansible-dc7e50fa90b7efd67b33eab11f0a3fed41f837fa.zip |
Update additional pypi.python.org URLs to pypi.org (#41373)
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
Diffstat (limited to 'hacking')
-rwxr-xr-x | hacking/update_bundled.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hacking/update_bundled.py b/hacking/update_bundled.py index 714c2a3d8b..02bf6c118d 100755 --- a/hacking/update_bundled.py +++ b/hacking/update_bundled.py @@ -24,11 +24,11 @@ for filename in glob.glob(os.path.join(basedir, '../lib/ansible/compat/*/__init_ print('WARNING: {0} contained no metadata. Could not check for updates'.format(filename)) continue metadata = json.loads(data) - pypi_fh = open_url('https://pypi.python.org/pypi/{0}/json'.format(metadata['pypi_name'])) + pypi_fh = open_url('https://pypi.org/pypi/{0}/json'.format(metadata['pypi_name'])) pypi_data = json.loads(pypi_fh.read().decode('utf-8')) if LooseVersion(metadata['version']) < LooseVersion(pypi_data['info']['version']): print('UPDATE: {0} from {1} to {2} {3}'.format( metadata['pypi_name'], metadata['version'], pypi_data['info']['version'], - 'https://pypi.python.org/pypi/{0}/'.format(metadata['pypi_name']))) + 'https://pypi.org/pypi/{0}/json'.format(metadata['pypi_name']))) |