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

Switch from pkg_resources to importlib.metadata #7

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Feb 14, 2024

This is a fairly clean swap, but one unintended side effect I noticed is that the "extras" dependencies are now enumerated as runtime dependencies. This is probably the right behavior for a typical "extra", but isn't really right for the "test" extras we use to declare test dependencies because these packages have already been installed and therefore will never need their test dependencies again.

Some refactoring in colcon-core may be able to alleviate this.

This is a fairly clean swap, but one unintended side effect I noticed is
that the "extras" dependencies are now enumerated as runtime
dependencies. This is probably the right behavior for a typical "extra",
but isn't really right for the "test" extras we use to declare test
dependencies because these packages have already been installed and
therefore will never need their test dependencies again.

Some refactoring in colcon-core may be able to alleviate this.
@cottsay cottsay self-assigned this Feb 14, 2024
@cottsay cottsay linked an issue Feb 14, 2024 that may be closed by this pull request
@cottsay cottsay added the enhancement New feature or request label Feb 14, 2024
Copy link
Contributor

@nuclearsandwich nuclearsandwich left a comment

Choose a reason for hiding this comment

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

One small suggestion but this is good to go otherwise.

@cottsay cottsay marked this pull request as ready for review February 16, 2024 19:09
@cottsay cottsay added this to the 0.1.0 milestone Mar 11, 2024
@cottsay cottsay merged commit 5a32194 into main Mar 11, 2024
20 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/importlib-metadata branch March 11, 2024 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

Migrate away from pkg_resources
2 participants