Skip to content

Commit 5469b1a

Browse files
committed
Change the deprecation policy around classifiers
1 parent 926952c commit 5469b1a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

peps/pep-0639.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -451,22 +451,18 @@ in the ``Classifier`` :term:`Core Metadata field`
451451
(`described in the Core Metadata specification <coremetadataclassifiers_>`__)
452452
is deprecated and replaced by the more precise ``License-Expression`` field.
453453

454-
If the ``License-Expression`` field is present, build tools SHOULD and
455-
publishing tools MUST raise an error if one or more license classifiers
454+
If the ``License-Expression`` field is present, build tools MAY raise an error
455+
if one or more license classifiers
456456
is included in a ``Classifier`` field, and MUST NOT add
457457
such classifiers themselves.
458458

459-
Otherwise, if this field contains a license classifier, build tools MAY
460-
and publishing tools SHOULD issue a warning informing users such classifiers
459+
Otherwise, if this field contains a license classifier,
460+
tools MAY issue a warning informing users such classifiers
461461
are deprecated, and recommending ``License-Expression`` instead.
462462
For compatibility with existing publishing and installation processes,
463463
the presence of license classifiers SHOULD NOT raise an error unless
464464
``License-Expression`` is also provided.
465465

466-
For all newly-uploaded distributions that include a
467-
``License-Expression`` field, the `Python Package Index (PyPI) <pypi_>`__ MUST
468-
reject any that also specify any license classifiers.
469-
470466
New license classifiers MUST NOT be `added to PyPI <classifiersrepo_>`__;
471467
users needing them SHOULD use the ``License-Expression`` field instead.
472468
License classifiers may be removed from a new version of the specification

0 commit comments

Comments
 (0)