Skip to content

Commit 96a8b0a

Browse files
author
Jon Wayne Parrott
authored
Making new TestPyPI URL more visible, adding note to homepage about pypi.org (pypa#354)
1 parent db8ce5c commit 96a8b0a

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

source/guides/migrating-to-pypi-org.rst

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ the new location.
1111

1212
This section covers how to migrate to the new PyPI.org for different tasks.
1313

14+
1415
Uploading
1516
---------
1617

@@ -24,7 +25,6 @@ tool's default to have switched, you must also make sure that you have not
2425
configured the tool to override its default upload URL. Typically this is
2526
configured in a file located at ``~/.pypirc``. If you see a file like:
2627

27-
2828
.. code::
2929
3030
[distutils]
@@ -45,21 +45,16 @@ version that defaults to using PyPI.org, then you may edit ``~/.pypirc`` and
4545
include the ``repository:`` line, but use the value
4646
``https://upload.pypi.org/legacy/`` instead:
4747

48-
4948
.. code::
5049
5150
[distutils]
5251
index-servers =
5352
pypi
5453
5554
[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
6358
6459
6560
Registering package names & metadata
@@ -76,3 +71,23 @@ PyPI.org for uploads will give the following error message::
7671

7772
The solution is to skip the registration step, and proceed directly to
7873
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

source/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ happily accept any :doc:`contributions and feedback <contribute>`. 😊
2525
.. _GitHub: https://github.com/pypa/python-packaging-user-guide
2626
.. _Python Packaging Authority: https://pypa.io
2727

28+
.. note:: Looking for guidance on migrating from legacy PyPI to pypi.org? Please see :doc:`guides/migrating-to-pypi-org`.
29+
2830
Get started
2931
===========
3032

0 commit comments

Comments
 (0)