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

Add PexRequirements.req_strings_from_requirement_fields() #16460

Merged

Conversation

Eric-Arellano
Copy link
Contributor

In several places, we create PexRequirements solely to immediately extract out the raw parsed strings.

However, we made all call sites unnecessarily deal with constraint_strings, which has no impact on the operation. Soon, as part of the per-resolve config project at https://docs.google.com/document/d/1HAvpSNvNAHreFfvTAXavZGka-A3WWvPuH0sMjGUCo48/edit#, we would also likely have made the call sites think about resolve_name. Instead, we avoid that confusion.

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano added the category:internal CI, fixes for not-yet-released features, etc. label Aug 9, 2022
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano Eric-Arellano enabled auto-merge (squash) August 9, 2022 22:43
@Eric-Arellano Eric-Arellano merged commit 63c9f68 into pantsbuild:main Aug 9, 2022
@Eric-Arellano Eric-Arellano deleted the req-strings-from-req-fields branch August 9, 2022 23:13
cczona pushed a commit to cczona/pants that referenced this pull request Sep 1, 2022
…ld#16460)

In several places, we create `PexRequirements` solely to immediately extract out the raw parsed strings. 

However, we made all call sites unnecessarily deal with `constraint_strings`, which has no impact on the operation. Soon, as part of the per-resolve config project at https://docs.google.com/document/d/1HAvpSNvNAHreFfvTAXavZGka-A3WWvPuH0sMjGUCo48/edit#, we would also likely have made the call sites think about `resolve_name`. Instead, we avoid that confusion.

[ci skip-rust]
[ci skip-build-wheels]
@huonw huonw mentioned this pull request Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants