We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b9410 commit 188c118Copy full SHA for 188c118
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://pypi.python.org/pypi'
+ DEFAULT_REPOSITORY = 'https://upload.pypi.io/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://pypi.python.org/pypi'),
+ ('repository', 'https://upload.pypi.io/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
@@ -127,7 +127,7 @@ def test_upload(self):
127
self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
128
self.assertEqual(self.last_open.req.get_method(), 'POST')
129
self.assertEqual(self.last_open.req.get_full_url(),
130
- 'https://pypi.python.org/pypi')
+ 'https://upload.pypi.io/legacy/')
131
self.assertIn(b'xxx', self.last_open.req.data)
132
133
# The PyPI response body was echoed
0 commit comments