Commit Graph

2958 Commits

Author SHA1 Message Date
pfebrer 74bd881129
Add `sisl` package (#4210)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-13 20:54:27 +02:00
Jo Bovy 9402397fd0
DOCS Add brief section on upgrading packages (#4219) 2023-10-11 20:03:19 -07:00
Hood Chatham 357b07a25f
NFC Minor rearrangement of types.ts (#4215)
This puts package loading stuff together.
2023-10-11 10:05:44 -07:00
Hood Chatham cbb008da59
Improve handling of generated typescript files (#4212)
This makes IDEs, documentation generation tools, and linters handle our
generated files better. I set the project root to be `src` instead of `src/js`  
so that it is allowed to import files directly from `src/core`. This way we 
don't have to copy `error_handling.ts` we can just import
`../core/error_handling`.

I made a new folder called `src/js/generated` to place generated files into and
added typescript resolution rules so that when we import a file called
"generated/blah" we first look for `blah` in `src/js/generated` and then fall
back to a file called `blah` in `src/core`.

This also allows us to move around fewer files when building the docs 
and in the makefile.
2023-10-11 08:14:42 -07:00
Hood Chatham d0e1ef4c11
Rearrange the way that we load the lock file (#4199)
This fetches the lock file a bit earlier
2023-10-10 19:43:39 -07:00
Hood Chatham 9345fb40d3
CI Use xcode 15.0.0 for Safari tests (#4211)
It seems that there is a bug in table instructions in Safari 16.3 which is used in the safari tests
but that Safari 16.4 has fixed it. xcode 15.0.0 uses Safari 16.6 which does not have the bug.
2023-10-10 16:53:39 -07:00
Gyeongjae Choi fb9417ffe5
BLD Unpin types-setuptools (#4205) 2023-10-08 17:01:02 +09:00
Hood Chatham dbf4dea326
MAINT Add some more types to various things (#4202) 2023-10-06 19:42:28 -07:00
Max Halford b121e2d088
Add River package (#4197) 2023-10-05 07:02:02 -07:00
Hood Chatham bb645ca9b4
Add a few things to EXPORTED_RUNTIME_METHODS (#4201)
Instead of patching them in `pre.js`
2023-10-04 14:38:39 -07:00
Hood Chatham aaab6a86d5
NFC Changes to make it easier to build with dead code elimination (#4198)
This forces a bunch of things to be exported. Hopefully we can eventually build with -sMAIN_MODULE=2
or make no dynamic linking builds.
2023-10-03 17:18:23 -07:00
Hood Chatham 2988faf8d4
Use upstreamed autosummary and automodule directives (#4196) 2023-10-02 12:00:32 -07:00
Hood Chatham 2bcd48c4c2
Switch to using sphinx-js fork (#4193) 2023-09-30 16:41:02 -07:00
Hood Chatham 53744b4906
DOCS Some minor tuneups (#4189) 2023-09-28 17:09:28 -07:00
Gyeongjae Choi 5dbb91a769
Vendor private pypa/build APIs to pyodide-build (#4187) 2023-09-27 16:55:47 +02:00
Gyeongjae Choi cbcec42b15
Add cffi to pynacl host dependency (#4185) 2023-09-27 21:13:07 +09:00
Gyeongjae Choi 0f141f65bc
Update pypa/build version to 1.0 (#4180) 2023-09-27 20:41:53 +09:00
Gyeongjae Choi b067272878
CI Change macos resource class to gen2 (#4179) 2023-09-27 19:25:17 +09:00
Hood Chatham e25a929d3e
Shorten error handling wrapper (#4170) 2023-09-26 11:24:22 -07:00
Kai Mühlbauer e219281f96
xarray v2023.09.0 (#4176) 2023-09-26 11:24:02 -07:00
Hood Chatham 47024f5dac
Changelog for 0.24.1 (#4171) 2023-09-25 13:37:19 -07:00
Hood Chatham b460383505
Use hoodmane/hiwire library instead of our own implementation (#4128)
This change switches to my external implementation of hiwire. This is the
minimal change set to do this, it uses some hacks to avoid changing any files
outside of `hiwire.{c,h,js}`. In followups, I will gradually switch to using
the new APIs rather than compatibility shims.
2023-09-23 18:21:19 -07:00
Hood Chatham a24d69e953
MAINT use the correct version of Python in the cpython makefile (#4168) 2023-09-23 14:40:22 -07:00
Gyeongjae Choi 8db2fa123a
Update micropip to 0.5.0 (#4167) 2023-09-23 10:16:34 +02:00
Hood Chatham 13d5e0d5c4
FIX Don't crash if checkInterrupt() is called with gil released and no ib (#4164)
`Py_EmscriptenSignalBuffer` could be undefined
2023-09-22 20:46:54 -07:00
Hood Chatham b57beb1e36
MAINT Add a rebuild makefile rule for Python [skip ci] (#4166) 2023-09-22 11:55:38 -07:00
Hood Chatham 4774749070
FIX patch a bug in Emscripten that broke matplotlib (#4163) 2023-09-22 19:36:20 +09:00
Luiz Irber 47aea9d9c7
Bump sourmash to 4.8.4 (#4154) 2023-09-22 19:34:15 +09:00
Loïc Estève 7615c0894d
Update scikit-learn to 1.3.1 (#4161) 2023-09-21 13:23:00 +02:00
Christian Clauss 63bf4f87fd
Upgrade GitHub Actions: checkout and login (#4157) 2023-09-21 11:04:41 +02:00
Loïc Estève 87ab13e9bf
MNT Update scipy to 1.11.2 (#4156) 2023-09-20 11:09:29 +02:00
Gyeongjae Choi e67c182f04
Fix replacing local include paths (#4136)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2023-09-20 09:00:04 +02:00
Roman Yurchak ab35dea36e
Don't use importlib.metadata during initialisation (#4147) 2023-09-19 15:39:07 +02:00
Gyeongjae Choi b1256c0a22
Rename setup.py in coolprop (#4145)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-19 20:33:58 +09:00
Toshiki Teramura d644a405b4
DOC Fix the indent of the document for GH Actions in out-of-tree build page (#4151)
[skip ci]
2023-09-19 10:53:07 +02:00
Roman Yurchak e2c2884e7a
Make loadPyodide global in console.html (#4143) 2023-09-16 13:55:10 +02:00
Hood Chatham e492392f1b
PERF Only `finalizationRegistry.unregister` proxy if it is registered (#4138) 2023-09-15 16:09:12 +09:00
David Lechner 0fb6888585
DOCS Fix typo in PythonError doc comment. (#4142) 2023-09-14 19:47:07 -07:00
Hood Chatham f28d8c9efc Revert JSPI Changes
This reverts commits:
9ed5e839ff
8861b317a6
b2c47ae766
ab8dc2eac6
3bcc527c92
2505d4d6a3
2023-09-14 07:26:46 -07:00
Hood Chatham 2505d4d6a3 Update JSPI patch for Emscripten 3.1.45 2023-09-13 16:38:29 -07:00
Hood Chatham 3bcc527c92 Stack switching (#3210)
Uses the JS Promise integration stack switching API to allow blocking for JavaScript promises and
`PyodideFuture` objects. It's a bit complicated...
This doesn't include support for reentrant switching, currently doing that will corrupt the Python VM.
2023-09-13 16:25:24 -07:00
Hood Chatham ab8dc2eac6 Use branch in macro to choose trampoline (#3990)
One of the cpython tests (test_plistlib.TestBinaryPlistlib.test_deep_nesting)
seems to be extremely sensitive to stack utilization and stack overflows in our
CI when even a tiny amount of extra stack is used. I doubt this is a problem in
real life -- I certainly cannot reproduce it outside of the CI service. But this
rearranges the code to avoid any additional stack usage so that CI will pass.
2023-09-13 16:25:24 -07:00
Hood Chatham b2c47ae766 Move stack switching logic into a new stack switching folder. (#3987)
This is a minor rearrangment.

I renamed "continuations" stuff to "stack_switching" and made a new folder
for stack switching logic. I also added logic in esbuild.config.mjs to calculate
which functions exported from stack_switching.mjs and automatically copy them to
Module and into the Emscripten namespace. This makes unit testing a little neater
since there is no modification of the Module object.
2023-09-13 16:25:24 -07:00
Hood Chatham 8861b317a6 Patch CPython to use a type reflection trampoline if possible (#3964) 2023-09-13 16:25:24 -07:00
Hood Chatham 9ed5e839ff Use Wasm Exceptions for invoke stubs if they exist (#3957)
If wasm exception handling is available, use dynamically generated modules
with wasm exception handling for the invoke stubs instead of a JS trampoline.
This is useful because JS trampolines interact poorly with JS Promise Integration.

In the future, we should switch exception handling ABIs to the compiler-provided
wasm exception handling ABI and we can remove this code. Currently we are
blocked on using compiler-provided wasm eh by Rust support.
2023-09-13 16:22:07 -07:00
Hood Chatham 16d997ac7f 0.25.0.dev0 2023-09-13 16:21:40 -07:00
Hood Chatham 660388431f
0.24.0 (#4137) 2023-09-13 13:10:22 -07:00
Maic Siemering 4cc141084e
DOCS Fix create_proxy example (#4134)
Update outdated import path
2023-09-12 18:33:13 -07:00
Thorsten Beier 3b428ceb6b
add wget to environment.yml (#4133) 2023-09-11 11:07:28 +02:00
Hood Chatham 9042e6cb1b
ENH Print helpful error if ccache was linked against too new glibc (#4127)
Resolves pyodide#4126.
If someone builds emsdk outside of the docker image and then attempts to use it
inside, there will be an error. This detects it and tells people to clean emsdk.
2023-09-10 21:08:02 -07:00