@@ -114,6 +114,13 @@ by the metadata). Dynamic metadata is listed via the ``dynamic`` key
114114(defined later in this specification) and represents metadata that a
115115tool will later provide.
116116
117+ A key whose value is a list or a table of arbitrary entries MAY be
118+ specified statically *and * listed in ``dynamic `` at the same time. In
119+ that case the entries given statically are fixed and a build back-end
120+ MAY only *append * further entries to them; the back-end MUST NOT
121+ remove, reorder, or modify any statically-specified entries. See the
122+ :ref: `dynamic <pyproject-toml-dynamic >` key for details.
123+
117124The lack of a ``[project] `` table implicitly means the :term: `build backend <Build Backend> `
118125will dynamically provide all keys.
119126
@@ -624,8 +631,9 @@ provided via tooling later on.
624631 field as "Optional", the metadata MAY list it in ``dynamic `` if the
625632 expectation is a build back-end will provide the data for the key
626633 later.
627- - Build back-ends MUST raise an error if the metadata specifies a
628- key statically as well as being listed in ``dynamic ``.
634+ - Build back-ends MUST raise an error if the metadata specifies a key
635+ statically as well as being listed in ``dynamic ``, *unless * the key
636+ represents a list or arbitrary table that can be extended, listed below.
629637- If the metadata does not list a key in ``dynamic ``, then a build
630638 back-end CANNOT fill in the requisite metadata on behalf of the user
631639 (i.e. ``dynamic `` is the only way to allow a tool to fill in
@@ -635,6 +643,35 @@ provided via tooling later on.
635643 the data for it (omitting the data, if determined to be the accurate
636644 value, is acceptable).
637645
646+ A key whose value is a list or a table of arbitrary entries MAY be
647+ specified statically and listed in ``dynamic `` simultaneously. The
648+ keys fitting that description are:
649+
650+ - ``authors ``
651+ - ``classifiers ``
652+ - ``dependencies ``
653+ - ``entry-points ``
654+ - ``gui-scripts ``
655+ - ``import-names ``
656+ - ``import-namespaces ``
657+ - ``keywords ``
658+ - ``license-files ``
659+ - ``maintainers ``
660+ - ``optional-dependencies ``
661+ - ``scripts ``
662+ - ``urls ``
663+
664+ When such a key is specified both statically and listed in
665+ ``dynamic ``:
666+
667+ - A build back-end MAY only *append * entries to the value; it MUST NOT
668+ remove, reorder, or modify any statically-specified entries. For
669+ tables (such as ``optional-dependencies `` or ``entry-points ``) this
670+ means a back-end MAY add new keys and MAY append to the values of
671+ existing keys (in the case of a list), but MUST NOT change or remove the
672+ entries given statically.
673+ - A build back-end SHOULD raise an error if a key is listed in
674+ ``dynamic `` and it does not support extending that key.
638675
639676
640677.. _pyproject-tool-table :
@@ -678,6 +715,10 @@ History
678715- January 2026: Replaced outdated direct reference to :pep: `508 ` with a
679716 reference to :ref: `dependency-specifiers `.
680717
718+ - May 2026: Allowed list and table keys to be specified statically as well
719+ as listed in ``dynamic ``, with build back-ends only able to append
720+ entries, through :pep: `808 `.
721+
681722- August 2026: Document self-referential extra as a supported feature by many
682723 modern package managers of Python.
683724
0 commit comments