PEP 631: Finalize wording (GH-1636)

Co-Authored-By: Paul Moore <1110419+pfmoore@users.noreply.github.com>

Co-authored-by: Paul Moore <1110419+pfmoore@users.noreply.github.com>
This commit is contained in:
Ofek Lev 2020-10-05 02:59:20 -04:00 committed by GitHub
parent ec8efbaf33
commit 00e16551e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -41,12 +41,12 @@ Specification
dependencies
------------
- Format: array of strings or inline tables
- Format: array of strings
- Related core metadata:
- `Requires-Dist`_
Every element SHOULD be an `entry <#entries>`_.
Every element MUST be an `entry <#entries>`_.
::
@ -57,14 +57,6 @@ Every element SHOULD be an `entry <#entries>`_.
'subprocess32; python_version < "3.2"',
]
Future versions of this specification that allow for any element to be an inline
table should be considered backwards compatible, and consumers of the ``[project]``
table should take this into consideration.
Backends MUST error when encountering these unless the specification is extended;
other parsers, particularly those not intended to be listed in a project's
``build-system.requires``, SHOULD consider the entire enclosing field as `dynamic`_.
optional-dependencies
---------------------
@ -75,7 +67,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 or inline tables.
the `dependencies <#dependencies>`_ field i.e. an array of strings.
::
@ -229,7 +221,6 @@ CC0-1.0-Universal license, whichever is more permissive.
.. _fields defined in PEP 621: https://www.python.org/dev/peps/pep-0621/#dependencies-optional-dependencies
.. _PEP 508 strings: https://www.python.org/dev/peps/pep-0508/
.. _Requires-Dist: https://packaging.python.org/specifications/core-metadata/#requires-dist-multiple-use
.. _dynamic: https://www.python.org/dev/peps/pep-0621/#dynamic
.. _Provides-Extra: https://packaging.python.org/specifications/core-metadata/#provides-extra-multiple-use
.. _docker-compose: https://github.com/docker/compose/blob/789bfb0e8b2e61f15f423d371508b698c64b057f/setup.py#L28-L61