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

extend twine check #584

Closed
gaborbernat opened this issue Apr 9, 2020 · 6 comments
Closed

extend twine check #584

gaborbernat opened this issue Apr 9, 2020 · 6 comments
Labels
duplicate question Discussion/decision needed from maintainers

Comments

@gaborbernat
Copy link

Ran into project https://github.com/jwodder/check-wheel-contents, and made me feel much of those should be done by twine check. Would we be open for this?

The author per jwodder/check-wheel-contents#1 would not mind trying to upstream those.

@di
Copy link
Sponsor Member

di commented Apr 9, 2020

I think the author is correct that it might be a bit too opinionated for twine check. The overall goal of twine check is to indicate anything that would prevent twine upload from succeeding.

I think if anything, this should be upstreamed into wheel -- these could be nice warnings to have when building the wheel.

@gaborbernat
Copy link
Author

🤔 I don't think it belongs to wheel because it does not depend on setuptools, can be used just as well for flit/poetry that might not use wheel. I guess PyPi will not fail to upload, but might still be not recommended. Maybe it should be separate then 🤔 and perhaps document it here, that check only checks invariants for PyPi and if you want more use x.

@di
Copy link
Sponsor Member

di commented Apr 9, 2020

Huh, TIL that flit/poetry don't use wheel to build wheels...

@gaborbernat
Copy link
Author

It might at the moment (not 100 on this), but really doesn't have to 🤔 and using wheels only makes sense if you under the hood use setuptools, which flit might do but would be surprised for poetry 🤔

@sigmavirus24
Copy link
Member

I think a subset of those could fit into twine check but the tool as a whole is trying to be Flake8 for wheels. Twine handles more than just wheels and so we'd then be starting to bias against linting source distributions and only linting wheels which feels awkward. Twine also owns nothing as far as the build process is concerned (today) and reaching further into the artifacts being uploaded than the metadata (which is required by the PyPI API) seems odd.

@bhrutledge
Copy link
Contributor

@pypa/twine-maintainers What's the resolution for this? Close as out of scope? Duplicate of #430? Other?

@bhrutledge bhrutledge added the question Discussion/decision needed from maintainers label Apr 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate question Discussion/decision needed from maintainers
Projects
None yet
Development

No branches or pull requests

4 participants