Skip to content

Commit df65d10

Browse files
authored
Merge pull request #1976 from SpecLad/license-deprecated
Core metadata: move `License` into the "Deprecated Fields" section
2 parents 6b741bb + fca2876 commit df65d10

1 file changed

Lines changed: 32 additions & 32 deletions

File tree

‎source/specifications/core-metadata.rst‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -447,38 +447,6 @@ addresses::
447447
Maintainer-email: cschultz@example.com, snoopy@peanuts.com
448448

449449

450-
.. _license-optional:
451-
.. _core-metadata-license:
452-
453-
License
454-
=======
455-
456-
.. versionadded:: 1.0
457-
.. deprecated:: 2.4
458-
in favour of ``License-Expression``.
459-
460-
.. warning::
461-
As of Metadata 2.4, ``License`` and ``License-Expression`` are mutually
462-
exclusive. If both are specified, tools which parse metadata will disregard
463-
``License`` and PyPI will reject uploads.
464-
See `PEP 639 <https://peps.python.org/pep-0639/#deprecate-license-field>`__.
465-
466-
Text indicating the license covering the distribution where the license
467-
is not a selection from the "License" Trove classifiers. See
468-
:ref:`"Classifier" <metadata-classifier>` below.
469-
This field may also be used to specify a
470-
particular version of a license which is named via the ``Classifier``
471-
field, or to indicate a variation or exception to such a license.
472-
473-
Examples::
474-
475-
License: This software may only be obtained by sending the
476-
author a postcard, and then the user promises not
477-
to redistribute it.
478-
479-
License: GPL version 3, excluding DRM provisions
480-
481-
482450
.. _license-expression-optional:
483451
.. _core-metadata-license-expression:
484452

@@ -1039,6 +1007,38 @@ Example::
10391007
Obsoletes: Gorgon
10401008

10411009

1010+
.. _license-optional:
1011+
.. _core-metadata-license:
1012+
1013+
License
1014+
-------
1015+
1016+
.. versionadded:: 1.0
1017+
.. deprecated:: 2.4
1018+
in favour of ``License-Expression``.
1019+
1020+
.. warning::
1021+
As of Metadata 2.4, ``License`` and ``License-Expression`` are mutually
1022+
exclusive. If both are specified, tools which parse metadata will disregard
1023+
``License`` and PyPI will reject uploads.
1024+
See `PEP 639 <https://peps.python.org/pep-0639/#deprecate-license-field>`__.
1025+
1026+
Text indicating the license covering the distribution where the license
1027+
is not a selection from the "License" Trove classifiers. See
1028+
:ref:`"Classifier" <metadata-classifier>` below.
1029+
This field may also be used to specify a
1030+
particular version of a license which is named via the ``Classifier``
1031+
field, or to indicate a variation or exception to such a license.
1032+
1033+
Examples::
1034+
1035+
License: This software may only be obtained by sending the
1036+
author a postcard, and then the user promises not
1037+
to redistribute it.
1038+
1039+
License: GPL version 3, excluding DRM provisions
1040+
1041+
10421042
History
10431043
=======
10441044

0 commit comments

Comments
 (0)