Commit Graph

3261 Commits

Author SHA1 Message Date
Gyeongjae Choi c4a6964429
Use Pyodide version instead of pyodide-build version when creating lockfile (#4732)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-02 20:32:10 +09:00
Gyeongjae Choi a040b78a97
Update `pyodide create-zipfile` command to accept list of modules to exclude (#4723) 2024-05-01 19:20:07 +09:00
Gyeongjae Choi e3cf592ae4
Bump pytest-pyodide version to 0.57.0 (#4727) 2024-05-01 19:19:45 +09:00
Hood Chatham baac136b64
Run `make -C packages update-all` (#4712)
Packages that I reverted:

bitstring, fiona, gdal, matplotlib, numcodecs, packaging, pandas, Pillow,
pillow_heif, protobuf, pyinstrument, rebound, reboundx, scipy, shapely, spareqr,
river, xgboost, yt, zarr
2024-04-30 15:51:48 +02:00
Gyeongjae Choi d5fdf22aff
FIX Use response file for EXPORTED_FUNCTIONS (#4717)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2024-04-30 18:36:39 +09:00
Gyeongjae Choi 0e23252426
Fix url filename parsing again (#4722) 2024-04-28 19:48:25 +09:00
Hood Chatham 334628426f
Distinguish between emscripten settings and instantiated emscripten module (#4718)
In Emscripten v3.1.58, createPyodideModule returns a distinct object from its argument
so if we confuse EmscriptenSettings with the instantiated module, we'll get problems.
This fixes these problems.

I also added some more type declarations.

Split from #4715.
2024-04-27 14:39:36 +02:00
Gyeongjae Choi ed3b787b60
BLD Extract out package build configs from Makefile.envs (#4708) 2024-04-27 11:30:06 +09:00
Gyeongjae Choi 55339e00e4
Re-enable and update XGBoost (#4716)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2024-04-27 09:18:10 +09:00
Hood Chatham 4633a958da
Remove possible query string from tarballname (#4721)
For CoolProp, we are getting `tarballname` as `'CoolProp_sources.zip?viasf=1'` which then
crashes when we give it to `shutil.unpack_archive` with `Unknown archive format`.
2024-04-26 21:32:06 +02:00
Hood Chatham d32e376013
Memory snapshots (#4652)
Add basic support for memory snapshots
2024-04-23 15:01:33 +02:00
Hood Chatham b45c2a5273
More rearrangement to reduce diff in #4699 (#4711)
More nonfunctional changes to reduce diff in #4699. Reduces the diff there by about 400 lines.
2024-04-23 12:00:07 +02:00
Hood Chatham a36ac37e40
Move JsMethod call implementation into separate file (#4710)
Nonfunctional refactor to reduce diff in #4699
2024-04-22 14:19:30 +02:00
Hood Chatham 33a24c287f
Rename callSyncifying to callPromising, add callWithOptions (#4608)
Since we renamed `syncify` the method name `callSyncifying` doesn't make much
sense anymore. It is implemented in terms of a so-called `promising` wasm call,
so `callPromising` lines up with that. Not a perfect name, but it is rarely used so it
will do until we come up with something better.

Added a `callWithOptions` function. We now have three boolean parameters for
a Js-to-Python call:
1. kwargs
2. promising
3. relaxed

So we'd need 8 functions to cover all combinations of these. Currently we only
have 6 of these. Rather than adding the two remaining combinations which will
have annoying names, I added `callWithOptions` which takes an options argument as
the first argument. Despite the fact that options usually go as the last
argument, I think it makes sense to use the first argument for this so that all
remaining args are passed on to Python.
2024-04-22 14:17:51 +02:00
dependabot[bot] b36b13ab58
github-actions update actions/checkout and actions/setup-python (#4709)
Bumps the github-actions group with 2 updates: actions/checkout and actions/setup-python.
2024-04-22 12:37:36 +02:00
Henry Schreiner b886ed2065
fix: support cmake command mode (#4705) 2024-04-22 12:12:44 +02:00
Gyeongjae Choi 6fb3d7340c
BLD Add a file holding cross build environment metadata (#4695) 2024-04-20 22:52:37 +09:00
Alexey Ignatiev f7d844acc9
Bumped python-sat from 1.8.dev10 to 1.8.dev12 (#4702) 2024-04-20 22:48:26 +09:00
Gyeongjae Choi 975565bc3f
BLD Prevent redundant xbuildenv installation if there is already a version in use (#4694) 2024-04-18 21:09:00 +09:00
Joe Marshall f696930e63
added tzdata package (#4697)
For zoneinfo to work, we need the tzdata package. This PR does that.
2024-04-17 17:41:49 +02:00
Joe Marshall ed9428e268
fix for exceptions in dynamic linked int64 code (#4698)
This is a backport of https://github.com/emscripten-core/emscripten/pull/21759 

It fixes a crash which happens when 
1) An exception is thrown inside a function returning int64
2) The function is in a dynamic library and has been called through dynamic invocation.
2024-04-17 17:36:26 +02:00
Hood Chatham 45bad49364
MAINT Improve dist/python_stdlib.zip rule (#4700)
Before this change it only checked for files in `pyodide` or `_pyodide`
directory, this makes it look at all files inside the `src/py` directory.
2024-04-16 21:37:57 +02:00
dependabot[bot] e3b679588d
Bump express from 4.19.1 to 4.19.2 in /src/js (#4638)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-13 23:56:38 +09:00
Hood Chatham 5679e7ca65
Add asJsonAdaptor to PyProxy of Sequence or Map (#4666)
Designed to make dictionaries + lists behave like JavaScript JSON so that
`JSON.stringify`, `Response.json`, etc work as expected and direct access like
`a[0].b.c[1].d` works. I think this is how `as_object_map()` should have behaved
all along. As a followup, I'd also like to add a symmetric `as_json_adaptor()`
to JsProxy.
2024-04-12 16:18:20 +02:00
Alexey Ignatiev 3f4821ebbc
Bumped the version of python-sat, (#4688) 2024-04-11 22:15:49 +02:00
John Wason b969934ac4
Update RobotRaconteur package to 1.2.0 (#4682)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-11 18:38:19 +09:00
C. Titus Brown ab6a801107
update sourmash to v4.8.8 (#4683) 2024-04-11 18:32:46 +09:00
Brian "bits" Olsen 15fe0b1e68
Add pyiceberg/ mmh3 non-pur packages + pure package friends (#4648)
Adds pyIceberg, a Python client for the SQL table storage format for large datasets
with periodic dimensional changes. 

Adds mmh3 package a set of fast and robust non-cryptographic hash functions
2024-04-10 17:00:16 +02:00
Hood Chatham f4d9a26d05
Opt into JSPI origin trial (#4662)
This opts console.html into the JSPI origin trial
2024-04-10 15:04:11 +02:00
Gyeongjae Choi 79a98b0e08
Add CrossBuildEnvManager class for managing xbuildenv (#4640) 2024-04-10 20:49:35 +09:00
Ian Thomas 761ca939e7
Update ContourPy to 1.2.1 (#4680) 2024-04-10 19:14:03 +09:00
Ian Thomas 33e864e3c4
Update Bokeh to 3.4.0 (#4681) 2024-04-10 17:29:34 +09:00
Gyeongjae Choi fd80c7b1ed
CI Build with M1 runner (#4675)
Test using mac M1 runner as suggested by cclauss.
2024-04-08 15:58:33 +02:00
Alexey Ignatiev 1514306154
Updated meta.yaml [python-sat package]. (#4671) 2024-04-08 18:05:01 +09:00
Christian Clauss ee13a60fbc
Placate mypy with type: ignore (#4677) 2024-04-08 18:02:42 +09:00
ifduyue 2590ed1a40
Add package xxhash (#4669) 2024-04-07 21:16:36 +02:00
0x24a fe9038e68b
docs: fix typo (#4672)
Fix a typo in docs/usage/type-conversions.md:743, change setattr to getattr.
2024-04-06 09:14:03 +02:00
pre-commit-ci[bot] 6f7ae21aa8
[pre-commit.ci] pre-commit autoupdate (#3736) 2024-04-04 09:21:19 +02:00
Zsolt Dollenstein 780d6b3a90
packages/libcst: add new recipe & test (#4665)
This PR adds a recipe and an associated test for the libcst package.
2024-04-04 09:14:12 +02:00
Hood Chatham 1d8215a8dd
MAINT Remove include_js_file (#4651)
We can import these from src/js/ffi.ts now and I think it's a better way to go.
2024-04-02 13:06:54 +02:00
Alexey Ignatiev b81df2925a
Updated python-sat to version 1.8.dev7. (#4656) 2024-04-02 17:36:37 +09:00
Gyeongjae Choi d3bb516d92
Add changelog entry for 0.25.1 (#4657) 2024-03-31 20:19:15 +09:00
Gyeongjae Choi 7cb3ad8412
Fix build error on pypa/build >= 1.2.0 (#4653)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-31 15:31:28 +09:00
Yuichiro Tachibana (Tsuchiya) c776168c53
Update docs/usage/file-system.md about IDBFS (#4650) 2024-03-30 12:38:50 +09:00
Gyeongjae Choi bd643ae5f7
PKG Add pygame-ce (#4602) 2024-03-29 17:55:21 +09:00
Gyeongjae Choi 08e22b4e43
xfail slow tests in firefox (#4643) 2024-03-29 17:54:00 +09:00
Alexey Ignatiev 65de1f69a5
Updated python-sat to version 1.8.dev6. (#4641) 2024-03-28 17:20:08 +09:00
Hood Chatham 49a605094f
Fix stack switching leaks (#4639)
Stack switching was leaking datastack chunks. This seems to fix it. It is very confusing,
but the leaked chunks are allocated in slabs of size 2^14 so it doesn't take long to leak
a substantial amount of memory.

Code inspired by greenlet:
937f150e07/src/greenlet/TPythonState.cpp (L291)
2024-03-27 21:11:03 +01:00
Hood Chatham fd07a6a10b
Fix toJs on dict subclasses (#4637) 2024-03-26 11:34:16 +01:00
Matthias Hochsteger 8daf71c306
Fix Ipython dependencies (#4626)
Co-authored-by: Matthias Koeppe <mkoeppe@math.ucdavis.edu>
2024-03-26 11:32:04 +01:00