Skip to content

Commit 0ef3d3f

Browse files
authored
Merge branch 'pypa:main' into main
2 parents 52ee213 + 102d895 commit 0ef3d3f

13 files changed

+39
-45
lines changed

source/discussions/pip-vs-easy-install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Here's a breakdown of the important differences between pip and the deprecated e
6565

6666
.. _deprecated: https://setuptools.readthedocs.io/en/latest/history.html#v42-0-0
6767

68-
.. [1] https://setuptools.readthedocs.io/en/latest/easy_install.html#natural-script-launcher
68+
.. [1] https://setuptools.readthedocs.io/en/latest/deprecated/easy_install.html#natural-script-launcher
6969
7070
7171
.. _pylauncher support: https://bitbucket.org/vinay.sajip/pylauncher

source/glossary.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ Glossary
4242
Egg
4343

4444
A :term:`Built Distribution` format introduced by :ref:`setuptools`,
45-
which is being replaced by :term:`Wheel`. For details, see `The
46-
Internal Structure of Python Eggs
47-
<https://setuptools.readthedocs.io/en/latest/deprecated/python_eggs.html>`_ and
45+
which is being replaced by :term:`Wheel`. For details, see `
46+
:doc:`The Internal Structure of Python Eggs <setuptools:deprecated/python_eggs>` and
4847
`Python Eggs <http://peak.telecommunity.com/DevCenter/PythonEggs>`_
4948

5049
Extension Module

source/guides/distributing-packages-using-setuptools.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ points (see below).
509509
Use this keyword to specify any plugins that your project provides for any named
510510
entry points that may be defined by your project or others that you depend on.
511511

512-
For more information, see the section on `Advertising Behavior
513-
<https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html#dynamic-discovery-of-services-and-plugins>`_
512+
For more information, see the section on
513+
:ref:`Advertising Behavior <setuptools:dynamic discovery of services and plugins>`
514514
from the :ref:`setuptools` docs.
515515

516516
The most commonly used entry point is "console_scripts" (see below).
@@ -528,16 +528,16 @@ The most commonly used entry point is "console_scripts" (see below).
528528
],
529529
},
530530

531-
Use ``console_script`` `entry points
532-
<https://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins>`_
531+
Use ``console_script``
532+
:ref:`entry points <setuptools:dynamic discovery of services and plugins>`
533533
to register your script interfaces. You can then let the toolchain handle the
534534
work of turning these interfaces into actual scripts [2]_. The scripts will be
535535
generated during the install of your :term:`distribution <Distribution
536536
Package>`.
537537

538538
For more information, see `Automatic Script Creation
539539
<https://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creation>`_
540-
from the `setuptools docs <https://setuptools.readthedocs.io>`_.
540+
from the :doc:`setuptools docs <setuptools:index>`.
541541

542542
.. _`Choosing a versioning scheme`:
543543

@@ -706,9 +706,9 @@ Lastly, if you don't want to install any dependencies at all, you can run:
706706
python -m pip install -e . --no-deps
707707
708708
709-
For more information, see the `Development Mode
710-
<https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode>`_ section
711-
of the `setuptools docs <https://setuptools.readthedocs.io>`_.
709+
For more information, see the
710+
:doc:`<Development Mode <setuptools:userguide/development_mode>` section
711+
of the :doc:`setuptools docs <setuptools>`.
712712

713713
.. _`Packaging your project`:
714714

source/guides/github-actions-ci-cd-sample/publish-to-test-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@master
12-
- name: Set up Python 3.7
12+
- name: Set up Python 3.9
1313
uses: actions/setup-python@v1
1414
with:
15-
python-version: 3.7
15+
python-version: 3.9
1616
- name: Install pypa/build
1717
run: >-
1818
python -m

source/guides/index-mirrors-and-caches.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ Caching with pip
2929
pip provides a number of facilities for speeding up installation by using local
3030
cached copies of :term:`packages <Distribution Package>`:
3131

32-
1. `Fast & local installs
33-
<https://pip.pypa.io/en/latest/user_guide/#installing-from-local-packages>`_
32+
1. :ref:`Fast & local installs <pip:installing from local packages>`
3433
by downloading all the requirements for a project and then pointing pip at
3534
those downloaded files instead of going to PyPI.
3635
2. A variation on the above which pre-builds the installation files for

source/guides/installing-using-pip-and-virtual-environments.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ pip can install a package directly from source, for example:
323323
cd google-auth
324324
py -m pip install .
325325
326-
Additionally, pip can install packages from source in `development mode`_,
326+
Additionally, pip can install packages from source in
327+
:doc:`development mode <setuptools:userguide/development_mode>`,
327328
meaning that changes to the source directory will immediately affect the
328329
installed package without needing to re-install:
329330

@@ -339,9 +340,6 @@ installed package without needing to re-install:
339340
340341
py -m pip install --editable .
341342
342-
.. _development mode:
343-
https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode
344-
345343
346344
Installing from version control systems
347345
---------------------------------------

source/guides/packaging-binary-extensions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ above to make the interface available as an importable Python module.
221221
Implementing binary extensions
222222
==============================
223223

224-
The CPython `Extending and Embedding <https://docs.python.org/3/extending/>`_
224+
The CPython :doc:`Extending and Embedding <python:extending/index>`
225225
guide includes an introduction to writing a
226-
`custom extension module in C <https://docs.python.org/3/extending/extending.html>`_.
226+
:doc:`custom extension module in C <python:extending/extending>`.
227227

228228
::
229229

source/guides/packaging-namespace-packages.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ the `native namespace package example project`_.
128128
pkgutil-style namespace packages
129129
--------------------------------
130130

131-
Python 2.3 introduced the `pkgutil`_ module and the
132-
`extend_path`_ function. This can be used to declare namespace
131+
Python 2.3 introduced the :doc:`pkgutil <python:library/pkgutil>` module and the
132+
:py:func:`python:pkgutil.extend_path` function. This can be used to declare namespace
133133
packages that need to be compatible with both Python 2.3+ and Python 3. This
134134
is the recommended approach for the highest level of compatibility.
135135

@@ -160,7 +160,6 @@ additional code in :file:`__init__.py` will be inaccessible.
160160
A complete working example of two pkgutil-style namespace packages can be found
161161
in the `pkgutil namespace example project`_.
162162

163-
.. _pkgutil: https://docs.python.org/3/library/pkgutil.html
164163
.. _extend_path:
165164
https://docs.python.org/3/library/pkgutil.html#pkgutil.extend_path
166165
.. _pkgutil namespace example project:

source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Then, add the following under the ``build-n-publish`` section:
9090
:end-before: Install pypa/build
9191

9292
This will download your repository into the CI runner and then
93-
install and activate Python 3.7.
93+
install and activate Python 3.9.
9494

9595
And now we can build dists from source. In this example, we'll
9696
use ``build`` package, assuming that your project has a
@@ -107,7 +107,7 @@ So add this to the steps list:
107107

108108
.. literalinclude:: github-actions-ci-cd-sample/publish-to-test-pypi.yml
109109
:language: yaml
110-
:start-after: version: 3.7
110+
:start-after: version: 3.9
111111
:end-before: Actually publish to PyPI/TestPyPI
112112

113113

source/guides/tool-recommendations.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Installation tool recommendations
3131
is installed, you may need to also install :ref:`wheel` to get the benefit
3232
of wheel caching. [3]_
3333

34-
* Use :ref:`virtualenv`, or `venv`_ to isolate application specific
35-
dependencies from a shared Python installation. [4]_
34+
* Use :ref:`virtualenv`, or :doc:`venv <python:library/venv>` to isolate application
35+
specific dependencies from a shared Python installation. [4]_
3636

3737
* If you're looking for management of fully integrated cross-platform software
3838
stacks, consider:
@@ -111,4 +111,3 @@ migration, and what settings to change in your clients.
111111
choice for packaging.
112112
113113
.. _distribute: https://pypi.org/project/distribute
114-
.. _venv: https://docs.python.org/3/library/venv.html

0 commit comments

Comments
 (0)