-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
[RFC] Support pinning PEP 517 build deps in pyproject.toml
#1396
Comments
I think it would be great if |
Can you please clarify? You mean the When I create a package using [build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi" PEP 518 specifies that requests [security,tests] >= 2.8.1, == 2.8.* ; python_version < "2.7" or pip @ https://github.com/pypa/pip/archive/1.3.1.zip#sha1=da9234ee9982d4bbb3c72346a6de940a148ea686 What kind of constraints application are you talking about that is not demonstrated in these examples? |
@AndydeCleyre in |
I've recently clarified that doing |
supporting |
I too would like to gather requirements from I also want to gather requirements from the Side note about using constraints files with pip; you may want to prefer |
Not sure if the above would be a good way to do it but looks ok to me. Thoughts? |
What's the problem this feature will solve?
PEP 518 defines a
[build-system]
section with arequired = []
field. But there is no way to tell PEP 517 build front-ends to apply constraints to those build requirements while provisioning an env for them. This makes it hard to go perform predictable builds.Describe the solution you'd like
I was thinking that pip-tools could facilitate this by either learning to manage that setting in
pyproject.toml
or by sourcing the requirements from that field to produce a constraints file. The former could allow to keep the builds predictable with any build front-end like pip while the latter would be helpful mostly for more flexible build front-ends like pypa/build that allow the users to provision the envs by themselves.WDYT folks?
Alternative Solutions
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: