Commit Graph

3337 Commits

Author SHA1 Message Date
github-actions[bot] d2d8865a04
Update cross-build metadata file for version 0.26.1 (#4854)
Co-authored-by: ryanking13 <24893111+ryanking13@users.noreply.github.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2024-06-08 15:09:44 +09:00
Em Zhan ddcdaba9a1
Fix path to changelog.md (#4850) 2024-06-07 16:48:22 -07:00
Hood Chatham aeda193907
Update changelog for 0.26.1 (#4852) 2024-06-07 15:30:25 -07:00
Hood Chatham fa7dcc33cb
FIX Prevent segfaults in CLI runner (#4836)
After many hours of debugging, I minimized the problem down to this: emscripten-core/emscripten#22052

Thanks to @henryiii for reporting. See thread here for my comments while I was debugging:
scikit-hep/boost-histogram#938

Resolves #2964.
2024-06-07 15:16:43 -07:00
Hood Chatham 0f2ee22320
Set platlibdir in venv pip (#4844)
Previously we'd read it from the host environment, which could cause trouble in environments
like Fedora where it would have an unusual value. Resolves pypa/cibuildwheel#1853
2024-06-07 09:16:09 -07:00
Andrew Moon 807250e8d2
Read build settings from configuration file (#4831)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-07 19:24:49 +09:00
Hood Chatham f875fe757f
FIX platform.system should be "Emscripten" not "emscripten" (#4812) 2024-06-06 22:42:40 -07:00
Hood Chatham 43cce6e5ff
FIX Check if future is done before trying to set a result on it (#4837)
Otherwise, the future raises invalid state error
2024-06-05 21:56:01 -07:00
Deepak Cherian 97eda9d0bf
Update xarray (#4838) 2024-06-05 19:54:50 -07:00
Agriya Khetarpal 74577e7260
Add `pytest-asyncio` (#4819)
This PR adds a recipe for the pytest-asyncio package.
2024-06-05 19:53:41 -07:00
Gyeongjae Choi b946246d31
Fix pyodide-build verbose log by replacing requests with urllib (#4814)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-05 20:13:07 +09:00
Gyeongjae Choi df44d6d5b2
Update subtable name for checking in-tree build (#4835) 2024-06-05 20:12:34 +09:00
Muspi Merol f95577ebca
Add generic typing for `create_proxy`, `create_once_callable` and `JsDoubleProxy` (#4833)
Resolves #4832
2024-06-03 22:28:39 -07:00
Gyeongjae Choi 7cf233e458
Retry on network error when downloading packages (take 2) (#4826)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-03 20:30:56 +09:00
Gyeongjae Choi 1196a59a8b
Backfill missing releases to pyodide-cross-build-environments.json (#4829) 2024-06-03 20:30:27 +09:00
Loïc Estève ff3942e942
Update scikit-learn to 1.5 (#4823) 2024-06-01 09:57:54 -07:00
Gyeongjae Choi 12947036cc
Fix typo in pyodide-cross-build-environments.json (#4828) 2024-06-01 15:45:52 +09:00
github-actions[bot] d08fb9066c
Update cross-build metadata file for version 0.26.0 (#4827)
Co-authored-by: ryanking13 <24893111+ryanking13@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2024-06-01 15:27:19 +09:00
Muspi Merol 880c9a8487
Fix keys related behaviors on `PyProxyJsonAdaptorDictHandlers` (#4825)
This PR fixes #4824 by modifying the regex used to detect number strings
and add an if condition to prevent casting non-number strings into number
2024-05-31 12:09:12 -07:00
Gyeongjae Choi dd9366e30f
BLD Extract out xbuildenv create command from pyodide-build (#4798)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-31 18:27:57 +09:00
Gyeongjae Choi b388ec7bf0
CI Fix cross build env metadata update workflow again (#4820) 2024-05-31 18:27:39 +09:00
Hood Chatham 9d584f761b
NFC Scipy: Add a non-temporary build directory (#4821) 2024-05-30 07:38:01 -07:00
Hood Chatham 2fcaf3a12d
ENH Add option to make `run_until_complete` stack switch (#4817)
After we have this, we can make async tests work correctly.
2024-05-30 05:12:49 -07:00
Gyeongjae Choi 2ab4fcd9f4
TST Try to make safari tests fail a little less often (#4809)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-30 19:13:24 +09:00
Agriya Khetarpal e3f518d1d3
NFC: `zstandard` test improvements (#4801) 2024-05-28 07:03:07 -07:00
Hood Chatham 868ee36ef5 Switch version to 0.27 development 2024-05-27 11:27:46 -07:00
Hood Chatham 14a637d7c5 Readthedocs: remove pdf format too 2024-05-27 11:26:14 -07:00
Hood Chatham 65bb950c52 Fix readthedocs build 2024-05-27 11:19:59 -07:00
Hood Chatham 10b484cfe4 Version 0.26.0 2024-05-27 06:39:17 -07:00
Hood Chatham 211544d111
pyodide build: Only retag platformed wheels (#4803)
This matches pyodide build's logic to the logic in buildpkg. Don't add a platform to a `py3-any-none` wheel.
2024-05-27 05:34:26 -07:00
Gyeongjae Choi 2a63d79c9a
CI Fix version parsing in update_cross_build_releases workflow (#4808)
This workflow was not running correctly (log: pyodide/pyodide/actions/runs/9184058597/job/25255773845)
2024-05-27 05:22:15 -07:00
Hood Chatham e1baabe8cb
FIX Show help when `-h` is passed to cli commands (#4806)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-27 05:15:11 -07:00
Gyeongjae Choi 1c08825c6c
Revert "Fix deprecated warnings in pyodide-build" (#4807) 2024-05-27 18:17:03 +09:00
Gyeongjae Choi d317e66d17
Fix deprecated warnings in pyodide-build (#4797)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-26 22:05:12 +09:00
Hood Chatham 81e4d200db Revert "BLD Clean up unused Makefile sed (#4785)"
Turns out this stuff is used.

This reverts commit c53ff47046.
2024-05-25 21:46:27 -04:00
Agriya Khetarpal 04e311fff8
Add `zstandard` (#4792)
This PR adds the [`zstandard`](https://pypi.org/project/zstandard/) Python
package with the C and CFFI backends (the Rust backend is not compiled as of
now, but can be a future improvement). `zstandard` is a required dependency in
the upcoming version 3 release for Zarr.
2024-05-25 20:51:26 -04:00
Gyeongjae Choi 36565c7e9d
Revert "Update Emscripten to 3.1.60" (#4796) 2024-05-25 08:06:50 -04:00
Gyeongjae Choi e4c72fef50
Fix out-of-tree build test after platform tag update (#4795)
This test was failing after #4777; retag_wheel was complaining about
the wheel filename and the content.
2024-05-25 00:04:34 -04:00
Gyeongjae Choi 767a866679
Retry on HTTPException when downloading packages (#4794)
This fix is mainly to handle the IncompleteRead error that occasionally happens when downloading packages.
2024-05-24 22:37:07 -04:00
Gyeongjae Choi 56ab5c4ebb
Remove deploy dependencies from pyodide-build's pyproject.toml (#4752)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-25 10:32:38 +09:00
Hood Chatham b16552a660
Update Emscripten to 3.1.60 (#4782) 2024-05-25 10:06:52 +09:00
Agriya Khetarpal 15eb1ae6b1
Add `crc32c` (#4789)
This PR adds the crc32c package and closes #4787. crc32c is a required dependency
for the upcoming version 3 for Zarr.
2024-05-24 10:57:36 -04:00
Gyeongjae Choi 27d71d1a06
BLD Pass host env variables to bash runner (#4747)
A tiny PR that allows passing env variables when building recipes.

For example, `EMCC_DEBUG=1 pyodide build-recipes ...` didn't work before this PR, as EMCC_DEBUG=1
was not passed to the bash_runner.
2024-05-24 08:56:36 -04:00
Gyeongjae Choi 52381bba6c
Update test xbuildenv (#4791)
Updates test xbuildenv file, adding PYODIDE_ABI_VERSION added in #4777.
2024-05-24 08:55:07 -04:00
Hood Chatham e8cc1e5b19
JsProxy bindings: Call via Reflect.construct when signature is a class (#4756) 2024-05-24 00:06:00 -04:00
Hood Chatham c53ff47046
BLD Clean up unused Makefile sed (#4785)
This stuff is no longer needed since the update to Emscripten 3.1.58.
2024-05-23 17:42:31 -04:00
Hood Chatham c7a411137a
Remove DEMANGLE_SUPPORT (#4786)
This is deprecated and I think we don't need it anymore.
2024-05-23 17:42:03 -04:00
Philipp Schiele a6d2fb0356
Updates CVXPY to 1.5.1 (#4781) 2024-05-22 11:07:54 -04:00
Gyeongjae Choi c3d1eff411
TST Improve xbuildenv and emscripten mocks (#4741)
The goal of this PR is to reduce the dependency on pyodide for testing pyodide-build. The main changes are:

1. Add a new fixture: `mock_emscripten` for mocking emscripten compiler toolchain. This fixture will create a dummy emcc (+ other toolchains) to the PATH. When running tests, all emcc calls will be intercepted by this command.

2. Improve `xbuildenv` fixture. Previously, this fixture actually created an xbuildenv from the Pyodide artifacts. So, we had to have Pyodide already built before running the tests. In this PR, this fixture now uses a pre-built minimum xbuildenv.

As a result, now all tests in `pyodide-build` run without building Pyodide. The only exception is `test_xbuildenv_create` which test `pyodide xbuildenv create` command. In a follow-up, I am planning to migrate the `provide venv` tests, which are in `test_cmdline_runner.py.`
2024-05-21 22:35:34 -04:00
Hood Chatham e2893d53e3 Version 0.26.0a6 2024-05-21 18:17:53 -04:00