Skip to content

Commit

Permalink
Replace refs to PEP-503 with simple repository API (pypa#1213)
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Rutledge <[email protected]>
  • Loading branch information
sinoroc and bhrutledge authored May 20, 2023
1 parent a1ecd5e commit a1deee1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
7 changes: 3 additions & 4 deletions source/guides/creating-and-discovering-plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 45,13 @@ then ``discovered_plugins`` would be:
'flask_talisman': <module: 'flask_talisman'>,
}
Using naming convention for plugins also allows you to query the
Python Package Index's `simple API`_ for all packages that conform to your
naming convention.
Using naming convention for plugins also allows you to query
the Python Package Index's :ref:`simple repository API <simple-repository-api>`
for all packages that conform to your naming convention.

.. _Flask: https://pypi.org/project/Flask/
.. _Flask-SQLAlchemy: https://pypi.org/project/Flask-SQLAlchemy/
.. _Flask-Talisman: https://pypi.org/project/flask-talisman
.. _simple API: https://www.python.org/dev/peps/pep-0503/#specification


Using namespace packages
Expand Down
2 changes: 1 addition & 1 deletion source/guides/hosting-your-own-index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 55,7 @@ instruct users to add the URL to their installer's configuration.
----

.. [1] For complete documentation of the simple repository protocol, see
:pep:`503`.
:ref:`simple repository API <simple-repository-api>`.
.. _Twisted: https://twistedmatrix.com/
8 changes: 4 additions & 4 deletions source/tutorials/installing-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 612,10 @@ Install from a local directory containing archives (and don't check :term:`PyPI
Installing from other sources
=============================

To install from other data sources (for example Amazon S3 storage) you can
create a helper application that presents the data in a :pep:`503` compliant
index format, and use the ``--extra-index-url`` flag to direct pip to use
that index.
To install from other data sources (for example Amazon S3 storage)
you can create a helper application that presents the data
in a format compliant with the :ref:`simple repository API <simple-repository-api>`:,
and use the ``--extra-index-url`` flag to direct pip to use that index.

.. code-block:: bash
Expand Down

0 comments on commit a1deee1

Please sign in to comment.