File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,15 @@ A ``.tar.gz`` source distribution (sdist) contains a single top-level directory
58
58
called ``{name}-{version} `` (e.g. ``foo-1.0 ``), containing the source files of
59
59
the package. The name and version MUST match the metadata stored in the file.
60
60
This directory must also contain a :file: `pyproject.toml ` in the format defined in
61
- :ref: `pyproject-toml-spec `, and a `` PKG-INFO ` ` file containing
61
+ :ref: `pyproject-toml-spec `, and a :file: ` PKG-INFO ` file containing
62
62
metadata in the format described in the :ref: `core-metadata ` specification. The
63
63
metadata MUST conform to at least version 2.2 of the metadata specification.
64
64
65
+ If the metadata version is 2.4 or greater, the source distribution MUST contain
66
+ any license files specified by the ``License-File `` field in the :file: `PKG-INFO `
67
+ at their respective paths relative to the root directory of the sdist
68
+ (containing the :file: `pyproject.toml ` and the :file: `PKG-INFO ` metadata).
69
+
65
70
No other content of a sdist is required or defined. Build systems can store
66
71
whatever information they need in the sdist to build the project.
67
72
@@ -150,3 +155,5 @@ History
150
155
:pep: `625 `.
151
156
* August 2023: Source distribution archive features were standardized through
152
157
:pep: `721 `.
158
+ * December 2024: License files inclusion into source distribution was standardized
159
+ through :pep: `639 `.
You can’t perform that action at this time.
0 commit comments