Commit Graph

495 Commits

Author SHA1 Message Date
Hood Chatham 8f2711f3ce
Update changelog for v0.23.1 (#3769) 2023-04-14 19:54:10 +09:00
Hood Chatham 521e81e88e
In pyodide venv, redirect python -m pip to run in host environment (#3761) 2023-04-13 22:51:10 -07:00
Hood Chatham f2b2a17d2f
Make executables installed in Pyodide venv run in Pyodide not in host (#3752)
pip can't run inside of Pyodide because it needs to do stuff like make requests
that don't work inside the virtual environment. So the virtual environment bin
folder contains a python-host executable which is a symlink to the
sys.executable that created the virtual environment. The shebang for pip uses
python-host. But then when pip installs an executable it uses sys.executable to
create the shebang for the installed executable. If that is python-host then the
installed executable will run outside of Pyodide. So we need to patch
`sys.executable` to point to the Pyodide Python.
2023-04-12 17:47:20 +02:00
Hood Chatham b1405ffede
Pass the source and build directory explicitly, don't use chdir (#3746)
This switches to passing the source and build directories as arguments.
It adds an output-directory argument to pyodide build allowing us to
indicate where the output wheel should go independent of the build
directory. I also did some cleanup of the logic added in #3310
2023-04-12 17:43:57 +02:00
Christian Clauss b2201c19b1
Upgrade to Python v3.11.3 (#3741) 2023-04-12 17:38:05 +02:00
Loïc Estève 7193109f4d
Package OpenBLAS and use OpenBLAS in scipy (#3331) 2023-04-11 21:30:07 -07:00
Gyeongjae Choi 862163ece3
Add python_stdlib.zip to xbuildenv (#3760)
Resolves #3730
2023-04-12 06:14:18 +02:00
Loïc Estève 5db237d482
Update libmpfr version and use ftp.gnu.org (#3756) 2023-04-11 14:45:12 +00:00
Hood Chatham 0c458f4469
ENH Add then, catch, and finally_ to the Tasks too (#3748) 2023-04-11 07:09:06 +02:00
Gyeongjae Choi 6213477940
Make sure PYODIDE_ROOT points to absolute path in out-of-tree build (#3751) 2023-04-11 13:05:11 +09:00
Luiz Irber 24f839a2f2
New package: sourmash (and deps) (#3635)
Add sourmash (Python + Rust extension, packaged with maturin) and missing pure-wheel deps (screed, bitstring, cachetools, deprecation).

After a couple of fixes in sourmash-bio/sourmash#2433 I managed to build it out-of-tree, would like to have it available here to make it easier to distribute (while PyPI doesn't support emscripten wheels).
2023-04-07 20:11:30 -07:00
Roman Yurchak 8be4402e4f
Fix passing compression-level in `pyodide py-compile` CLI (#3727)
The compression-level wasn't passed through in the internal functions when the target is a single archive.
2023-04-03 16:08:26 +09:00
David Lechner 687989c1b5
export python_stdlib.zip in package.json (#3723)
v0.23.0 changed which binary files are needed (removed pyodide_py.tar and pyodide.asm.data and added python_stdlib.zip). The old files were removed from the exports but the new file was not added to the exports.
2023-04-01 20:33:56 +09:00
Roman Yurchak 53de1c3e72
Version 0.23.0 (#3712) 2023-03-30 23:30:18 +02:00
chrysn 2b20b2b0d0
Add package cbor-diag (#3715) 2023-03-30 20:54:28 +02:00
Gyeongjae Choi 2046310460
ENH Support SDL-based packages and add pyxel (#3508)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2023-03-30 08:18:31 +00:00
Roman Yurchak 7f4f66b34b
Deploy py-compiled build (#3701)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2023-03-29 22:54:46 +02:00
Roman Yurchak 0a1d87d45f
Customize build type in indexURL used by console.html (#3702)
[skip ci]
2023-03-29 22:06:59 +02:00
Roman Yurchak 0714afd3b6
More package updates + micropip 0.3.0 (#3709) 2023-03-29 16:28:42 +02:00
Hood Chatham 4f13ab1465
Make PyProxy of async iterator JavaScript async iterables (#3708) 2023-03-29 08:29:16 +02:00
Roman Yurchak 7ad9668788
DOC Re-organize changelog for 0.23.0 (#3707)
[skip ci]
2023-03-28 23:41:17 +02:00
Roman Yurchak 8058cb6703
Support for py-compiling folders + repodata.json update (#3700)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2023-03-28 11:28:28 +00:00
Roman Yurchak dc2dd417cb
PKG Add yarl and idna (#3703)
This adds the yarl package which is a requirement (with some Cython code) for the openai client library (#3588). 
idna is a Pure python dependency of yarl.
2023-03-28 16:37:36 +09:00
Hood Chatham f521b028fe
DOC Add roadmap entry for documentation improvements / tutorials (#3637)
[skip ci]
2023-03-27 13:35:06 +02:00
Gyeongjae Choi dddfa820f9
Remove deprecated methods (#3677)
Remove deprecated methods before releasing 0.23 following the [deprecation timeline](https://github.com/pyodide/pyodide/blob/main/docs/project/deprecation-timeline.md)
2023-03-27 10:48:33 +09:00
Gyeongjae Choi b801885353
Out-of-tree recipe build support (#3544)
Add out-of-tree support for `pyodide build-recipes` command.
This mostly reuses xbuildenv we use for the out-of-tree build.
2023-03-23 14:01:27 +09:00
Hood Chatham fe9c2238fc
Add hereditary option to as_object_map (#3638)
This automatically apply `as_object_map` to the values of the map 
when the values are "plain old objects". The behavior is slightly naive. 
Hopefully it will satisfy most people who have requested this feature.
2023-03-22 17:48:32 +01:00
Hood Chatham 92afb1342c
Add multidict (#3581) 2023-03-22 17:42:43 +01:00
Roman Yurchak bd2377444d
Add stdLibURL parameter to loadPyodide (#3670)
Allows to customize the URL from which the Python standard library is
loaded
2023-03-21 14:44:30 +00:00
Roman Yurchak 601d939fdd
Fix wheel compression with the JsDelivr CDN (#3667)
Set the MIME type for wheels and zip files to application/wasm to enable CDN compression. Also optionally disable compression in zip files and wheels to make the brotli compression by the CDN more efficient.

Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2023-03-21 09:11:47 +01:00
Roman Yurchak 59b2c4e1ef
Remove deprecated pyodide-build buildall and mkpkg CLI endpoints (#3668) 2023-03-20 08:43:04 +01:00
Gyeongjae Choi fb48f39847
DOC Add missing packages to changelog (#3674)
Adds pynacl and mypy to the changelog.
2023-03-20 13:11:55 +09:00
Gyeongjae Choi 802a9cd26b
Handle response files in pywasmcross (#3645)
Co-authored-by: josephrocca <1167575+josephrocca@users.noreply.github.com>
2023-03-17 09:00:51 +09:00
Loïc Estève d78597957a
MNT Update scikit-learn to 1.2.2 (#3654) 2023-03-14 19:56:23 +01:00
Christian Clauss 57f36ac6f8
Ruff is now compatible with Python pattern matching (#3650) 2023-03-13 22:45:06 +01:00
Hood Chatham d6ce2b6edd
DOC Remove package loading from roadmap (#3636)
[skip CI]
2023-03-08 08:54:38 +01:00
Jo Bovy fc9ca86ad1
Update galpy to v1.8.2 (#3630) 2023-03-04 21:11:25 +09:00
Gyeongjae Choi a9182030cd
Merge pyodide_py into python_stdlib.zip (#3621)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2023-03-04 11:05:12 +01:00
Hood Chatham ead7d8aed6
DOC Remove user code section from roadmap (completed) (#3627)
[skip ci]
2023-03-04 10:03:51 +01:00
Hood Chatham 97d17373f2
Handling for reserved Python keywords as JsProxy attrs (#3617)
Resolves #3615. Things like `from` and `finally` are reserved keywords in Python and so `a.finally` 
is a `SyntaxError`. This automatically reroutes `a.from_` on a `JsProxy` to refer to `a.from` so it
can be used reasonably conveniently from Python.
2023-03-03 11:13:40 +01:00
Hood Chatham ce7880739e
Emscripten 3.1.32 (#3599) 2023-03-03 11:12:11 +01:00
Hood Chatham 959ceb9d57
Add locals option to runPython and runPythonAsync (#3618) 2023-03-03 10:09:02 +01:00
Hood Chatham 99a5e21287
Fix `eval_code` (#3580)
This fixes eval_code / eval_code_async / CodeRunner.run / CodeRunner.runAsync so that the defaults for globals and locals work as documented. Resolves #3578.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-03-03 08:54:20 +09:00
Joe Marshall 0fdf9a80fa
Add Fastparquet (#3590) 2023-03-02 14:46:58 +09:00
Christian Clauss 154fbed9fa
Upgrade to Python v3.11.2 (#3614) 2023-03-01 23:57:17 +01:00
Gyeongjae Choi ed3ae1ba49
Download standard libraries in a zipfile (#3582) 2023-03-01 23:11:30 +01:00
Gyeongjae Choi c99584d4b8
FIX Change rust packages not to build concurrently (#3607)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2023-02-27 14:55:03 +09:00
Gyeongjae Choi 0d5bd851fe
Use loky.cpu_count() instead of os.cpu_count() (#3598) 2023-02-22 07:53:19 +09:00
Feodor Fitsner 2f305cfec7
Add Flet to Related Projects (#3571) 2023-02-10 12:25:59 -08:00
Gyeongjae Choi b6fc9e7b1d
Add --no-user flag when installing packages in xbuildenv (#3562) 2023-02-10 09:17:53 +09:00