Commit Graph

2290 Commits

Author SHA1 Message Date
Gyeongjae Choi 7010d26853
TST Benchmark package load time (#3030) 2022-08-30 09:50:59 +09:00
Hood Chatham b64c32c213
Update changelog for 0.21.2 (#3029) 2022-08-29 11:04:43 -07:00
Hood Chatham 3a27b48784
Handle case when Python startup code calls exit (#3024)
If Python startup code calls `exit` (for instance because `--version` or `--help`
was passed), then Emscripten calls `quit` which throws the error. The enclosing
environment catches that error and burns the evidence. This modifies `quit` to
record the fact that `exit` was called and rethrow the error (which will include the
exit code). Otherwise, trying to run the command line runner with `python --version`
will segfault.
2022-08-28 22:27:02 -07:00
Hood Chatham 706fd0f19b
Install standard library into /lib/python3.10/ not into the site-packages directory (#3022) 2022-08-29 08:53:37 +09:00
Hood Chatham 9fefb1a199
MAINT Remove incorrect assignment to loadedPackages (#3026) 2022-08-27 22:18:32 -07:00
Hood Chatham 88881d7c2b
Improvements to indexURL (#3015)
Fix indexURL:
1. when it's a relative path
2. when `--enable-source-maps` is used
This resolves #2764.
2022-08-27 22:17:51 -07:00
Hood Chatham 3160ac937e
Add patch to Emscripten to fix some of the Jest problems (#3014)
This fixes one of the problems in #2764. 
See upstream PR emscripten-core/emscripten#17733
2022-08-26 11:57:09 -07:00
Hood Chatham 3085b9fe73
Fix loadPackage on relative urls (#3013)
This fixes #3011.

We attempted to make a test for this, but in all of our tests 
`document.location === indexURL`. Our logic incorrectly used indexURL
instead of `document.location`.
2022-08-26 08:53:32 -07:00
Hood Chatham 325291ab87
Use upstream C++ error formatting support (#2828)
The logic that we are using to format C++ exceptions has been upstreamed. 
This will also work correctly with wasm exceptions.
2022-08-25 14:41:39 -07:00
Gyeongjae Choi 7ef6bf8b3e
Remove socketmodule from ssl (#3009) 2022-08-25 09:25:44 +09:00
Hood Chatham 7bb413d178
Add then, catch, and finally_ methods to future (#2997) 2022-08-24 15:12:03 -07:00
Hood Chatham 53a4f840dc
Add extra minimal release, also add xbuildenv to artifacts (#2999) 2022-08-24 14:22:33 -07:00
Gyeongjae Choi ad128337e8
Unpin setuptools version (#3010) 2022-08-24 08:32:26 +02:00
Roman Yurchak 4cdc054cb7
DOC Switch to Plausible analytics in the docs (#3004) 2022-08-23 09:15:11 +02:00
Patrick Arminio f864eee8b5
DOC Fix typo in format_exception example (#3005) 2022-08-23 13:52:37 +09:00
Gyeongjae Choi b4433e1b4a
Do not load unvendored stdlibs by default (#2998)
As discussed in #2940, this PR changes the default value of the fullStdLib flag in loadPyodide to false.
This is a breaking change because for now distutils is not loaded by default.
Also, when fullStdLib is set to true, it loads all unvendored stdlibs except for test.

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2022-08-23 11:52:27 +09:00
Hood Chatham fdf39f89ef Update changelog to reflect 0.21.1 release 2022-08-21 22:26:36 -07:00
Roman Yurchak 62de53f5a8
Add build dependencies to meta.yaml (#2132)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-08-22 13:35:27 +09:00
Hood Chatham 345131074c
Rename released bundle from pyodide-build.tar.gz to pyodide.tar.gz (#2996) 2022-08-21 17:36:00 -07:00
Hood Chatham 67aa16861d
Update Emscripten to 3.1.18 (#2950) 2022-08-21 17:17:49 -07:00
Gyeongjae Choi 26535e33cd
Unvendor sqlite3 from stdlib (#2946)
Unvendor the standard library sqlite3 to reduce the size of the main module. It reduces the size of pyodide.asm.wasm around ~1.4MB.

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2022-08-22 08:52:50 +09:00
Hood Chatham 02644bd353
Set MIN_SAFARI_VERSION to include v14.0 (#2994) 2022-08-20 07:55:22 +02:00
Gyeongjae Choi 5b35c272a0
Fix emscripten version check test (#2990) 2022-08-20 02:56:20 +02:00
Hood Chatham b1ab8f0de4
Add an Emscripten version check for out of tree builds (#2975)
The out of tree build system applies an abi tag based on `PYODIDE_EMSCRIPTEN_VERSION`
in `Makefile.envs`. Prior to this PR, it will happily accept the version of emscripten (say 3.1.18)
and produce a wheel tagged like it was produced from the expected Emscripten version (say 3.1.14).
This causes confusing errors due to ABI mismatch see igraph/python-igraph#560. This error message
should help prevent such confusion.
2022-08-18 09:28:10 +02:00
Hood Chatham b419bffa15
loadPackage should say that packages downloaded from pypi come from pypi (#2980) 2022-08-18 09:27:03 +02:00
Gyeongjae Choi e7a7bad1a9
MAINT Prevent `make rust` command from generating a temp file (#2984) 2022-08-18 09:26:31 +02:00
Gyeongjae Choi 26e45657a7
MAINT Build test and distutils stdlib modules with pyodide-build (#2979) 2022-08-18 13:55:16 +09:00
Gyeongjae Choi 6acd1dd02b
Add an import hook for unvendored and removed stdlibs (#2973) 2022-08-17 22:03:21 +02:00
Starz0r 8dba657ac1
Add package `pycryptodome` (#2965) 2022-08-17 19:56:33 +02:00
Gyeongjae Choi da70299d1e
Update emscripten to 3.1.15 (#2958) 2022-08-17 19:14:10 +09:00
Hood Chatham ed8f2b204e
Add more array methods (#2970)
Add pop, append, reverse, __reversed__, index and count.
2022-08-16 23:02:51 +02:00
Starz0r 828b55a22d
PKG Add package `pycryptodomex` (#2966) 2022-08-16 11:34:15 +09:00
Gyeongjae Choi 757b54e398
Pin setuptools version temporarily (#2972) 2022-08-16 11:32:03 +09:00
Gyeongjae Choi b497ce26ed
Add lzma (#2939) 2022-08-11 17:52:23 +09:00
Hood Chatham d0cc45fa45
Use forked version of tblib (#2944)
This allows us to clean up the tracebacks generated by run_in_pyodide.
2022-08-10 23:51:32 +02:00
H.Yamada ef8b3a790d
Fix Emscripten version in Change Log (#2956)
* Change Emscripten version in changelog to v3.1.14
* Add overlooked PR2775
2022-08-10 09:49:51 +02:00
Hood Chatham 3eef0ed275 Bump version to 0.22.0.dev0 2022-08-09 21:49:23 +02:00
Gyeongjae Choi 5e412795ed
0.21.0 (#2935) 2022-08-09 15:36:10 +02:00
Roman Yurchak 256b85d0d8
DOC Document out-of-tree build (#2953)
[skip ci]
2022-08-09 15:35:29 +02:00
Matt Toad 58ce5e0aa8
DOC fix changelog badges (#2952)
This PR reverts the indentation change introduced in #2909, to make sure badges 
are displayed correctly. I've checked at pyodide.org/en/latest/project/changelog.html 
and badges are, in fact, temporarily broken.
2022-08-08 15:13:02 +02:00
Liumeo 52e8fa5ddb
Add python-magic (#2941) 2022-08-08 14:04:31 +02:00
Hanno Rein 8a9feaac51
Add REBOUNDx package (#2909) 2022-08-08 14:02:43 +02:00
Mu-Tsun Tsai 875e2b51de
PKG Add package `brotli` (#2925)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-08-08 11:25:36 +09:00
Gyeongjae Choi fcfbdccd24
Fix package import test (#2942) 2022-08-08 11:24:34 +09:00
Gyeongjae Choi 88232d7639
BLD Pin cmake version temporarily (#2945) 2022-08-08 11:23:44 +09:00
Hood Chatham bc71c96887
Be more careful about different array variants (#2938)
This fixes a few problems introduced in #2907 (and some older issues). The slicing doesn't work correctly for `TypedArray` or `NodeList` and there are several possible routes to take with `TypedArray` so I think it's better to leave it not implemented for now. Also, `extend` and `+=` don't work for `TypedArray` and `NodeList`. This also gives a better error if you attempt `del a[0]` when `a` is a `TypedArray` or `NodeList`. The former have a fixed length, the latter are immutable.
2022-08-06 14:07:30 +02:00
Hood Chatham 4c8d99451b
Report wrong checksum when there is a checksum mismatch in a package build (#2943) 2022-08-06 12:41:11 +09:00
Gyeongjae Choi 14708295cd
TST Fix location of the package import test file (#2926) 2022-08-04 10:05:30 +02:00
Roman Yurchak 2e7018acb7
Make GH sponsors more visible (#2936) 2022-08-04 08:43:50 +09:00
Gyeongjae Choi 512d2bd950
MAINT Rename pytest_pyodide wrappers 2022-08-03 13:34:25 +09:00