Skip to content

Commit d4fe96d

Browse files
takluyverJon Wayne Parrott
authored andcommitted
Update section on Requires-Python (pypa#414)
Closes pypagh-413
1 parent 4bd8608 commit d4fe96d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/specifications/core-metadata.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,16 +453,16 @@ Requires-Python
453453
.. versionadded:: 1.2
454454

455455
This field specifies the Python version(s) that the distribution is
456-
guaranteed to be compatible with.
456+
guaranteed to be compatible with. Installation tools may look at this when
457+
picking which version of a project to install.
457458

458-
Version numbers must be in the format specified in :doc:`version-specifiers`.
459+
The value must be in the format specified in :doc:`version-specifiers`.
459460

460461
Examples::
461462

462-
Requires-Python: 2.5
463-
Requires-Python: >2.1
464-
Requires-Python: >=2.3.4
465-
Requires-Python: >=2.5,<2.7
463+
Requires-Python: >=3
464+
Requires-Python: >2.6,!=3.0.*,!=3.1.*
465+
Requires-Python: ~=2.6
466466

467467

468468
Requires-External (multiple use)

0 commit comments

Comments
 (0)