diff --git a/source/guides/using-testpypi.rst b/source/guides/using-testpypi.rst index f4f05d719..1d466e4ea 100644 --- a/source/guides/using-testpypi.rst +++ b/source/guides/using-testpypi.rst @@ -13,10 +13,10 @@ 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. @@ -24,7 +24,7 @@ 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 @@ -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 @@ -53,7 +53,7 @@ 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: @@ -61,13 +61,13 @@ you're testing has dependencies: .. 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` --------------------------------------