Commit Graph

1930 Commits

Author SHA1 Message Date
Gyeongjae Choi a95a27e754
DOC Remove dummy packages from docs (#2358) 2022-04-14 06:22:07 -07:00
Hood Chatham c4ebd374f7
Fix type declarations (#2396)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-04-14 10:55:42 +02:00
Frank 1c14950b1a
Enable python_solvespace (#2389) 2022-04-12 07:35:01 -07:00
Roman Yurchak 628104155a
FIX Make core tests pass with ASSERTIONS=1 (#2385) 2022-04-11 16:02:38 -07:00
Hood Chatham bda8a85df7
Update debugging devguide (#2386) 2022-04-11 16:02:11 -07:00
Hood Chatham 50af355e8c
Rename 'build' directory to 'dist' (#2387)
dist is both more accurate (the 'build' directory is normally where you do the build,
and normally consists of intermediate build artifacts no one cares about). dist also
occurs less frequently in the code base: after this change \bbuild\b has 466 matches,
whereas \bdist\b has 101 matches. build has 1072 matches whereas dist has 362.
2022-04-11 16:01:40 -07:00
Gyeongjae Choi 6a84067819
Update docker image (#2388) 2022-04-11 11:05:32 +09:00
Hood Chatham a19b34c792
Replace runtime assertions about JsRef size and alignment with compile time _Static_asserts (#2383) 2022-04-10 11:10:46 +02:00
Hood Chatham 30a863a057
Fix invocations of _PyArg_ParseStackAndKeywords (#2382) 2022-04-10 10:20:45 +02:00
Hood Chatham 952d9092a9 v0.21.0dev0 2022-04-09 13:50:07 -07:00
Hood Chatham 7a9273dd6c v0.20.0 2022-04-09 13:44:32 -07:00
Hood Chatham adc234b732
Changes for v0.20 release
Update changelog, remove wheels and rust packages from roadmap since we did those
2022-04-09 13:42:31 -07:00
Gyeongjae Choi 60d530801e
ENH Remove hard coded paths in `pyodide_build` (#2351)
We are pushing pyodide_build to PyPI as a Python package, but for now, 
installing pyodide_build from PyPI (i.e. pip install pyodide_build`) is almost 
useless because:

    there are bunch of hard-coded paths (e.g. Path(__file__).parents[2]),
    its dependencies are not specified in setup.cfg.

This PR is for mitigating this situation by removing hard-coded paths and
adding tests, and is also a preparation for our new CLI 
(https://github.com/pyodide/pyodide/issues/1977).
2022-04-09 13:41:10 -07:00
Roman Yurchak 374eef1721
DOC Reorganize 0.20.0 changelog (#2380) 2022-04-09 11:05:19 -07:00
Hood Chatham 66fe7ede18
Update scipy to v1.8.0 (#2361) 2022-04-08 18:43:30 -07:00
Hood Chatham 70633aba7a
xfail statsmodels in chrome (#2377) 2022-04-08 18:42:45 -07:00
Henry Schreiner da7a3f55c1
chore: some pacage updates (#2375) 2022-04-08 14:19:10 -07:00
Henry Schreiner 4ec97fd939
fix: minor touchups (#2374)
Fixing a minor issue - pyodide-build doesn't work out of the box, it's missing two requirements.

Also updating a typo in the docs, and minor pre-commit bump.
2022-04-08 13:58:58 -07:00
Hood Chatham fe893b3165
Update pandas to v1.4.2 (#2370) 2022-04-08 12:06:38 -07:00
Hood Chatham 0c4470b6ef
Update cryptography to v3.4.8 (#2372) 2022-04-08 10:20:29 -07:00
Hood Chatham dfbf28856e
New keyboard interrupt patch from upstream (#2332) 2022-04-08 08:35:58 -07:00
Hood Chatham 69aab0b3a8
Update Pillow to v9.1.0 (#2362) 2022-04-08 08:35:22 -07:00
Gyeongjae Choi bd8f8c094d
TST Enable some skipped or xfailed tests (#2368) 2022-04-08 15:54:29 +02:00
Hood Chatham 23662b2772
More package updates (#2369) 2022-04-08 15:53:24 +02:00
Hood Chatham c477ca623a
Update statsmodels to v0.13.2 (#2366) 2022-04-07 18:34:42 -07:00
Hood Chatham 8e3cc8f3e6
Update scikit-image to v0.19.2 (#2367) 2022-04-07 18:34:27 -07:00
Hood Chatham f748f122bd
Update zarr to v2.11.3 (#2365) 2022-04-08 09:46:15 +09:00
Hood Chatham dc6e0ef72a
Update python-sat to 0.1.7.dev16 (#2364) 2022-04-08 09:44:36 +09:00
Hood Chatham 58b6fed5ac
Update nltk to v3.7 (#2363) 2022-04-08 09:42:14 +09:00
Hood Chatham df3a92882b
Run make -C packages update-all (#2355) 2022-04-06 21:02:21 -07:00
Hood Chatham 73a5b29a6e
Fix scipy import failure #2338 (#2348) 2022-04-06 08:12:06 -07:00
Hood Chatham 513919e6cf
Fix matplotlib event listeners (#2335) 2022-04-06 08:11:04 -07:00
Gyeongjae Choi 1b094cf4e8
CI Disable log clipping in building docker images on GHA (#2356) 2022-04-05 18:06:39 +02:00
Hood Chatham eb8afb00c2
Update libffi commit (#2350)
All libffi tests pass now. The only failing ctypes test is test_callback_too_many_args which doesn't segfault anymore, it only soft fails. Planning to submit a PR to cpython that fixes test_callback_too_many_args.
See also:
bugs.python.org/issue47208
https://github.com/emscripten-core/emscripten/pull/16658
2022-04-04 21:18:20 -07:00
Boris Feld 8ffd03f48e
Update changelog.md (#2352)
The changelog for release 0.19.1 rendering was broken 
as `Type Translations` title level was too high.
2022-04-04 11:47:06 -07:00
Tom White a69fb1bbb7
Enable ANSI escape codes in console (#2345)
Currently, ANSI escape codes are not supported in the console.
This is fixed by adding an extra javascript file that jQuery Terminal needs to render the codes.
2022-04-03 14:31:41 -07:00
Hood Chatham 981f23869b
Test numpy in node (#2349) 2022-04-03 14:30:39 -07:00
Hood Chatham 93c3e65458
MAINT Fix JsBuffer_tobytes and JsBuffer_tomemoryview signatures (#2347) 2022-04-02 11:25:48 -07:00
Hood Chatham b12399c9ae
Add lazy-object-proxy (#2320)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-04-02 14:07:50 +02:00
dependabot[bot] 7cbbe73c73
Bump ansi-regex from 3.0.0 to 3.0.1 in /src/js (#2341)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 11:48:52 +02:00
Henry Schreiner 93dc922f46
chore: Python 3.10 pyupgrade (#2342)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-04-02 00:36:55 +02:00
Hood Chatham a54b1b4bd8
Update numpy to v1.22.3 (#2337) 2022-04-01 22:00:47 +02:00
Henry Schreiner 6f62a89d86
fix: better mypy coverage (#2339) 2022-04-01 21:58:54 +02:00
Hood Chatham 389f8ff1d2
Update openssl to 1.1.1n (#2334)
Update says: 'Security Advisory: one high severity fix' so probably
a good idea to include it.
2022-03-31 20:40:12 -07:00
Hood Chatham c27d2e712b
Switch extractDir to camelCase (#2333)
The other key word arguments in our JavaScript apis have camelCase names. It's good to be consistent.
2022-03-31 18:26:29 -07:00
Gyeongjae Choi 3c2ae15052
MAINT merge console scripts into one (#2329)
We have two Python console scripts: _pyodide/console.py and pyodide/console.py.
I think there is no clear reason for them to be separated, and Sphinx autodoc often 
complains about duplicate symbols. This PR merges them into pyodide/console.py.
2022-03-30 21:30:13 -07:00
Hood Chatham f06eb77387
Remove bad ctypes patch (#2331) 2022-03-30 15:03:36 -07:00
Henry Schreiner ca97aaf9bd
chore: fix black breakage from click 8.1 (#2328) 2022-03-29 15:09:15 +02:00
Hood Chatham 37057d1704
Set PLATFORM_TRIPLET, include platform in so names, only load compatible so files (#2299)
For reasons that are a bit beyond me, `--host` and `PLATFORM_TRIPLET`
seem to be independent, in particular we've had an empty
`PLATFORM_TRIPLET`. This is unfortunate because `PLATFORM_TRIPLET`
is used to generate the SOABI config variable which in turn is used
to decide whether a .so file is a good match for loading. We'd like
for linux Pythons not to try to import emscripten .so files (it
raises `ImportError: some_file.so: invalid ELF header`). Similarly,
we'd like to avoid attempting to load linux .so files in wasm. These
platform tags are our friends.

Anyways, this PR sets `PLATFORM_TRIPLET` and ensures that .so files
built by pywasmcross are tagged with our SOABI tag.

I moved the .so file renaming from pywasmcross to buildpkg just
before running the post script. That is a better place to put it in
case the package wants to look at the .so file after linking it. It
might be surprised that we moved it.

I also improved the error message if we try to `loadWebAssemblyModule`
something that is actually say a Linux .so file and updated get_dynlibs
to filter out .so files that have an incompatible abi tag.
2022-03-28 20:07:36 -07:00
Hood Chatham c982e6b42d
ENH Automatically schedule coroutines (#2319)
Without this PR,
```js
let f = pyodide.globals.get("some_async_function");
setTimeout(f, 100);
```
doesn't work because `setTimeout` calls `f` which returns a coroutine
which is left unscheduled and so the actual work in `f` is never executed.
This is surprising to people, see for instance
https://github.com/pyodide/pyodide/discussions/2229.
This changes the behavior to automatically schedule all coroutines created
from async functions called from Javascript so that async functions can be
used as Javascript event handlers.
2022-03-28 20:06:46 -07:00