Skip to content

Commit a9b1f5e

Browse files
authored
Merge pull request pypa#1988 from ncoghlan/clarify-environment-marker-comparisons
Attempt to clarify environment marker evaluation
2 parents c9d0b69 + ff0c07d commit a9b1f5e

5 files changed

Lines changed: 323 additions & 114 deletions

File tree

source/specifications/core-metadata.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,14 +574,14 @@ The format of a requirement string contains from one to four parts:
574574
* An environment marker after a semicolon. This means that the
575575
requirement is only needed in the specified conditions.
576576

577-
See :pep:`508` for full details of the allowed format.
578-
579577
The project names should correspond to names as found
580578
on the `Python Package Index`_.
581579

582580
Version specifiers must follow the rules described in
583581
:doc:`version-specifiers`.
584582

583+
See :ref:`dependency-specifiers` for full details of the allowed format.
584+
585585
Examples::
586586

587587
Requires-Dist: pkginfo
@@ -1071,6 +1071,9 @@ History
10711071
- October 2025: Clarified that ``License-Expression`` applies to the containing
10721072
distribution file and not the project itself.
10731073

1074+
- January 2026: Replaced outdated direct reference to :pep:`508` with a
1075+
reference to :ref:`dependency-specifiers`.
1076+
10741077
----
10751078

10761079
.. [1] reStructuredText markup:

source/specifications/dependency-groups.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ The output is therefore valid ``requirements.txt`` data.
209209
realized_group = []
210210
for item in raw_group:
211211
if isinstance(item, str):
212-
# packaging.requirements.Requirement parsing ensures that this is a valid
213-
# PEP 508 Dependency Specifier
212+
# packaging.requirements.Requirement parsing ensures that this
213+
# is a valid dependency specifier
214214
# raises InvalidRequirement on failure
215215
Requirement(item)
216216
realized_group.append(item)

0 commit comments

Comments
 (0)