Skip to content

Commit a222c4a

Browse files
committed
document deprecations and conflicts
1 parent 062be1e commit a222c4a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

source/specifications/core-metadata.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,14 @@ License
460460
=======
461461

462462
.. versionadded:: 1.0
463+
.. deprecated:: 2.4
464+
in favour of ``License-Expression``.
465+
466+
.. warning::
467+
As of Metadata 2.4, ``License`` and ``License-Expression`` are mutually
468+
exclusive. If both are specified, tools which parse metadata will disregard
469+
``License`` and PyPI will reject uploads.
470+
See `PEP 639 <https://peps.python.org/pep-0639/#deprecate-license-field>`__.
463471

464472
Text indicating the license covering the distribution where the license
465473
is not a selection from the "License" Trove classifiers. See
@@ -510,7 +518,7 @@ License-File (multiple use)
510518

511519
Each entry is a string representation of the path of a license-related file.
512520
The path is located within the project source tree, relative to the project
513-
root directory.
521+
root directory. For details see :pep:`639`.
514522

515523
Examples::
516524

@@ -534,6 +542,11 @@ for the distribution. Classifiers are described in :pep:`301`,
534542
and the Python Package Index publishes a dynamic list of
535543
`currently defined classifiers <https://pypi.org/classifiers/>`__.
536544

545+
.. note::
546+
The use of ``License ::`` classifiers is deprecated as of Metadata 2.4,
547+
use ``License-Expression`` instead. See
548+
`PEP 639 <https://peps.python.org/pep-0639/#deprecate-license-classifiers>`_.
549+
537550
This field may be followed by an environment marker after a semicolon.
538551

539552
Examples::

0 commit comments

Comments
 (0)