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

Add add_mock_package #26

Merged
merged 34 commits into from
Nov 26, 2022
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
525d0d7
added support for creating mock packages
joemarshall Nov 17, 2022
111046f
Merge branch 'main' of github.com:pyodide/micropip into add_package_mock
joemarshall Nov 17, 2022
799560d
reverted typo change
joemarshall Nov 17, 2022
f66370c
removed unneeded imports
joemarshall Nov 17, 2022
43fa3f3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 17, 2022
16739f5
remembered to run pre-commit hooks
joemarshall Nov 17, 2022
0a6471a
added test
joemarshall Nov 17, 2022
5e5b0d9
removed debug print
joemarshall Nov 17, 2022
0eb9803
merged and linted
joemarshall Nov 17, 2022
20b74f0
Merge branch 'add_package_mock' of https://github.com/joemarshall/mic…
joemarshall Nov 17, 2022
c76a8e6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 17, 2022
3418848
dist-info metadata for easier package finding etc.
joemarshall Nov 23, 2022
ea8c424
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 23, 2022
6628396
added support for temporary modules
joemarshall Nov 23, 2022
9cb4ac2
default to non-persistent mocking
joemarshall Nov 23, 2022
d6aab95
in memory sub packages fixes
joemarshall Nov 23, 2022
005efec
Merge branch 'add_package_mock' of https://github.com/joemarshall/mic…
joemarshall Nov 23, 2022
a12cd86
test in pyodide with correct (local) version of micropip
joemarshall Nov 23, 2022
10c7f84
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 23, 2022
5d96d84
fixed missing package in test
joemarshall Nov 23, 2022
786e5e8
Merge branch 'add_package_mock' of https://github.com/joemarshall/mic…
joemarshall Nov 23, 2022
35539ef
dedent in memory modules
joemarshall Nov 23, 2022
107004d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 23, 2022
ac8bc37
simpler std output capture
joemarshall Nov 23, 2022
98b9192
Merge branch 'add_package_mock' of https://github.com/joemarshall/mic…
joemarshall Nov 23, 2022
e83cb59
invalidate importlib cache for pyodide
joemarshall Nov 23, 2022
4d719c2
testing different order to see what is broken
joemarshall Nov 23, 2022
fd037ae
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 23, 2022
3b77d88
fixed tests for pyodide
joemarshall Nov 23, 2022
782b6af
Merge branch 'add_package_mock' of https://github.com/joemarshall/mic…
joemarshall Nov 23, 2022
d34ff58
review fixes
joemarshall Nov 24, 2022
5e8f5e6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Nov 24, 2022
2c34df0
added changelog
joemarshall Nov 24, 2022
9c16b28
Merge branch 'add_package_mock' of https://github.com/joemarshall/mic…
joemarshall Nov 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed unneeded imports
  • Loading branch information
joemarshall committed Nov 17, 2022
commit f66370c0a9ff25dbe453c94e10fee73ce846ad6b
5 changes: 0 additions & 5 deletions micropip/_micropip.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@
import warnings
from asyncio import gather
from dataclasses import dataclass, field
from importlib.metadata import Distribution,DistributionFinder
from importlib.metadata import PackageNotFoundError
from importlib.metadata import distributions as importlib_distributions
from importlib.metadata import version as importlib_version
from importlib.util import spec_from_loader,module_from_spec
from importlib.machinery import ModuleSpec
from pathlib import Path
from sysconfig import get_platform
from typing import IO, Any
from urllib.parse import ParseResult, urlparse
from zipfile import ZipFile
import types
import sys
import site
import os
from textwrap import dedent
Expand Down