When attempting to publish a new version of our Python package to PyPI using GitHub Actions, we encountered an error related to an invalid classifier: 'Intended Audience :: State and Federal United States Education Agencies'. This classifier does not match any of the categories recognized by PyPI, resulting in a 400 Bad Request error during the upload process.
Steps to Reproduce
Trigger the PyPI publish GitHub Action workflow by pushing a tag to the repository.
The workflow executes the steps to publish the package to PyPI.
The process fails during the upload step with an HTTP 400 error due to an invalid classifier.
Expected Behavior
The package is published to PyPI without errors, and all specified classifiers are recognized as valid.
Actual Behavior
The publishing process fails, and the following error is logged:
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
Invalid value for classifiers. Error: Classifier 'Intended Audience ::
State and Federal United States Education Agencies' is not a valid
classifier.
Possible Solution
Review and update the list of classifiers in the package configuration to ensure they all match the officially recognized classifiers by PyPI. Consider using a more general classifier like Intended Audience :: Education if applicable.
Additional Context
This issue prevents the new package version from being available to our users via PyPI. It's crucial for the intended audience, potentially including educators and educational institutions, that the package is published promptly with accurate metadata.
When attempting to publish a new version of our Python package to PyPI using GitHub Actions, we encountered an error related to an invalid classifier:
'Intended Audience :: State and Federal United States Education Agencies'
. This classifier does not match any of the categories recognized by PyPI, resulting in a400 Bad Request
error during the upload process.Steps to Reproduce
Expected Behavior
The package is published to PyPI without errors, and all specified classifiers are recognized as valid.
Actual Behavior
The publishing process fails, and the following error is logged: ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ Invalid value for classifiers. Error: Classifier 'Intended Audience :: State and Federal United States Education Agencies' is not a valid classifier.
Possible Solution
Review and update the list of classifiers in the package configuration to ensure they all match the officially recognized classifiers by PyPI. Consider using a more general classifier like
Intended Audience :: Education
if applicable.Additional Context
This issue prevents the new package version from being available to our users via PyPI. It's crucial for the intended audience, potentially including educators and educational institutions, that the package is published promptly with accurate metadata.