@@ -16,8 +16,8 @@ acceptable, so the language permits describing all these cases.
1616The language defined is a compact line based format which is already in
1717widespread use in pip requirements files, though we do not specify the command
1818line option handling that those files permit. There is one caveat - the
19- URL reference form, specified in :pep: ` 440 ` is not actually
20- implemented in pip, but since :pep: ` 440 ` is accepted, we use that format rather
19+ URL reference form, specified in :ref: ` Versioning specifier specification < version-specifiers >`
20+ is not actually implemented in pip, but we use that format rather
2121than pip's current native format.
2222
2323Specification
@@ -57,7 +57,8 @@ as comments, multiple line support via continuations, or other such features.
5757The full grammar including annotations to build a useful parse tree is
5858included at the end of this document.
5959
60- Versions may be specified according to the :pep: `440 ` rules. (Note:
60+ Versions may be specified according to the rules of the
61+ :ref: `Version specifier specification <version-specifiers >`. (Note:
6162URI is defined in :rfc: `std-66 <3986 >`)::
6263
6364 version_cmp = wsp* '<' | '<=' | '!=' | '==' | '>=' | '>' | '~=' | '==='
@@ -159,12 +160,13 @@ If multiple extras are listed, all the dependencies are unioned together.
159160Versions
160161--------
161162
162- See :pep: `440 ` for more detail on both version numbers and version
163- comparisons. Version specifications limit the versions of a distribution that
164- can be used. They only apply to distributions looked up by name, rather than
163+ See the :ref: `Version specifier specification <version-specifiers >` for
164+ more detail on both version numbers and version comparisons. Version
165+ specifications limit the versions of a distribution that can be
166+ used. They only apply to distributions looked up by name, rather than
165167via a URL. Version comparison are also used in the markers feature. The
166- optional brackets around a version are present for compatibility with :pep: ` 345 `
167- but should not be generated, only accepted.
168+ optional brackets around a version are present for compatibility with
169+ :pep: ` 345 ` but should not be generated, only accepted.
168170
169171Environment Markers
170172-------------------
@@ -186,10 +188,11 @@ fixes some issues that were observed in the design described in :pep:`426`.
186188
187189Comparisons in marker expressions are typed by the comparison operator. The
188190<marker_op> operators that are not in <version_cmp> perform the same as they
189- do for strings in Python. The <version_cmp> operators use the :pep: `440 `
190- version comparison rules when those are defined (that is when both
191- sides have a valid version specifier). If there is no defined :pep: `440 `
192- behaviour and the operator exists in Python, then the operator falls back to
191+ do for strings in Python. The <version_cmp> operators use the version comparison
192+ rules of the :ref: `Version specifier specification <version-specifiers >`
193+ when those are defined (that is when both sides have a valid
194+ version specifier). If there is no defined behaviour of this specification
195+ and the operator exists in Python, then the operator falls back to
193196the Python behaviour. Otherwise an error should be raised. e.g. the following
194197will result in errors::
195198
0 commit comments