diff --git a/pep-0643.rst b/pep-0643.rst index 1f523f859..eab126631 100644 --- a/pep-0643.rst +++ b/pep-0643.rst @@ -2,7 +2,7 @@ PEP: 643 Title: Metadata for Package Source Distributions Author: Paul Moore BDFL-Delegate: Paul Ganssle -Discussions-To: Discourse, thread to be created. +Discussions-To: https://discuss.python.org/t/pep-643-metadata-for-package-source-distributions/5577 Status: Draft Type: Standards Track Content-Type: text/x-rst @@ -116,6 +116,15 @@ format to version 2.2. Source distributions MUST use the latest version of the core metadata specification (which will be version 2.2 or later). +The ``Requires-Python`` field for a project may vary by target platform, +but is not allowed to be declared as ``Dynamic`` in the sdist metadata. +To handle this situation, build backends MUST use environment markers on +the ``Requires-Python`` field to allow that metadata to remain common +across the sdist and all wheel archives, rather than generating platform +dependent ``Requires-Python`` metadata as part of the wheel build +process. Build backends SHOULD also use this approach for other +metadata fields that may vary by target platform (e.g. dependency +declarations). Backwards Compatibility =======================