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

MAINT Move install, list, uninstall implementation to PackageManager #163

Merged
merged 6 commits into from
Feb 19, 2025

Conversation

ryanking13
Copy link
Member

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.

@ryanking13 ryanking13 mentioned this pull request Jan 29, 2025
@agriyakhetarpal agriyakhetarpal self-requested a review February 3, 2025 13:12
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a 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
Copy link
Member

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).

Copy link
Member Author

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.

@ryanking13 ryanking13 merged commit a764b1e into pyodide:main Feb 19, 2025
8 checks passed
@ryanking13 ryanking13 deleted the compat-layer-unvendor branch February 19, 2025 10:21
ryanking13 added a commit that referenced this pull request Feb 20, 2025
* Fix bad merge

* Don't load packaging when loading micropip
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.

2 participants