@@ -6,16 +6,17 @@ Source distribution format
66==========================
77
88The current standard format of source distribution format is identified by the
9- presence of a `` pyproject.toml ` ` file in the distribution archive. The layout
9+ presence of a :file: ` pyproject.toml ` file in the distribution archive. The layout
1010of such a distribution was originally specified in :pep: `517 ` and is formally
1111documented here.
1212
1313There is also the legacy source distribution format, implicitly defined by the
1414behaviour of ``distutils `` module in the standard library, when executing
15- ``setup.py sdist ``. This document does not attempt to standardise this format,
16- except to note that if a legacy source distribution contains a ``PKG-INFO ``
17- file holding metadata version 2.2 or later, then it MUST follow the rules
18- applicable to source distributions defined in the metadata specification.
15+ :command: `setup.py sdist `. This document does not attempt to standardise this
16+ format, except to note that if a legacy source distribution contains a
17+ ``PKG-INFO `` file using metadata version 2.2 or later, then it MUST follow
18+ the rules applicable to source distributions defined in the metadata
19+ specification.
1920
2021Source distributions are also known as *sdists * for short.
2122
@@ -36,7 +37,7 @@ Source distribution file format
3637A ``.tar.gz `` source distribution (sdist) contains a single top-level directory
3738called ``{name}-{version} `` (e.g. ``foo-1.0 ``), containing the source files of
3839the package. The name and version MUST match the metadata stored in the file.
39- This directory must also contain a `` pyproject.toml ` ` in the format defined in
40+ This directory must also contain a :file: ` pyproject.toml ` in the format defined in
4041:ref: `declaring-build-dependencies `, and a ``PKG-INFO `` file containing
4142metadata in the format described in the :ref: `core-metadata ` specification. The
4243metadata MUST conform to at least version 2.2 of the metadata specification.
0 commit comments