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

Metadata for upload rejection #557

Closed
RDIL opened this issue Dec 11, 2019 · 4 comments
Closed

Metadata for upload rejection #557

RDIL opened this issue Dec 11, 2019 · 4 comments

Comments

@RDIL
Copy link
Contributor

RDIL commented Dec 11, 2019

I have a private package, and I want to make sure the built distributions can't get uploaded to PyPI (so it can't easily be leaked), I realize this is a quite specific request, but I would be very grateful if it could be added.

@sigmavirus24
Copy link
Member

This would need to move to a different repository. Twine can't make arbitrary changes to the metadata specification for Python packaging

@sigmavirus24
Copy link
Member

https://github.com/pypa/packaging-problems is the right repo I think

@di
Copy link
Member

di commented Dec 17, 2019

You can set a classifier on your distribution such as Private :: Do Not Upload (or anything with the Private top-level classifier) and PyPI will refuse to accept it.

This would prevent it from accidentally being uploaded... anyone intentionally trying to leak it would still be able to (by removing the classifier), but there's not much that can be done to prevent that.

@RDIL
Copy link
Contributor Author

RDIL commented Dec 17, 2019

That is exactly what I need. Thank you @di 😄

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

3 participants