-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
MAINT Move install, list, uninstall implementation to PackageManager #163
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ryanking13! The changes look good to me. Thanks for the reminder on Discord about the review.
@@ -1,5 +1,5 @@ | |||
from pathlib import Path | |||
from typing import TYPE_CHECKING, Any | |||
from typing import TYPE_CHECKING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An annotation about missing tests shows up here and in a few places below. I think we should restore Codecov at some point (not in this PR, of course).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but for now, we don't have a way to pass the test result inside Pyodide to the host (pyodide/pyodide#2873), so the coverage score is not that reliable.
Moves
install
,list
,uninstall
functions into PakckageManager class. No functional changes are intended.The goal is to pass
CompatibilityLayer
as a parameter of PackageManager so we can control the external dependency (Pyodide) more clearly instead of importing it everywhere.