From bde4ef1f98a3c6614ac1b5bb69cae6912abb263a Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sat, 22 Sep 2018 02:59:50 +0530 Subject: [PATCH] PEP 566: Support for direct references and permit public index to add restrictions (#783) --- pep-0566.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pep-0566.rst b/pep-0566.rst index c76be7aba..74924e042 100644 --- a/pep-0566.rst +++ b/pep-0566.rst @@ -93,13 +93,16 @@ Version Specifiers ================== Version numbering requirements and the semantics for specifying comparisons -between versions are defined in PEP 440. +between versions are defined in :pep:`440`. Direct references as defined in +:pep:`440` are also permitted as an alternative to version specifiers. Following :pep:`508`, version specifiers no longer need to be surrounded by parentheses in the fields Requires-Dist, Provides-Dist, Obsoletes-Dist or Requires-External, so e.g. ``requests >= 2.8.1`` is now a valid value. The recommended format is without parentheses, but tools parsing metadata should -also be able to handle version specifiers in parentheses. +also be able to handle version specifiers in parentheses. Further, public index +servers MAY prohibit strict version matching clauses or direct references in +these fields. Usage of version specifiers is otherwise unchanged from PEP 345.