@@ -11,6 +11,7 @@ the new location.
11
11
12
12
This section covers how to migrate to the new PyPI.org for different tasks.
13
13
14
+
14
15
Uploading
15
16
---------
16
17
@@ -24,7 +25,6 @@ tool's default to have switched, you must also make sure that you have not
24
25
configured the tool to override its default upload URL. Typically this is
25
26
configured in a file located at ``~/.pypirc ``. If you see a file like:
26
27
27
-
28
28
.. code ::
29
29
30
30
[distutils]
@@ -45,21 +45,16 @@ version that defaults to using PyPI.org, then you may edit ``~/.pypirc`` and
45
45
include the ``repository: `` line, but use the value
46
46
``https://upload.pypi.org/legacy/ `` instead:
47
47
48
-
49
48
.. code ::
50
49
51
50
[distutils]
52
51
index-servers =
53
52
pypi
54
53
55
54
[pypi]
56
- repository:https://upload.pypi.org/legacy/
57
- username:yourusername
58
- password:yourpassword
59
-
60
- If you use TestPyPI, you must update your ``~/.pypirc `` to handle
61
- TestPyPI's new location, by replacing ``https://testpypi.python.org/pypi ``
62
- with ``https://test.pypi.org/legacy/ ``.
55
+ repository: https://upload.pypi.org/legacy/
56
+ username: your username
57
+ password: your password
63
58
64
59
65
60
Registering package names & metadata
@@ -76,3 +71,23 @@ PyPI.org for uploads will give the following error message::
76
71
77
72
The solution is to skip the registration step, and proceed directly to
78
73
uploading artifacts.
74
+
75
+
76
+ Using TestPyPI
77
+ --------------
78
+
79
+ If you use TestPyPI, you must update your ``~/.pypirc `` to handle
80
+ TestPyPI's new location, by replacing ``https://testpypi.python.org/pypi ``
81
+ with ``https://test.pypi.org/legacy/ ``, for example:
82
+
83
+ .. code ::
84
+
85
+ [distutils]
86
+ index-servers=
87
+ pypi
88
+ testpypi
89
+
90
+ [testpypi]
91
+ repository: https://test.pypi.org/legacy
92
+ username: your testpypi username
93
+ password: your testpypi password
0 commit comments