Skip to content

Add "replaced by" field for deprecated classifiers #4626

@di

Description

@di

One problem with our current ability to deprecate trove classifiers is that we don't have a great way to indicate to the user which classifier(s) they should be using instead.

For example, when I deprecated the classifier Natural Language :: Ukranian due to a typo and added Natural Language :: Ukrainian, any user that might have had the old classifier would have received an error like:

HTTPError: 400 Client Error: Invalid value for classifiers. Error: Classifier
'Natural Language :: Ukranian' has been deprecated,
see https://pypi.org/classifiers/ for a list of valid classifiers. for url:
http://upload.pypi.org/legacy/

It would be great if we could optionally identify one or more classifiers which replace a deprecated classifier when deprecating it, so we could make this error message something like:

HTTPError: 400 Client Error: Invalid value for classifiers. Error: Classifier
'Natural Language :: Ukranian' has been deprecated, and replaced with
the following classifier(s): 'Natural Language :: Ukrainian'. for url:
http://upload.pypi.org/legacy/

Good First Issue: This issue is good for first time contributors. If you've already contributed to Warehouse, work on another issue without this label instead. If there is not a corresponding pull request for this issue, it is up for grabs. For directions for getting set up, see our Getting Started Guide. If you are working on this issue and have questions, feel free to ask them here, #pypa-dev on Freenode, or the pypa-dev mailing list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueThis issue is ideal for first-time contributors!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions