Skip to content

Commit 9cabd4c

Browse files
authored
Merge branch 'main' into pep-751
2 parents be0e85f + 2ecf748 commit 9cabd4c

File tree

4 files changed

+34
-8
lines changed

4 files changed

+34
-8
lines changed

source/conf.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@
7373

7474
_metrics_js_files = [
7575
(
76-
"https://plausible.io/js/script.js",
77-
{"data-domain": "packaging.python.org", "defer": "defer"},
78-
),
79-
(
80-
"https://analytics.python.org/js/script.js",
76+
"https://analytics.python.org/js/script.outbound-links.js",
8177
{"data-domain": "packaging.python.org", "defer": "defer"},
8278
),
8379
]

source/specifications/binary-distribution-format.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,20 @@ The .dist-info directory
253253
installation will fail if any file in the archive is not both
254254
mentioned and correctly hashed in RECORD.
255255

256+
Subdirectories in :file:`.dist-info/`
257+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
258+
259+
Subdirectories under :file:`.dist-info/` are reserved for future use.
260+
The following subdirectory names under :file:`.dist-info/` are reserved for specific usage:
261+
262+
================= ==============
263+
Subdirectory name PEP / Standard
264+
================= ==============
265+
``licenses`` :pep:`639`
266+
``license_files`` :pep:`639`
267+
``LICENSES`` `REUSE licensing framework <https://reuse.software>`__
268+
``sboms`` :pep:`770`
269+
================= ==============
256270

257271
The :file:`.dist-info/licenses/` directory
258272
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -263,6 +277,12 @@ fields is specified, the :file:`.dist-info/` directory MUST contain a
263277
``License-File`` fields in the :file:`METADATA` file at their respective paths
264278
relative to the :file:`licenses/` directory.
265279

280+
The :file:`.dist-info/sboms/` directory
281+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
282+
283+
All files contained within the :file:`.dist-info/sboms/` directory MUST
284+
be Software Bill-of-Materials (SBOM) files that describe software contained
285+
within the distribution archive.
266286

267287
The .data directory
268288
^^^^^^^^^^^^^^^^^^^

source/specifications/recording-installed-packages.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ The ``METADATA`` file is mandatory.
6666
All other files may be omitted at the installing tool's discretion.
6767
Additional installer-specific files may be present.
6868

69-
This :file:`.dist-info/` directory may contain the following directory, described in
69+
This :file:`.dist-info/` directory may contain the following directories, described in
7070
detail below:
7171

7272
* :file:`licenses/`: contains license files.
73+
* :file:`sboms/`: contains Software Bill-of-Materials files (SBOMs).
7374

7475
.. note::
7576

@@ -235,6 +236,15 @@ the :file:`METADATA` file at their respective paths relative to the
235236
Any files in this directory MUST be copied from wheels by the install tools.
236237

237238

239+
The :file:`sboms/` subdirectory
240+
==================================
241+
242+
All files contained within the :file:`.dist-info/sboms/` directory MUST
243+
be Software Bill-of-Materials (SBOM) files that describe software contained
244+
within the installed package.
245+
Any files in this directory MUST be copied from wheels by the install tools.
246+
247+
238248
Intentionally preventing changes to installed packages
239249
======================================================
240250

source/tutorials/installing-packages.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ Currently, there are two common tools for creating Python virtual environments:
228228
(Python versions prior to 3.12 also installed :ref:`setuptools`).
229229
* :ref:`virtualenv` needs to be installed separately, but supports Python 2.7+
230230
and Python 3.3+, and :ref:`pip`, :ref:`setuptools` and :ref:`wheel` are
231-
always installed into created virtual environments by default (regardless of
232-
Python version).
231+
installed into created virtual environments by default. Note that ``setuptools`` is no longer
232+
included by default starting with Python 3.12 (and ``virtualenv`` follows this behavior).
233233

234234
The basic usage is like so:
235235

0 commit comments

Comments
 (0)