Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion peps/pep-0751.rst
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ consistent order. Usage of inline tables SHOULD also be kept consistent.
- **Type**: Array of strings
- **Required?**: no; defaults to ``[]``
- **Inspiration**: :ref:`packaging:pyproject-tool-table`
- The list of :ref:`packaging:dependency-groups` supported by this lock file.
- The list of :ref:`packaging:dependency-groups` publicly supported by this lock
file (i.e. dependency groups users are expected to be able to specify via a
tool's UI).
- Lockers MAY choose to not support writing lock files that support extras and
dependency groups (i.e. tools may only support exporting a single-use lock
file).
Expand Down Expand Up @@ -907,6 +909,13 @@ The following outlines the steps to be taken to install from a lock file
(while the requirements are prescriptive, the general steps and order are
a suggestion):

#. Gather the extras and dependency groups to install and set ``extras`` and
``dependency_groups`` for marker evaluation, respectively.

#. ``extras`` SHOULD be set to the empty set by default.
#. ``dependency_groups`` SHOULD be the set created from ``default-groups`` by
default.

#. Check if the metadata version specified by ``lock-version`` is supported;
an error or warning MUST be raised as appropriate.
#. If ``requires-python`` is specified, check that the environment being
Expand Down