P20WCommunityOfInnovation / DAR-T

Apache License 2.0
3 stars 0 forks source link

Invalid Classifier Error When Publishing to PyPI #78

Closed VT-AOE-DMAD-Drew-Bennett closed 9 months ago

VT-AOE-DMAD-Drew-Bennett commented 9 months ago

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

  1. Trigger the PyPI publish GitHub Action workflow by pushing a tag to the repository.
  2. The workflow executes the steps to publish the package to PyPI.
  3. 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.