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

Fix extras check in RequirementCache #283

Merged
merged 7 commits into from
Jul 15, 2024
Merged

Fix extras check in RequirementCache #283

merged 7 commits into from
Jul 15, 2024

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Jul 14, 2024

In #281 I made the implementation for RequirementCache to not depend on pkg_resources, but this accidentally broke checks against extras. For example:

RequirementCache("jsonargparse[signatures]") 

would currently return true regardless of whether the signatures dependencies are installed or not. This is because pkg_resources was previously handling this directly. This PR brings this functionality back. Hopefully there are no other breakages.


📚 Documentation preview 📚: https://lit-utilities--283.org.readthedocs.build/en/283/

@awaelchli awaelchli requested a review from Borda as a code owner July 14, 2024 22:16
@awaelchli awaelchli added the bug Something isn't working label Jul 14, 2024
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
@awaelchli awaelchli merged commit 2e4e185 into main Jul 15, 2024
45 checks passed
@awaelchli awaelchli deleted the bugfix/extras branch July 15, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants