Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions source/guides/using-testpypi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ Registering your account
------------------------

Because TestPyPI has a separate database from the live PyPI, you'll need a
separate user account for specifically for TestPyPI. Go to
separate user account specifically for TestPyPI. Go to
https://test.pypi.org/account/register/ to register your account.

.. Note:: The database for TestPyPI may be periodically pruned, so it is not
.. note:: The database for TestPyPI may be periodically pruned, so it is not
unusual for user accounts to be deleted.


Using TestPyPI with Twine
-------------------------

You can upload your distributions to TestPyPI using :ref:`twine` by specifying
the ``--repository`` flag
the ``--repository`` flag:

.. code-block:: bash

Expand All @@ -38,8 +38,8 @@ your project to appear on the site.
Using TestPyPI with pip
-----------------------

You can tell pip to download packages from TestPyPI instead of PyPI by
specifying the ``--index-url`` flag
You can tell :ref:`pip` to download packages from TestPyPI instead of PyPI by
specifying the ``--index-url`` flag:

.. tab:: Unix/macOS

Expand All @@ -53,21 +53,21 @@ specifying the ``--index-url`` flag

py -m pip install --index-url https://test.pypi.org/simple/ your-package

If you want to allow pip to also pull other packages from PyPI you can
If you want to allow pip to also download packages from PyPI, you can
specify ``--extra-index-url`` to point to PyPI. This is useful when the package
you're testing has dependencies:

.. tab:: Unix/macOS

.. code-block:: bash

python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple your-package
python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ your-package

.. tab:: Windows

.. code-block:: bat

py -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple your-package
py -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ your-package

Setting up TestPyPI in :file:`.pypirc`
--------------------------------------
Expand Down