We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 436fe5a + fb79290 commit c6c2217Copy full SHA for c6c2217
Lib/distutils/config.py
@@ -21,7 +21,7 @@
21
class PyPIRCCommand(Command):
22
"""Base command that knows how to handle the .pypirc file
23
"""
24
- DEFAULT_REPOSITORY = 'https://upload.pypi.io/legacy/'
+ DEFAULT_REPOSITORY = 'https://upload.pypi.org/legacy/'
25
DEFAULT_REALM = 'pypi'
26
repository = None
27
realm = None
Lib/distutils/tests/test_config.py
@@ -87,7 +87,7 @@ def test_server_registration(self):
87
88
config = list(sorted(config.items()))
89
waited = [('password', 'secret'), ('realm', 'pypi'),
90
- ('repository', 'https://upload.pypi.io/legacy/'),
+ ('repository', 'https://upload.pypi.org/legacy/'),
91
('server', 'server1'), ('username', 'me')]
92
self.assertEqual(config, waited)
93
@@ -96,7 +96,7 @@ def test_server_registration(self):
96
config = cmd._read_pypirc()
97
98
99
100
('server', 'server-login'), ('username', 'tarek')]
101
102
Lib/distutils/tests/test_upload.py
@@ -90,7 +90,7 @@ def test_finalize_options(self):
cmd.finalize_options()
for attr, waited in (('username', 'me'), ('password', 'secret'),
('realm', 'pypi'),
- ('repository', 'https://upload.pypi.io/legacy/')):
+ ('repository', 'https://upload.pypi.org/legacy/')):
94
self.assertEqual(getattr(cmd, attr), waited)
95
def test_saved_password(self):
@@ -131,7 +131,7 @@ def test_upload(self):
131
content_type = headers['Content-type']
132
self.assertTrue(content_type.startswith('multipart/form-data'))
133
self.assertEqual(self.last_open.req.get_method(), 'POST')
134
- expected_url = 'https://upload.pypi.io/legacy/'
+ expected_url = 'https://upload.pypi.org/legacy/'
135
self.assertEqual(self.last_open.req.get_full_url(), expected_url)
136
self.assertTrue(b'xxx' in self.last_open.req.data)
137
0 commit comments