Skip to content

Commit db58433

Browse files
authored
Merge branch 'main' into Requires-Python
2 parents ef7c3f6 + 309d259 commit db58433

13 files changed

+68
-86
lines changed

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
sphinx==4.5.0
1+
sphinx==7.2.6
22
sphinx-autobuild==2021.3.14
3-
sphinx-inline-tabs==2021.4.11b9
3+
sphinx-inline-tabs==2023.4.21
44
python-docs-theme==2023.9
5-
sphinx-copybutton==0.5.0
5+
sphinx-copybutton==0.5.2
66
pypa-docs-theme @ git+https://github.com/pypa/pypa-docs-theme.git
77
sphinx-toolbox==3.5.0

source/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
#
8989
# This is also used if you do content translation via gettext catalogs.
9090
# Usually you set "language" from the command line for these cases.
91-
language = None
91+
language = 'en'
9292

9393
locale_dirs = ['../locales']
9494

@@ -379,11 +379,11 @@
379379

380380
# -- Options for extlinks extension ---------------------------------------
381381
extlinks = {
382-
'issue': (f'{github_repo_issues_url}/%s', '#'), # noqa: WPS323
383-
'pr': (f'{github_repo_url}/pull/%s', 'PR #'), # noqa: WPS323
384-
'commit': (f'{github_repo_url}/commit/%s', ''), # noqa: WPS323
385-
'gh': (f'{github_url}/%s', 'GitHub: '), # noqa: WPS323
386-
'user': (f'{github_sponsors_url}/%s', '@'), # noqa: WPS323
382+
'issue': (f'{github_repo_issues_url}/%s', '#%s'), # noqa: WPS323
383+
'pr': (f'{github_repo_url}/pull/%s', 'PR #%s'), # noqa: WPS323
384+
'commit': (f'{github_repo_url}/commit/%s', '%s'), # noqa: WPS323
385+
'gh': (f'{github_url}/%s', 'GitHub: %s'), # noqa: WPS323
386+
'user': (f'{github_sponsors_url}/%s', '@%s'), # noqa: WPS323
387387
}
388388

389389
linkcheck_ignore = [

source/contribute.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ Documentation types
3232
===================
3333

3434
This project consists of four distinct documentation types with specific
35-
purposes. When proposing new additions to the project please pick the
35+
purposes. The project aspires to follow the `Diátaxis process`_
36+
for creating quality documentation. When proposing new additions to the project please pick the
3637
appropriate documentation type.
3738

39+
.. _Diátaxis process: https://diataxis.fr/
40+
3841
Tutorials
3942
---------
4043

source/flow.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ For example, here is a table for using :ref:`hatch`:
8282
requires = ["hatchling"]
8383
build-backend = "hatchling.build"
8484
85-
With such a table in the :file:`pyproject.toml` file, a "frontend" tool like
86-
:ref:`build` can run your chosen build tool's "backend" to create the build
87-
artifacts. Your build tool may also provide its own frontend. An install tool
85+
With such a table in the :file:`pyproject.toml` file,
86+
a ":term:`frontend <Build Frontend>`" tool like
87+
:ref:`build` can run your chosen
88+
build tool's ":term:`backend <Build Backend>`"
89+
to create the build artifacts.
90+
Your build tool may also provide its own frontend. An install tool
8891
like :ref:`pip` also acts as a frontend when it runs your build tool's backend
8992
to install from a source distribution.
9093

source/glossary.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,36 @@ Glossary
1212
extensions.
1313

1414

15+
Build Backend
16+
17+
A library that takes a source tree or
18+
:term:`source distribution <Source Distribution (or "sdist")>`
19+
and builds a source distribution or :term:`wheel <Wheel>` from it.
20+
The build is delegated to the backend by a
21+
:term:`frontend <Build Frontend>`.
22+
All backends offer a standardized interface.
23+
24+
Examples of build backends are
25+
:ref:`flit's flit-core <flit>`,
26+
:ref:`hatch's hatchling <hatch>`,
27+
:ref:`maturin`,
28+
:ref:`meson-python`,
29+
:ref:`scikit-build-core`,
30+
and :ref:`setuptools`.
31+
32+
33+
Build Frontend
34+
35+
A tool that users might run
36+
that takes arbitrary source trees or
37+
:term:`source distributions <Source Distribution (or "sdist")>`
38+
and builds source distributions or :term:`wheels <Wheel>` from them.
39+
The actual building is delegated to each source tree's
40+
:term:`build backend <Build Backend>`.
41+
42+
Examples of build frontends are :ref:`pip` and :ref:`build`.
43+
44+
1545
Built Distribution
1646

1747
A :term:`Distribution <Distribution Package>` format containing files

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ development as a whole. For example, it does not provide guidance or tool
1515
recommendations for version control, documentation, or testing.
1616

1717
For more reference material, see :std:doc:`Building and Distributing
18-
Packages <userguide/index>` in the :ref:`setuptools` docs, but note
18+
Packages <setuptools:userguide/index>` in the :ref:`setuptools` docs, but note
1919
that some advisory content there may be outdated. In the event of
2020
conflicts, prefer the advice in the Python Packaging User Guide.
2121

@@ -717,7 +717,7 @@ Lastly, if you don't want to install any dependencies at all, you can run:
717717
718718
For more information, see the
719719
:doc:`Development Mode <setuptools:userguide/development_mode>` section
720-
of the :doc:`setuptools docs <setuptools>`.
720+
of the :ref:`setuptools` docs.
721721

722722
.. _`Packaging your project`:
723723

source/key_projects.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ such as :ref:`setuptools` to build distributions, or :ref:`twine` to upload them
127127
to PyPI. Flit requires Python 3, but you can use it to distribute modules for
128128
Python 2, so long as they can be imported on Python 3.
129129

130+
The flit package is lifted by `Matthias Bussonnier
131+
<https://github.com/Carreau>`__ since October 2023 on the `tidelift platform
132+
<https://tidelift.com/lifter/search/pypi/flit>`__, and funds sent to the PSF and
133+
earmarked for PyPA usage.
134+
130135
.. _flit-rationale: https://flit.readthedocs.io/en/latest/rationale.html
131136

132137
.. _hatch:
@@ -140,7 +145,7 @@ hatch
140145

141146
Hatch is a unified command-line tool meant to conveniently manage
142147
dependencies and environment isolation for Python developers. Python
143-
package developers use Hatch and its build backend Hatchling to
148+
package developers use Hatch and its :term:`build backend <Build Backend>` Hatchling to
144149
configure, version, specify dependencies for, and publish packages
145150
to PyPI. Its plugin system allows for easily extending functionality.
146151

source/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Python's native packaging is mostly built for distributing reusable
167167
code, called libraries, between developers. You can piggyback
168168
**tools**, or basic applications for developers, on top of Python's
169169
library packaging, using technologies like
170-
:doc:`setuptools entry_points <userguide/entry_point>`.
170+
:doc:`setuptools entry_points <setuptools:userguide/entry_point>`.
171171

172172
Libraries are building blocks, not complete applications. For
173173
distributing applications, there's a whole new world of technologies

source/specifications/declaring-project-metadata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ table which are not defined by this specification. For tools wishing
2727
to store their own settings in ``pyproject.toml``, they may use the
2828
``[tool]`` table as defined in the
2929
:ref:`build dependency declaration specification <declaring-build-dependencies>`.
30-
The lack of a ``[project]`` table implicitly means the build back-end
30+
The lack of a ``[project]`` table implicitly means the :term:`build backend <Build Backend>`
3131
will dynamically provide all keys.
3232

3333
The only keys required to be statically defined are:

source/specifications/source-distribution-format.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ The name and version components of the filename MUST match the values stored
4343
in the metadata contained in the file.
4444

4545
Code that produces a source distribution file MUST give the file a name that matches
46-
this specification. This includes the ``build_sdist`` hook of a build backend.
46+
this specification. This includes the ``build_sdist`` hook of a
47+
:term:`build backend <Build Backend>`.
4748

4849
Code that processes source distribution files MAY recognise source distribution files
4950
by the ``.tar.gz`` suffix and the presence of precisely *one* hyphen in the filename.

0 commit comments

Comments
 (0)