Skip to content

Commit dc37564

Browse files
authored
Merge pull request #1373 from hugovk/pep440-pep-to-spec
Version specifiers: replace 'PEP' with 'specification'
2 parents 9ff4d5b + ffff0a3 commit dc37564

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

source/specifications/version-specifiers.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ aside from always being the lowest possible value in the version ordering.
101101
across existing public and private Python projects.
102102

103103
Accordingly, some of the versioning practices which are technically
104-
permitted by the PEP are strongly discouraged for new projects. Where
104+
permitted by the specification are strongly discouraged for new projects. Where
105105
this is the case, the relevant details are noted in the following
106106
sections.
107107

@@ -631,7 +631,7 @@ are permitted and MUST be ordered as shown::
631631
Note that ``c`` is considered to be semantically equivalent to ``rc`` and must
632632
be sorted as if it were ``rc``. Tools MAY reject the case of having the same
633633
``N`` for both a ``c`` and a ``rc`` in the same release segment as ambiguous
634-
and remain in compliance with the PEP.
634+
and remain in compliance with the specification.
635635

636636
Within an alpha (``1.0a1``), beta (``1.0b1``), or release candidate
637637
(``1.0rc1``, ``1.0c1``), the following suffixes are permitted and MUST be
@@ -692,9 +692,9 @@ versions of a project.
692692

693693
Due to the above, this specification MUST be used for all versions of metadata and
694694
supersedes :pep:`386` even for metadata v1.2. Tools SHOULD ignore any versions
695-
which cannot be parsed by the rules in this PEP, but MAY fall back to
695+
which cannot be parsed by the rules in this specification, but MAY fall back to
696696
implementation defined version parsing and ordering schemes if no versions
697-
complying with this PEP are available.
697+
complying with this specification are available.
698698

699699
Distribution users may wish to explicitly remove non-compliant versions from
700700
any private package indexes they control.
@@ -705,7 +705,7 @@ Compatibility with other version schemes
705705

706706
Some projects may choose to use a version scheme which requires
707707
translation in order to comply with the public version scheme defined in
708-
this PEP. In such cases, the project specific version can be stored in the
708+
this specification. In such cases, the project specific version can be stored in the
709709
metadata while the translated public version is published in the version field.
710710

711711
This allows automated distribution tools to provide consistently correct
@@ -717,15 +717,15 @@ Semantic versioning
717717
~~~~~~~~~~~~~~~~~~~
718718

719719
`Semantic versioning`_ is a popular version identification scheme that is
720-
more prescriptive than this PEP regarding the significance of different
720+
more prescriptive than this specification regarding the significance of different
721721
elements of a release number. Even if a project chooses not to abide by
722722
the details of semantic versioning, the scheme is worth understanding as
723723
it covers many of the issues that can arise when depending on other
724724
distributions, and when publishing a distribution that others rely on.
725725

726-
The "Major.Minor.Patch" (described in this PEP as "major.minor.micro")
726+
The "Major.Minor.Patch" (described in this specification as "major.minor.micro")
727727
aspects of semantic versioning (clauses 1-8 in the 2.0.0 specification)
728-
are fully compatible with the version scheme defined in this PEP, and abiding
728+
are fully compatible with the version scheme defined in this specification, and abiding
729729
by these aspects is encouraged.
730730

731731
Semantic versions containing a hyphen (pre-releases - clause 10) or a
@@ -1011,10 +1011,10 @@ local versions. This operator also does not support prefix matching as the
10111011
``==`` operator does.
10121012

10131013
The primary use case for arbitrary equality is to allow for specifying a
1014-
version which cannot otherwise be represented by this PEP. This operator is
1014+
version which cannot otherwise be represented by this specification. This operator is
10151015
special and acts as an escape hatch to allow someone using a tool which
1016-
implements this PEP to still install a legacy version which is otherwise
1017-
incompatible with this PEP.
1016+
implements this specification to still install a legacy version which is otherwise
1017+
incompatible with this specification.
10181018

10191019
An example would be ``===foobar`` which would match a version of ``foobar``.
10201020

@@ -1178,16 +1178,16 @@ Summary of differences from pkg_resources.parse_version
11781178
the time :pep:`440` was written. After the PEP was accepted, setuptools 6.0 and
11791179
later versions adopted the behaviour described here.
11801180

1181-
* Local versions sort differently, this PEP requires that they sort as greater
1181+
* Local versions sort differently, this specification requires that they sort as greater
11821182
than the same version without a local version, whereas
11831183
``pkg_resources.parse_version`` considers it a pre-release marker.
11841184

1185-
* This PEP purposely restricts the syntax which constitutes a valid version
1185+
* This specification purposely restricts the syntax which constitutes a valid version
11861186
while ``pkg_resources.parse_version`` attempts to provide some meaning from
11871187
*any* arbitrary string.
11881188

11891189
* ``pkg_resources.parse_version`` allows arbitrarily deeply nested version
1190-
signifiers like ``1.0.dev1.post1.dev5``. This PEP however allows only a
1190+
signifiers like ``1.0.dev1.post1.dev5``. This specification however allows only a
11911191
single use of each type and they must exist in a certain order.
11921192

11931193

0 commit comments

Comments
 (0)