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

Plans/need for an equivalent to pep517.check? #105

Closed
matthewfeickert opened this issue Sep 14, 2020 · 7 comments
Closed

Plans/need for an equivalent to pep517.check? #105

matthewfeickert opened this issue Sep 14, 2020 · 7 comments

Comments

@matthewfeickert
Copy link

matthewfeickert commented Sep 14, 2020

Hi. I'm coming here from pypa/pyproject-hooks#91 as it is noted on the checklist that

Add a deprecation warning when pep517.check is used

Apologies in advance is this is covered in an Issue already and I've failed to find it, but as it isn't mentioned in PR #83, are there plans to also make an equivalent of pep517.check available in the build CLI API?

Though perhaps there isn't an explicit need for the check API (?) given that python-build (and pep517.build) seems to perform the equivalent of pep517.check during its run.

@pganssle
Copy link
Member

I will defer to @FFY00 on this, but my $0.02 is that while some sort of a --dry-run or --check-only flag isn't the worst thing in the world, it may be hard to communicate exactly what it does. I am not sure "validate your build-system table" is what most people would think it does — they may think that it's doing something more extensive, or that it checks existing built artifacts or something.

If we decide something like this is worth including, we'll have to be very careful about the UI.

@FFY00
Copy link
Member

FFY00 commented Sep 15, 2020

I think this is a bit out of scope. Perhaps you could try to convince me otherwise by explaining why it is needed.
From a quick look, pep517.check seems to actually build the sdist and/or wheel and just delete the directory afterwards. I would say to just replace pep517.check with the build command, if you don't want the artifacts then remove the output directory.

@matthewfeickert
Copy link
Author

I would say to just replace pep517.check with the build command, if you don't want the artifacts then remove the output directory.

@FFY00 This is good enough for me now given my comment above. I was expecting feature parity in the API, though as you say, this isn't really needed perhaps. Thanks!

matthewfeickert referenced this issue in matthewfeickert/heputils Sep 15, 2020
* Migrate from the deprecated pep517.build to python-build CLI for builds for packaging
   - c.f. pypa/pyproject-hooks#83
* Remove check stage as done implicitly with python-build
   - c.f. https://github.com/FFY00/python-build/issues/105
kratsg referenced this issue in scikit-hep/pyhf Sep 15, 2020
* Migrate from the deprecated pep517.build to python-build CLI for builds for packaging
   - c.f. pypa/pyproject-hooks#83
* Remove check stage as done implicitly with python-build
   - c.f. https://github.com/FFY00/python-build/issues/105
@takluyver
Copy link
Member

pep517.check does do a tiny bit more than building - e.g. it verifies that the produced packages have the expected extensions and the expected archive formats (zip/tar). It's also trying to have clear & concise error messages when the checks fail, though I don't know if it does a good job of that.

@FFY00
Copy link
Member

FFY00 commented Sep 15, 2020

Thanks for clarifying! I still think it's a bit out of scope, if this is indeed a need perhaps there would be a place for an external PEP517 checker package.

@takluyver
Copy link
Member

Yeah, I think it might make sense to do it as a separate package.

@FFY00
Copy link
Member

FFY00 commented Oct 4, 2020

Alright, I am gonna close this then.

@FFY00 FFY00 closed this as completed Oct 4, 2020
@pypa pypa locked and limited conversation to collaborators Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants