From 1ff0b8721b46b8153763c356bd89db6ef806b7c0 Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Mon, 31 Aug 2020 15:07:31 -0400 Subject: [PATCH] Allow future extension of the spec in a backward compatible way (#1578) --- pep-0631.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pep-0631.rst b/pep-0631.rst index 962f1eb53..d30fe3275 100644 --- a/pep-0631.rst +++ b/pep-0631.rst @@ -41,12 +41,12 @@ Specification dependencies ------------ -- Format: array of strings +- Format: array of strings or inline tables - Related core metadata: - `Requires-Dist`_ -Every element must be an `entry <#entries>`_. +Every element SHOULD be an `entry <#entries>`_. :: @@ -57,6 +57,9 @@ Every element must be an `entry <#entries>`_. 'subprocess32; python_version < "3.2"', ] +Any element MAY be an inline table to support possible future functionality. +Backends MUST silently ignore these until the specification is extended. + optional-dependencies --------------------- @@ -67,7 +70,7 @@ optional-dependencies - `Requires-Dist`_ Each key is the name of the provided option, with each value being the same type as -the `dependencies <#dependencies>`_ field i.e. an array of strings. +the `dependencies <#dependencies>`_ field i.e. an array of strings or inline tables. ::