-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use PEP 517 to extract non-static pyproject.toml
metadata
#2633
Conversation
a5fb6f4
to
c68cf55
Compare
c68cf55
to
9da1182
Compare
9da1182
to
d45f850
Compare
Sorry I'm a little lost in all the changes lately, just want to confirm does this address #2130 as well? or was that addressed previously? |
I don't think so, that issue surprises me but I'll look into it separately... |
d45f850
to
a12ac81
Compare
@@ -967,6 +967,87 @@ impl MarkerTree { | |||
} | |||
} | |||
|
|||
/// Remove the extras from a marker, returning `None` if the marker tree evaluates to `true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe @BurntSushi should review this marker code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, feel free @BurntSushi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Messaged with Andrew, I want to build on this branch (but not related to the markers) so I'm going to merge and address any review comments post-merge.
a12ac81
to
18049a8
Compare
18049a8
to
3bea576
Compare
3bea576
to
4b2f249
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. :-) Nice marker tests!
Summary
When a user passes a
pyproject.toml
topip compile
(e.g.,uv pip compile pyproject.toml
), we extract the requirements from thepyproject.toml
directly. However... that isn't always possible (as seen in the linked issues). When it's not, we instead need to run the PEP 517 build hooks to identify the metadata.Closes #1624.
Closes #1644.
Test Plan
cargo test