]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Switch upload.pypi.io to upload.pypi.org
authorDonald Stufft <donald@stufft.io>
Wed, 3 Aug 2016 22:43:38 +0000 (18:43 -0400)
committerDonald Stufft <donald@stufft.io>
Wed, 3 Aug 2016 22:43:38 +0000 (18:43 -0400)
Lib/distutils/config.py
Lib/distutils/tests/test_config.py
Lib/distutils/tests/test_upload.py

index 9b06d7699e9832d8da27830575524dc4f23047c3..96469ca91c7be31e6b49a5e6a3d57221dcf16e1b 100644 (file)
@@ -21,7 +21,7 @@ password:%s
 class PyPIRCCommand(Command):
     """Base command that knows how to handle the .pypirc file
     """
-    DEFAULT_REPOSITORY = 'https://upload.pypi.io/legacy/'
+    DEFAULT_REPOSITORY = 'https://upload.pypi.org/legacy/'
     DEFAULT_REALM = 'pypi'
     repository = None
     realm = None
index c37381550d29859319a9a60b0c6dfc33e2fac853..8286e1d9ac6742443271af5150f2981ce541700b 100644 (file)
@@ -87,7 +87,7 @@ class PyPIRCCommandTestCase(support.TempdirManager,
 
         config = list(sorted(config.items()))
         waited = [('password', 'secret'), ('realm', 'pypi'),
-                  ('repository', 'https://upload.pypi.io/legacy/'),
+                  ('repository', 'https://upload.pypi.org/legacy/'),
                   ('server', 'server1'), ('username', 'me')]
         self.assertEqual(config, waited)
 
@@ -96,7 +96,7 @@ class PyPIRCCommandTestCase(support.TempdirManager,
         config = cmd._read_pypirc()
         config = list(sorted(config.items()))
         waited = [('password', 'secret'), ('realm', 'pypi'),
-                  ('repository', 'https://upload.pypi.io/legacy/'),
+                  ('repository', 'https://upload.pypi.org/legacy/'),
                   ('server', 'server-login'), ('username', 'tarek')]
         self.assertEqual(config, waited)
 
index 5a462e5a94ce1bc71b0319c2d3206a183b5e64dc..1402343e0a8ba63b53e1d103e90d1cf3c1a4db3b 100644 (file)
@@ -127,7 +127,7 @@ class uploadTestCase(PyPIRCCommandTestCase):
         self.assertTrue(headers['Content-type'].startswith('multipart/form-data'))
         self.assertEqual(self.last_open.req.get_method(), 'POST')
         self.assertEqual(self.last_open.req.get_full_url(),
-                         'https://upload.pypi.io/legacy/')
+                         'https://upload.pypi.org/legacy/')
         self.assertIn(b'xxx', self.last_open.req.data)
 
         # The PyPI response body was echoed