Commit Graph

2394 Commits

Author SHA1 Message Date
Gyeongjae Choi f48893c33a
Add _hashlib to unvendored stdlib (#3206) 2022-10-26 10:59:01 +09:00
Gyeongjae Choi b610f2c7e0
Add `pyodide skeleton` command (#3175) 2022-10-25 14:52:11 +09:00
Gyeongjae Choi 205338c009
MAINT Split out package loading and dynlib loading code (#3187) 2022-10-25 13:16:14 +09:00
Gyeongjae Choi 25a341aab8
TST Fix jsexception test (#3202) 2022-10-25 10:31:38 +09:00
pre-commit-ci[bot] 8093089e84
[pre-commit.ci] pre-commit autoupdate (#3204)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.2 → v3.0.0-alpha.3](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.2...v3.0.0-alpha.3)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-25 08:40:40 +09:00
Jeremy Tuloup c76573de1c
Add Gitpod configuration (#3201) 2022-10-24 21:13:01 +02:00
Hood Chatham 606a7107b0
Disable codecov annotations in pull requests (#3197) 2022-10-24 09:21:11 +09:00
YeonWoo 97cd5bdc1c
Fix repr_shorten and add shorten (#3178)
Added example for `repr_shorten` in issue #1955.
Fixed bugs found when adding examples.
Added `shorten` function.
2022-10-21 09:09:50 -07:00
Gyeongjae Choi 393988f601
Fix undefined symbol error when loading shared lib (#3193) 2022-10-21 10:04:57 +09:00
pre-commit-ci[bot] 00d0f347c8
[pre-commit.ci] pre-commit autoupdate (#3190)
updates:
- [github.com/asottile/pyupgrade: v3.0.0 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v3.0.0...v3.1.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.1 → v3.0.0-alpha.2](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.1...v3.0.0-alpha.2)
- [github.com/codespell-project/codespell: v2.2.1 → v2.2.2](https://github.com/codespell-project/codespell/compare/v2.2.1...v2.2.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-19 09:08:02 +09:00
Gyeongjae Choi 318c60bf0a
Don't fail if codecov fails (#3188) 2022-10-18 17:22:41 +02:00
Gyeongjae Choi dd8bab1377
Bump zlib version to 1.2.13 (#3185) 2022-10-14 16:48:30 +09:00
Filipe 3f2c82a29c
Update cftime and gsw (#3181) 2022-10-14 10:06:46 +09:00
Gyeongjae Choi deefdb3927
MAINT Fix noisy test results in blns test (#3177) 2022-10-14 09:55:41 +09:00
dependabot[bot] 5b95a42b8f
Bump got and tsd in /src/js (#3182)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-13 08:02:21 -07:00
dependabot[bot] a0c3fab5b2
Bump nanoid from 3.1.23 to 3.3.1 in /src/js (#3180)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.23 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-13 09:17:37 +09:00
Gyeongjae Choi 7d3e19b0f6
Correctly specify files to be packed in a npm package (#3168) 2022-10-12 13:54:12 +09:00
Qijia Liu 693570755c
PKG add wordcloud (#3173) 2022-10-12 08:28:29 +09:00
pre-commit-ci[bot] 65b659fe65
[pre-commit.ci] pre-commit autoupdate (#3174)
updates:
- [github.com/asottile/pyupgrade: v2.38.2 → v3.0.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.0.0)
- [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0)
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.0 → v3.0.0-alpha.1](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.0...v3.0.0-alpha.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-11 09:11:15 +09:00
Hood Chatham 2326c05d83
Add roundtrip parameter to create_proxy (#3163) 2022-10-09 20:23:59 -07:00
partev ab65d47cbe
DOC: fix a typo "type" -> "time" (#3172)
[skip ci]
2022-10-06 22:34:25 +02:00
Gyeongjae Choi 6214bafe5d
BLD Retry when package download fails (#3157) 2022-10-05 14:23:13 +09:00
Gyeongjae Choi dc5096bfcb
PKG add libheif, pyheif, and pillow_heif (decoder only) (#3161)
This adds libheif and Python packages that use libheif to support HEIC image format.

Note that this is "decoder" only. libheif use libde265 for decoder and libx265 for encoder, and I only added libde265 in this PR. I think decoding is more important in our use case, hence this PR.
2022-10-05 11:41:35 +09:00
Gyeongjae Choi 825a01e3af
Add options to disable integrity check in pyodide.loadPackage (#3149)
This PR adds an option to disable integrity check in `pyodide.loadPackage` when it is loading packages registered in repodata.json.
2022-10-05 08:32:11 +09:00
Gyeongjae Choi d2fce73291
Prevent backend-flags from propagating to dependencies (#3153) 2022-10-04 08:57:24 +09:00
Gyeongjae Choi 90e20badd7
Prevent from searching meta.yaml recursively inside extracted package source directory (#3162)
This fixes the behavior of searching meta.yaml recursively inside the extracted package source directory.
It sometimes cause error on packages that contain local meta.yaml file due to conda support.
2022-09-30 15:09:45 +09:00
Gyeongjae Choi 83ba807b10
Handle shared libraries with version suffix (#3154) 2022-09-30 11:06:41 +09:00
Gyeongjae Choi 7dfee03a82
ENH Add API for mounting native file system (#2987)
This PR adds an API pyodide.mountNativeFS which mounts FileSystemDirectoryHandle into a Pyodide Python file system.

Note that there are some limitations such as:

- File System Access API is only supported by Chromium-based browsers (Safari also implements a portion of it but they only support Origin Private File system so it is not very useful for common users).
- The file system is asynchronous, so one needs to call syncfs to persist changes.

Since it is asynchronous, it does not require any WebWorker, SharedArrayBuffer, or Atomics. But I think we can extend this to a synchronous version using those features
2022-09-30 09:24:53 +09:00
Hood Chatham 51803cae8c
Add capture_this keyword argument to create_proxy (#3145)
A followup to #3103. Allows creation of proxies from Python with `captureThis` set to `true`.
2022-09-29 01:27:49 -07:00
Gyeongjae Choi d8910dd03f
Bump mypy version to 0.981 in pre-commit config (#3159) 2022-09-29 13:30:48 +09:00
Hood Chatham 5f643fffb5
Fix cmdline runner when stdout doesn't have columns/rows attributes (#3156) 2022-09-29 10:41:20 +09:00
Gyeongjae Choi 8f8b107415
Add import hook for packages registered in repodata.json (#3137) 2022-09-28 09:05:00 +09:00
Yizhi Liu f28bf95c84
Add lightgbm package (#3138) 2022-09-27 10:14:11 +09:00
pre-commit-ci[bot] 8260b9f41f
[pre-commit.ci] pre-commit autoupdate (#3152)
updates:
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-09-27 10:09:50 +09:00
Gyeongjae Choi a1b72c6fa3
DOC Remove warnings about pyodide-cdn2.iodide.io (#3150)
[skip ci]
2022-09-26 09:46:19 +02:00
Hood Chatham 9a3365a6d0 Revert "0.22.0a1"
This reverts commit 13526ac8ff.
2022-09-24 18:37:03 -07:00
Hood Chatham 13526ac8ff 0.22.0a1 2022-09-24 18:36:46 -07:00
Gyeongjae Choi c54328cb1b
Use pyodide-cli entrypoint for out-of-tree CLI (#3140) 2022-09-24 18:34:36 -07:00
Roman Yurchak 0b4d73fa3e
Include micropip from a separate repository (#3122) 2022-09-24 13:02:17 +02:00
Hood Chatham cf3f355306
Add descr_get handler to JsMethod (#3130) 2022-09-23 00:36:38 +02:00
Gyeongjae Choi a916ea0b34
BLD simplify building CMake based packages (#3128)
This PR makes building CMake based packages easier.
- Introduce a custom toolchain file for Pyodide. It inherits most of settings from the original Emscripten toolchain file with some modifications. Packages built by pyodide-build will automatically use that toolchain file.
- Proxy cmake in pywasmcross.py, in order to proxy other compiler toolchains.
2022-09-22 10:42:26 +09:00
Gyeongjae Choi 50f46358c2
CI Fix PyPI deploy (#3139) 2022-09-21 17:27:55 +02:00
Gyeongjae Choi 024dcbe8f0
CI Fix ccache in package build (#3104) 2022-09-21 09:30:09 +02:00
Gyeongjae Choi 69b2d3f157
Add debug build option for js package (#3129) 2022-09-21 14:20:08 +09:00
Hood Chatham 55ff2e3ba5
DOCS Make docs wider (#3136) 2022-09-20 21:03:18 -07:00
Hood Chatham 32ccd545b4
Add bcrypt (#3125) 2022-09-20 13:46:43 +09:00
Hood Chatham 1a66912341
Add support for passing 'this' to Python (#3103)
Some people have expressed the difficulty that certain JavaScript frameworks
use `this` in critical ways and so a `PyProxy` callback cannot be handed to them
because there is no way for the `PyProxy` to get access to the `this` argument.
See #2901 for example. The goal of this PR is to address this. We cannot always
pass `this` through because usually it isn't useful. So the idea is to add an internal
setting on the `PyProxy` indicating whether it should be passed and some way to
set this setting. Currently I've added a method called `captureThis` which indicates
that `this` should be passed as an argument to Python.
2022-09-19 20:32:39 -07:00
Will Lachance aac2eede0a
Update pandas to 1.5.0 (#3134)
This removes a single patch which has since been upstreamed.
2022-09-19 19:18:02 -07:00
pre-commit-ci[bot] d9d6144a8b
[pre-commit.ci] pre-commit autoupdate (#3133) 2022-09-19 16:34:24 -07:00
Gyeongjae Choi 968f2c6f36
Keep webpackIgnore comments when building js package (#3132)
It adds terser config to not strip `/* webpackIgnore */` comments instead of
using sed after build.
2022-09-19 09:28:54 -07:00