Prevent packages with «Not Open Source» license from being uploaded to PyPI
veit opened this issue · 1 comments
veit commented
Use an invalid (non-existent)classifier like Private :: Do Not Upload
in your setup.py
file ensures you don’t accidentally upload a private package to PyPI.
veit commented
The setup.py
for other licenses now looks like:
classifiers=[
'License :: Other/Proprietary License',
'Private :: Do Not Upload',
…
],
When trying to upload this package to PyPI, the following error message appears:
HTTPError: 400 Client Error: Invalid value for classifiers. Error: 'Private :: Do Not Upload' is not a valid choice for this field for url: https://upload.pypi.org/legacy/