Skip to content

Conversation

@daeho-ro
Copy link
Member

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

When a package is added to exclude_packages, all of its dependencies are also excluded from the resource list. However, some of these dependencies may overlap with the target package's dependencies and need to be preserved.

Previously, there was no way to keep these overlapping dependencies, they would be excluded even if explicitly listed in extra_packages.

This change ensures that packages explicitly specified in extra_packages are preserved, even when they appear in the dependency tree of excluded packages.

Copilot AI review requested due to automatic review settings December 15, 2025 09:17
Copy link
Member Author

@daeho-ro daeho-ro left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the PyPI resource management logic where packages explicitly listed in extra_packages were being excluded if they appeared as dependencies of packages in exclude_packages. The fix ensures that extra_packages always take precedence by filtering them out from the resolved exclude_packages list after dependency resolution.

Key Changes:

  • Added a second filter to remove extra_packages from exclude_packages after the dependency tree of excluded packages is resolved

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 15, 2025
Merged via the queue into main with commit fd67767 Dec 15, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the feat/pypi-extra branch December 15, 2025 10:03
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.

3 participants