-1

I tried so many times and nothing seems to work even after I created a GitHub repo I can't upload my first package to PyPI every time I try to use twine it gives this

C:\Users\Admin\PycharmProjects\Python Packages\opencvFPS>twine upload dist/* Upl oading distributions to https://upload.pypi.org/legacy/ Enter your username: Prathamesh_Bhatkar Enter your password:

Uploading opencvFPS-0.1.tar.gz

100%|████████████████████████████████████| 5.26k/5.26k [00:02<00:00, 2.51kB/s]

NOTE: Try --verbose to see response content.

And this error

HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ Invalid value for classifiers. Error: Classifier 'Programming Language :: Python :: 3.8.6' is not a valid classifier.

How can I solve this?

And I am new to PyPI so I Don't know much about it.

Thanks!!

4

1 回答 1

3

Try to remove the minor python version in the classifier like the example mentionned in the documentation here.

So change it like this :

setup(...,
      classifiers=[
          # Other classifier
          'Programming Language :: Python :: 3.6',
          # Other classifier
          ],
      )
于 2021-05-13T15:04:14.343 回答