-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Revisiting tox
's requirement that build-system
is defined in pyproject.toml
#2429
Comments
This has been fixed in tox v4. If anyone wants to fix it in v3 they're invited to put in a PR for it. |
Arguably those tools support it, however, it's still not considered best practice to use the default. You know, explicit better than implicit? Considering tox is encouraging users to follow best practices one can make the argument that tox shouldn't support defaulting... |
Thanks, I forgot to check against pre-releases! Feel free to close this as that's sufficient for me. (As an aside, is there an issue I can track for the tox4 release? Or is https://github.com/tox-dev/tox/milestone/7 what I should use?)
I think it's fine for |
Version 4 is now the main one, so closing this. |
https://tox.wiki/en/4.5.1/upgrading.html Per tox-dev/tox#2429, this should also fix Windows build-system errors that are showing up in CI like this https://github.com/sjdemartini/graphene-django-permissions/actions/runs/4875516502/jobs/8697821652#step:5:7
https://tox.wiki/en/4.5.1/upgrading.html Per tox-dev/tox#2429, this should also fix Windows build-system errors that are showing up in CI like this https://github.com/sjdemartini/graphene-django-permissions/actions/runs/4875516502/jobs/8697821652#step:5:7
Currently
tox
requires that abuild-system
table is defined inpyproject.toml
:This was previously discussed in #1482 by @nuno-andre and eventually closed, but I think the intention there was generally correct: PEP 518 is explicit that the
build-system
table is not required:Furthermore, most other tools do not have this requirement. For example,
build
supports omitting thebuild-system
table -- when building with the above example:Additionally,
pip
does support omitting it as well:I think
tox
should do what these tools do and provide defaults when thebuild-system
table is omitted, rather than erroring.The text was updated successfully, but these errors were encountered: