diff options
author | Donald Stufft <donald@stufft.io> | 2016-08-03 18:43:38 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2016-08-03 18:43:38 -0400 |
commit | e639c9f681154bb0e5530543beefd015040406ac (patch) | |
tree | 65b8e2bef1ddc0ba059068125c109b1a7d901158 | |
parent | eb17f80c10c171808db4f6d81709dc3c9ebf27d6 (diff) | |
download | python-setuptools-git-e639c9f681154bb0e5530543beefd015040406ac.tar.gz |
Switch upload.pypi.io to upload.pypi.org
-rw-r--r-- | config.py | 2 | ||||
-rw-r--r-- | tests/test_config.py | 4 | ||||
-rw-r--r-- | tests/test_upload.py | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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 diff --git a/tests/test_config.py b/tests/test_config.py index c3738155..8286e1d9 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -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) diff --git a/tests/test_upload.py b/tests/test_upload.py index 5a462e5a..1402343e 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -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 |