Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upload to PyPI, 400 Client Error #333

Closed
chrisspen opened this issue Apr 1, 2018 · 3 comments
Closed

Unable to upload to PyPI, 400 Client Error #333

chrisspen opened this issue Apr 1, 2018 · 3 comments

Comments

@chrisspen
Copy link

I'm attempting to upload a package to PyPI, but twine is giving me a 400 Client Error, with no other explanation other than all the tags in my setup.py's classifier list. My classifier tags seem to be correct. What's the cause of this 400 error?

$ twine upload dist/reinforce-toolkit-0.2.1.tar.gz
Uploading distributions to https://upload.pypi.org/legacy/
Uploading reinforce-toolkit-0.2.1.tar.gz
HTTPError: 400 Client Error: ['Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: LGPL License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Pyth for url: https://upload.pypi.org/legacy/
@di
Copy link
Sponsor Member

di commented Apr 1, 2018

This is a duplicate of pypi/warehouse#3430 -- you have an invalid classifier, but the error message is a bit borked. Could you share your setup.py?

@di
Copy link
Sponsor Member

di commented Apr 2, 2018

Actually it looks like the invalid classifier is in the error message:

License :: OSI Approved :: LGPL License

is invalid, you'll have to choose from one of the following:

License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)

@chrisspen
Copy link
Author

Yep, that was it. Thanks.

renanxcortes added a commit to pysal/segregation that referenced this issue Apr 15, 2019
This has something to do with:
pypa/twine#333

It was giving some problems in the upload in PyPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants