Skip to content

Commit fb79290

Browse files
committed
Switch upload.pypi.io to upload.pypi.org
1 parent 4cbb23f commit fb79290

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Lib/distutils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
class PyPIRCCommand(Command):
2222
"""Base command that knows how to handle the .pypirc file
2323
"""
24-
DEFAULT_REPOSITORY = 'https://upload.pypi.io/legacy/'
24+
DEFAULT_REPOSITORY = 'https://upload.pypi.org/legacy/'
2525
DEFAULT_REALM = 'pypi'
2626
repository = None
2727
realm = None

Lib/distutils/tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_server_registration(self):
8787

8888
config = list(sorted(config.items()))
8989
waited = [('password', 'secret'), ('realm', 'pypi'),
90-
('repository', 'https://upload.pypi.io/legacy/'),
90+
('repository', 'https://upload.pypi.org/legacy/'),
9191
('server', 'server1'), ('username', 'me')]
9292
self.assertEqual(config, waited)
9393

@@ -96,7 +96,7 @@ def test_server_registration(self):
9696
config = cmd._read_pypirc()
9797
config = list(sorted(config.items()))
9898
waited = [('password', 'secret'), ('realm', 'pypi'),
99-
('repository', 'https://upload.pypi.io/legacy/'),
99+
('repository', 'https://upload.pypi.org/legacy/'),
100100
('server', 'server-login'), ('username', 'tarek')]
101101
self.assertEqual(config, waited)
102102

Lib/distutils/tests/test_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def test_upload(self):
127127
self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
128128
self.assertEqual(self.last_open.req.get_method(), 'POST')
129129
self.assertEqual(self.last_open.req.get_full_url(),
130-
'https://upload.pypi.io/legacy/')
130+
'https://upload.pypi.org/legacy/')
131131
self.assertIn(b'xxx', self.last_open.req.data)
132132

133133
# The PyPI response body was echoed

0 commit comments

Comments
 (0)