Commit Graph

3069 Commits

Author SHA1 Message Date
Matthias Köppe cd9cb8d4a2
`tools/dependency-check.sh`: Avoid confusing error message (#4423) 2024-01-25 21:29:27 -08:00
Hood Chatham 1396c8c07a
Make pyimport able to return module attributes (#4395)
Before this PR, `pyimport` can be used like: `pyimport("package")` or `pyimport("package.module")` but `pyimport("package.attribute")` fails. This updates `pyimport` to also work to get package attributes.

I also updated the docs for pyimport.
2024-01-24 15:19:02 -08:00
Matthias Köppe 9ca93345cf
`pyodide_build.buildpkg`: Build in `$PYODIDE_RECIPE_BUILD_DIR ` if set (#4405)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-24 21:27:41 +09:00
Matthias Köppe 5093db325f
Fix `pytest test_run_docker.py` when invoked from a subdirectory (#4414)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2024-01-24 21:19:56 +09:00
Hood Chatham 595f6b53d6
Monkey-patch platform.machine for pip in pyodide venv (#4412)
Without this fix, `pip install sqlalchemy>=2` fails trying to install greenlet.
2024-01-23 17:50:58 -08:00
Matthias Köppe 231b0de5fd
pyodide_build.logger: Do not use escape sequences when running under pytest (#4413) 2024-01-23 17:50:25 -08:00
Gyeongjae Choi 53f9faa9f2
BLD Drop `pyodide_build` entrypoint (#4368) 2024-01-23 22:35:31 +09:00
Gyeongjae Choi a14d34fb1b
Emscripten 3.1.52 (#4399)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-23 21:18:42 +09:00
Loïc Estève b9a93a3571
Update scikit-learn to 1.4.0 (#4409) 2024-01-23 18:54:59 +09:00
Hood Chatham a870029e02
Update zlib to v1.3.1 (#4408) 2024-01-23 18:54:19 +09:00
Matthias Köppe a505bd5215
Add devcontainer configurations (#4402)
Adds two devcontainer configurations:

* configuration "Docker": the default, equivalent to using run_docker 
* configuration "Conda"

Codespaces and VS Code allow users to select the configuration.
2024-01-22 16:32:09 -08:00
Matthias Köppe fde32e9d8b
Update libgmp to 6.3.0, libmpfr to 4.2.1, libmpc to 1.3.1 (#4406) 2024-01-22 18:27:57 +09:00
Hood Chatham e586e7c0f2
Add apis to discard extra arguments when calling Python functions (#4392)
This is intended to be useful for implementing handlers. The handler
might not care about all the arguments. It's convenient to have some
easy way to discard unneeded ones.
2024-01-21 18:38:15 -08:00
Віктор Коропецький 0eb69be801
JSPI: Add tests for PyodideFuture.syncify() (#4388) 2024-01-21 18:12:55 -08:00
Matthias Köppe 056db73ff2
Monkey-patch `platform.system` for pip in pyodide venv (#4400)
Before this patch, pip cannot install emscripten platformed wheels on macos because
`platform.system` returns `"Darwin"` and so `platform_tags` returns Darwin tags:
https://github.com/pypa/packaging/blob/23.2/src/packaging/tags.py#L494-L503

By monkey patching platform.system to return something other than "Darwin", we get a
suitable list of tags.
2024-01-21 18:06:50 -08:00
Hood Chatham 09f5f5493e
Update openssl to 1.1.1w (#4396) 2024-01-20 13:42:14 -08:00
Hood Chatham 914244c251 Add release 0.25.0 heading to changelog 2024-01-20 08:28:35 -08:00
Hood Chatham 93df0312a7
MAINT Improve error message when there is a lockfile version mismatch (#4391) 2024-01-20 11:16:05 +09:00
Hood Chatham 61f4318eb6 0.26.0.dev0 2024-01-18 14:19:56 -08:00
Hood Chatham 6621b6bca7 v0.25.0 2024-01-18 11:00:33 -08:00
Hood Chatham 08585d91e5
Fix nodylink build (#4385) 2024-01-18 10:57:26 -08:00
Hood Chatham b04968391c
Add pacakge nh3 (#4387) 2024-01-18 10:25:02 -08:00
Hood Chatham d44293f3c3
Update JSPI code to handle change in type reflection spec (#4384)
Resolves #4378. Tested manually.
2024-01-16 16:37:48 -08:00
Gyeongjae Choi 8b0ae663a0
TST Use temporary directory when testing pyodide-build (#4369) 2024-01-13 20:02:55 +09:00
Hood Chatham f1498a2747
DOCS Add documentation for JSPI related methods (#4363)
Explains that they are experimental, require JSPI.
2024-01-09 04:09:10 -08:00
Szabolcs Dombi 712b4b3c40
Upgrade ZenGL to 2.2.0 (#4364)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-08 23:12:55 +09:00
Gyeongjae Choi 4f2c0372af
Emscripten 3.1.46 (#4359) 2024-01-05 19:24:39 +09:00
Hood Chatham 6b1528e549
Add WebLoop.close method (#4329)
Which is a no-op, so we don't crash if people try to close the loop.
2024-01-04 22:48:04 -08:00
Gyeongjae Choi 59b747a40d
DOC Rearrange changelog for 0.25 release (#4352) 2024-01-03 20:02:13 +09:00
Hood Chatham 26b422f67b
DOCS: Clarify `registerJsModule` and submodules (#4354) 2023-12-28 13:06:17 +09:00
Gyeongjae Choi 06bbb38ee8
Remove version suffix from shared libraries (#4353) 2023-12-25 09:40:16 +01:00
Gyeongjae Choi d45733dc0c
DOC Replace minimal supported browser versions with tested browser versions (#4351)
[skip ci]
2023-12-25 09:39:20 +01:00
Joe Marshall 6de25252cc
added requests and (direct from git) urllib3 (#4332) 2023-12-21 18:38:26 +01:00
Gyeongjae Choi 1849625d56
Remove deprecated attributes and parameters before 0.25.0 release (#4342)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-19 20:07:39 +09:00
Gyeongjae Choi 1a2be2e412
Normalize package names in pyodide-lock.json (#4319)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-14 23:40:10 +09:00
Andrew Moon 329f9943d2
Parse wheel package data from URLs in pyodide.loadPackage (#4336) 2023-12-14 21:16:56 +09:00
Hood Chatham 8a8569aafa Revert "v0.25.0a2"
This reverts commit 77afe0d71c.
2023-12-11 15:47:35 -08:00
Hood Chatham 77afe0d71c v0.25.0a2 2023-12-11 12:15:01 -08:00
Gyeongjae Choi 01f2cb18a7
Bump pytest-pyodide version to 0.56.2 (#4334) 2023-12-10 15:42:38 +09:00
Andrew Moon 46c5d891d2
Update environment instructions in contributing.md (#4337) 2023-12-10 15:42:18 +09:00
Deepak Cherian 16b2ff3277
Update xarray to 2023.12.0 (#4333) 2023-12-08 16:30:56 -08:00
Gyeongjae Choi 2711fad193
Fix stdin reader to avoid treating empty strings as EOF (#4327) 2023-12-06 23:03:49 +09:00
Hood Chatham 9e90f695ab
TYPING Remove uses of `abc.register` (#4325) 2023-12-05 14:17:01 -08:00
Hood Chatham 90d34bf91b
DOCS Remove environment checking variables from docs (#4328)
By marking them `@private`
2023-12-05 13:43:05 -08:00
Hood Chatham 9257dd2e92
Add Array remove and insert methods (#4326)
These are supposed to be present on `MutableSequence` types but I forgot
to put them on `JsArray`.
2023-12-05 09:01:02 -08:00
Hood Chatham 96d3b748fc
TYPING Add py.typed markers to pyodide and _pyodide (#4321) 2023-12-04 13:27:11 -08:00
Hood Chatham b754c8ed2d
TYPING More accurate type for `JsPromise` (#4322)
We gave `PyodideFuture` a very accurate type definition for `then` and `catch`. This copies the
same types to `JsPromise`. Unfortunately I was unable to work out a way to share the types
between the two of them due to limitations of Python's type system.
2023-12-04 09:04:02 -08:00
Hood Chatham 8225ef3f51
TYPING Improve return types of `object_keys`, `object_values`, `object_entries` (#4323) 2023-12-04 21:41:02 +09:00
Hood Chatham 2a765ae927
TYPING Run mypy checks against Python 3.11 (#4324) 2023-12-04 21:37:40 +09:00
Matty ddedc0431c
TYPO Fix pyodide.setStdout docstring (#4318)
The docstring describing the options.batched argument for pyodide.setStdout
contained the words "is written" twice.
2023-12-01 10:37:41 -08:00