From 915bf917578f6bac4f10f5a0cf08df6e58e92c09 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 10 Mar 2025 10:16:41 -0700 Subject: [PATCH 1/2] PEP 751: Drop requiring installers to install no extras and/os dependency groups by default Based on feedback from Poetry. Also fix some typos. --- peps/pep-0751.rst | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/peps/pep-0751.rst b/peps/pep-0751.rst index c4a00a4f391..9b8f81cbc5d 100644 --- a/peps/pep-0751.rst +++ b/peps/pep-0751.rst @@ -729,8 +729,8 @@ do for *containers*". There are no backwards-compatibility concerns as strings are containers themselves. Fourth, a tool MUST raise an error if an extra or dependency group is specified -in a marker expression that does not exist in ``packages.extras`` and -``packages.dependency-groups``, respectively. +in a marker expression that does not exist in ``extras`` and +``dependency-groups``, respectively. These changes, along with ``packages.extras``/ ``packages.dependency-groups`` and marker expressions' Boolean logic support, allow for expressing arbitrary, @@ -751,12 +751,10 @@ installed when: The same flexibility applies to dependency groups. How users tell a tool what extras and/or dependency groups they want installed -is up to the tool. Tools MUST default to no extras or dependency groups being -requested by the user if no extras or dependency groups are requested. -Installers MUST support the marker expression syntax additions as -proposed by this PEP. Lockers MAY support writing lock files that utilize the -proposed marker expression syntax additions (i.e. lockers can choose to only -support writing single-use lock files). +is up to the tool. Installers MUST support the marker expression syntax +additions as proposed by this PEP. Lockers MAY support writing lock files that +utilize the proposed marker expression syntax additions (i.e. lockers can choose +to only support writing single-use lock files). ------- From 4cf822deb6d1f3fb748098635c567ba6b7493825 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 10 Mar 2025 10:18:10 -0700 Subject: [PATCH 2/2] Grammar tweak --- peps/pep-0751.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-0751.rst b/peps/pep-0751.rst index 9b8f81cbc5d..6e9951b0c19 100644 --- a/peps/pep-0751.rst +++ b/peps/pep-0751.rst @@ -729,7 +729,7 @@ do for *containers*". There are no backwards-compatibility concerns as strings are containers themselves. Fourth, a tool MUST raise an error if an extra or dependency group is specified -in a marker expression that does not exist in ``extras`` and +in a marker expression that does not exist in ``extras`` or ``dependency-groups``, respectively. These changes, along with ``packages.extras``/ ``packages.dependency-groups``