@@ -23,15 +23,12 @@ https://test.pypi.org/account/register/ to register your account.
2323Using TestPyPI with Twine
2424-------------------------
2525
26- You can upload your distributions to TestPyPI using :ref: `twine ` by passing
27- in the ``--repository-url `` flag
26+ You can upload your distributions to TestPyPI using :ref: `twine ` by specifying
27+ the ``--repository `` flag
2828
2929.. code ::
3030
31- $ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
32-
33- The ``legacy `` in the URL above refers to the legacy API for PyPI, which may
34- change as the Warehouse project progresses.
31+ $ twine upload --repository testpypi dist/*
3532
3633 You can see if your package has successfully uploaded by navigating to the URL
3734``https://test.pypi.org/project/<sampleproject> `` where ``sampleproject `` is
@@ -59,29 +56,16 @@ you're testing has dependencies:
5956 Setting up TestPyPI in pypirc
6057-----------------------------
6158
62- If you want to avoid entering the TestPyPI url and your username
63- you can configure TestPyPI in your ``$HOME/.pypirc ``.
59+ If you want to avoid entering your username, you can configure TestPyPI in
60+ your ``$HOME/.pypirc ``.
6461
6562Create or modify ``$HOME/.pypirc `` with the following:
6663
6764.. code ::
6865
69- [distutils]
70- index-servers=
71- pypi
72- testpypi
73-
7466 [testpypi]
75- repository: https://test.pypi.org/legacy/
7667 username: your testpypi username
7768
7869
7970 .. Warning :: Do not store passwords in the pypirc file.
8071 Storing passwords in plain text is never a good idea.
81-
82- You can then tell :ref: `twine ` to upload to TestPyPI by specifying the
83- ``--repository `` flag:
84-
85- .. code ::
86-
87- $ twine upload --repository testpypi dist/*
0 commit comments