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

Avoid building packages with dynamic versions #4058

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

This PR separates "gathering the requirements" from the rest of the metadata (e.g., version), which isn't required when installing a package's dependencies (as opposed to installing the package itself). It thus ensures that we don't need to build a package when a static pyproject.toml is provided in pip compile.

Closes #4040.

@charliermarsh charliermarsh added the performance Potential performance improvement label Jun 5, 2024
@charliermarsh
Copy link
Member Author

Ok, I'm happy with how little special-casing this required, even if it requires ~200 LoC.

@charliermarsh charliermarsh marked this pull request as ready for review June 5, 2024 17:56
@charliermarsh charliermarsh force-pushed the charlie/static branch 2 times, most recently from 37c3435 to 803f1d6 Compare June 5, 2024 17:58
@charliermarsh charliermarsh enabled auto-merge (squash) June 5, 2024 18:04
@charliermarsh charliermarsh enabled auto-merge (squash) June 5, 2024 18:06
@charliermarsh charliermarsh merged commit 191f955 into main Jun 5, 2024
46 checks passed
@charliermarsh charliermarsh deleted the charlie/static branch June 5, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Potential performance improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv pip compile perf regression in 0.2.6
1 participant