diff --git a/pep-0503.txt b/pep-0503.txt index fa52e536b03..09f737ed4b5 100644 --- a/pep-0503.txt +++ b/pep-0503.txt @@ -96,6 +96,16 @@ In addition to the above, the following constraints are placed on the API: a value of either ``true`` or ``false`` to indicate whether or not there is a GPG signature. Repositories that do this **SHOULD** include it on every link. +* A repository **MAY** include a ``data-requires-python`` attribute on a file + link. This exposes the *Requires-Python* metadata field, specified in PEP 345, + for the corresponding release. Where this is present, installer tools + **SHOULD** ignore the download when installing to a Python version that + doesn't satisfy the requirement. For example:: + + ... + + In the attribute value, < and > have to be HTML encoded as ``<`` and + ``>``, respectively. Normalized Names ---------------- @@ -111,6 +121,11 @@ can be implemented in Python with the ``re`` module:: def normalize(name): return re.sub(r"[-_.]+", "-", name).lower() +Changes +------- + +* The optional ``data-requires-python`` attribute was added in July 2016. + Copyright =========