@@ -544,28 +544,27 @@ distribution.
544
544
545
545
A requirement string has one mandatory and three optional parts.
546
546
547
- * A project name, in the same format as the `` Name: `` field.
548
- The only mandatory part.
547
+ * A project name, in :ref: ` the same format < name-format >`
548
+ as the `` Name: `` field. The only mandatory part.
549
549
* A comma-separated list of 'extra' names in square brackets, like
550
550
``[extra1,extra2] ``. These names are defined by the required
551
551
project, referring to specific features which may need extra
552
552
dependencies. The names MUST conform to the restrictions specified
553
553
by the ``Provides-Extra: `` field.
554
- * Either a version specifier or an ``@ `` sign followed by a URL.
555
- Tools parsing the format should accept optional parentheses around
556
- a version specifier, but tools generating it should not use
557
- parentheses.
554
+ * Either a :ref: `version specifier <version-specifiers >` or a
555
+ :ref: `direct reference <direct-references >`. Tools parsing the format
556
+ should accept optional parentheses around a version specifier, but
557
+ tools generating it should not use parentheses. If a distribution
558
+ requires a direct reference it cannot be uploaded to PyPI, but private
559
+ repositories may allow such distributions.
558
560
* An environment marker after a semicolon. This means that the
559
561
requirement is only needed in the specified conditions.
560
562
561
- See :pep: ` 508 ` for full details of the allowed format.
563
+ See :ref: ` dependency-specifiers ` for full details of the allowed format.
562
564
563
565
The project names should correspond to names as found
564
566
on the `Python Package Index `_.
565
567
566
- Version specifiers must follow the rules described in
567
- :doc: `version-specifiers `.
568
-
569
568
Examples::
570
569
571
570
Requires-Dist: pkginfo
0 commit comments