summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2016-07-06 15:27:35 -0400
committerDonald Stufft <donald@stufft.io>2016-07-06 15:27:35 -0400
commiteb17f80c10c171808db4f6d81709dc3c9ebf27d6 (patch)
tree7df30844584241de400b3f0300470542a810c282
parent5e8c24ff3101f19a6346f1e7c5f99fae824ac96e (diff)
downloadpython-setuptools-git-eb17f80c10c171808db4f6d81709dc3c9ebf27d6.tar.gz
Switch to the new upload url for PyPI
-rw-r--r--config.py2
-rw-r--r--tests/test_config.py4
-rw-r--r--tests/test_upload.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/config.py b/config.py
index 106e1465..9b06d769 100644
--- a/config.py
+++ b/config.py
@@ -21,7 +21,7 @@ password:%s
class PyPIRCCommand(Command):
"""Base command that knows how to handle the .pypirc file
"""
- DEFAULT_REPOSITORY = 'https://pypi.python.org/pypi'
+ DEFAULT_REPOSITORY = 'https://upload.pypi.io/legacy/'
DEFAULT_REALM = 'pypi'
repository = None
realm = None
diff --git a/tests/test_config.py b/tests/test_config.py
index 4de825a8..c3738155 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://pypi.python.org/pypi'),
+ ('repository', 'https://upload.pypi.io/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://pypi.python.org/pypi'),
+ ('repository', 'https://upload.pypi.io/legacy/'),
('server', 'server-login'), ('username', 'tarek')]
self.assertEqual(config, waited)
diff --git a/tests/test_upload.py b/tests/test_upload.py
index 8532369a..5a462e5a 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://pypi.python.org/pypi')
+ 'https://upload.pypi.io/legacy/')
self.assertIn(b'xxx', self.last_open.req.data)
# The PyPI response body was echoed