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

Lock generator refactoring #52

Merged
merged 4 commits into from
Nov 24, 2023
Merged

Lock generator refactoring #52

merged 4 commits into from
Nov 24, 2023

Conversation

jvolkman
Copy link
Owner

@jvolkman jvolkman commented Nov 24, 2023

Introduces an internal PackageAnnotations struct that collects things like
build dependencies, ignored dependencies, etc. prior to constructing PackageTargets.

This cleans up the prior messiness that existed due to PackageTarget objects being
modified after construction to apply these options.

The primary driver behind this change was to push the handling of ignored dependencies
to a deeper layer, so that we don't generate wheel/sdist repos and other artifacts for
packages that are completely ignored.

Also, allow empty python_compatible_with and flags lists to fix a regression introduced in #51.

Introduces an internal `PackageAnnotations` struct that collects things like
build dependencies, ignored dependencies, etc. prior to constructing PackageTargets.

This cleans up the prior messiness that existed due to PackageTarget objects being
modified after construction to apply these options.

The primary driver behind this change was to push the handling of ignored dependencies
to a deeper layer, so that we don't generate wheel/sdist repos and other artifacts for
packages that are completely ignored.
@jvolkman jvolkman merged commit c1be8a5 into main Nov 24, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant