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

Support recursive extras #1435

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Support recursive extras #1435

merged 2 commits into from
Feb 16, 2024

Conversation

charliermarsh
Copy link
Member

Summary

We had a guard in the resolve to avoid "self-dependencies" (as in gps3==0.33.3), but this guard was unintentionally filtering out recursive extras.

Closes #1342.

Test Plan

Taken from #1352.

@charliermarsh charliermarsh added the bug Something isn't working label Feb 16, 2024
extra: Option<&ExtraName>,
source: Option<&PackageName>,
source_name: Option<&PackageName>,
source_extra: Option<&ExtraName>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just renamed and re-ordered these (especially since extra got shadowed below).

Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's the code I was suspicious of

@zanieb
Copy link
Member

zanieb commented Feb 16, 2024

Are these warnings only visible with -v — is that why we weren't seeing them?

@charliermarsh
Copy link
Member Author

Yeah

@@ -735,6 +735,76 @@ fn multiple_extras_required() {
assert_installed(&context.venv, "c_502cbb59", "1.0.0", &context.temp_dir);
}

/// all-extras-required
///
/// Multiple optional dependencies are requested for the via an 'all' extra.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Multiple optional dependencies are requested for the via an 'all' extra.
/// Multiple optional dependencies are requested for the package via an 'all' extra.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This file is actually generated. If you want to fix it, it's sourced from https://github.com/zanieb/packse/blob/main/scenarios/extras.json

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv pip install "apache-airflow[all]" fails to install the required extras
3 participants