Skip to content

Commit ef330d3

Browse files
committed
Merge 3.4
2 parents bed6891 + c6c2217 commit ef330d3

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_server_registration(self):
9595

9696
config = list(sorted(config.items()))
9797
waited = [('password', 'secret'), ('realm', 'pypi'),
98-
('repository', 'https://upload.pypi.io/legacy/'),
98+
('repository', 'https://upload.pypi.org/legacy/'),
9999
('server', 'server1'), ('username', 'me')]
100100
self.assertEqual(config, waited)
101101

@@ -104,7 +104,7 @@ def test_server_registration(self):
104104
config = cmd._read_pypirc()
105105
config = list(sorted(config.items()))
106106
waited = [('password', 'secret'), ('realm', 'pypi'),
107-
('repository', 'https://upload.pypi.io/legacy/'),
107+
('repository', 'https://upload.pypi.org/legacy/'),
108108
('server', 'server-login'), ('username', 'tarek')]
109109
self.assertEqual(config, waited)
110110

@@ -130,7 +130,7 @@ def test_config_interpolation(self):
130130

131131
config = list(sorted(config.items()))
132132
waited = [('password', 'yh^%#rest-of-my-password'), ('realm', 'pypi'),
133-
('repository', 'https://upload.pypi.io/legacy/'),
133+
('repository', 'https://upload.pypi.org/legacy/'),
134134
('server', 'server3'), ('username', 'cbiggles')]
135135
self.assertEqual(config, waited)
136136

‎Lib/distutils/tests/test_upload.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_finalize_options(self):
9393
cmd.finalize_options()
9494
for attr, waited in (('username', 'me'), ('password', 'secret'),
9595
('realm', 'pypi'),
96-
('repository', 'https://upload.pypi.io/legacy/')):
96+
('repository', 'https://upload.pypi.org/legacy/')):
9797
self.assertEqual(getattr(cmd, attr), waited)
9898

9999
def test_saved_password(self):
@@ -134,7 +134,7 @@ def test_upload(self):
134134
content_type = headers['Content-type']
135135
self.assertTrue(content_type.startswith('multipart/form-data'))
136136
self.assertEqual(self.last_open.req.get_method(), 'POST')
137-
expected_url = 'https://upload.pypi.io/legacy/'
137+
expected_url = 'https://upload.pypi.org/legacy/'
138138
self.assertEqual(self.last_open.req.get_full_url(), expected_url)
139139
self.assertTrue(b'xxx' in self.last_open.req.data)
140140
self.assertIn(b'protocol_version', self.last_open.req.data)

0 commit comments

Comments
 (0)