Commit Graph

1123 Commits

Author SHA1 Message Date
Hood Chatham ba2d394d96
Support relative URLs in micropip (#872)
Co-authored-by: Dexter Chua <dec41@srcf.net>
2020-12-31 18:55:27 +01:00
Dexter Chua 043f699c3f
Remove superfluous CPython patch (#993) 2020-12-31 18:22:33 +01:00
Dexter Chua 9e6a9f426d
Remove some unneeded CPython patches (#994) 2020-12-31 18:19:24 +01:00
Dexter Chua c4548db3c0
DOC Update docs for iodide code removal (#981) 2020-12-31 13:23:03 +01:00
Dexter Chua 57fea1bf74
BLD Make package build output less verbose (#947) 2020-12-31 13:19:41 +01:00
Dexter Chua e205121806
Build docs in CI (#983) 2020-12-31 13:18:13 +01:00
Dexter Chua 8cc3c33550
Remove SWAPPABLE_ASM_MODULE setting (#968)
This is removed in emscripten 1.39.16, and for the wasm backend, was
broken since 1.39.6. Eliminating the setting will make it easier to
upgrade in the future.
2020-12-31 11:45:44 +01:00
Dexter Chua 5d31bcbee4
Remove EMULATED_FUNCTION_POINTERS setting (#970)
According to pmp-p it is no longer needed, and this setting is
unavailable when using the upstream backend.

https://github.com/iodide-project/pyodide/issues/476#issuecomment-533285690
2020-12-31 11:43:49 +01:00
Dexter Chua 6b30e5c6dd
DOCK Don't install tempita (#967) 2020-12-31 11:41:41 +01:00
Dexter Chua b4c71a6dd2
CI Don't block tests on lint (#963)
Lints can be fixed easily, and this exposes "real" problems sooner.
2020-12-31 11:09:58 +01:00
Dexter Chua 64d0b7cd00
BLD Remove TEXTDECODE=0 build flag (#962)
This was introduced in #96 to bypass a Chrome bug introduced in Chrome
69 and fixed in Chrome 70. Chrome 69 supposedly has a market share of
0.09%, so I think it is safe to drop support.
2020-12-31 11:01:04 +01:00
Hood Chatham 1dd1e688cf
Streamline hiwire_get_dtype (#956)
Implementation of hiwire_get_dtype is split across two files. The reason seems to be that get_dtype returns two values: format and size. I changed it to take pointers to write the results into. This makes the code shorter and easier to understand (someone reading the files would have to search the source to find out that those constants are only used in two spots).
2020-12-31 14:49:24 +08:00
Hood Chatham c9c4499a0d
Maint: precommit clang-format (#942)
This resolves #935. I also changed the lint make recipe to use find which is more resilient to changes in directory structure and doesn't output those annoying No such file or directory messages to stdout.

I changed the name of the apply-lints recipe to apply-lint for consistency, and I updated it to only apply lints to files with staged changes.
2020-12-31 09:57:41 +08:00
Hood Chatham a4f4f458de
Added minimal make recipe (#928)
* Added minimal rule.

* Added trailing newline to makefile
2020-12-31 08:42:02 +08:00
Hood Chatham aacaac8494
Use the C type system in hiwire (#971)
Before this PR, hiwire effectively opts out of the C type system entirely by declaring everything as int. A char*? Cast it to int. What about a PyObject*? Better cast it to int too. This makes the calling code more verbose (at least if the calling code uses the type system) and is not good for maintainability.

I made a NewType called HwObject for hiwire keys. If you google how to make a NewType in C, people recommend a single field struct. However, EM_JS does not convert that compatibly: it converts any struct to the address of the struct, but an integer to the value of the integer. This created trouble. I decided instead to make a dummy empty struct and work with pointers to that struct. To ensure that converting to and from the NewType always requires an explicit cast, I added -Werror=int-conversion -Werror=incompatible-pointer-types to the compiler options. (I like this setting better in any case.)

I added asserts to main.c checking that HwObject has the same alignment and size as int. Hopefully this will prevent confusing bugs if that ever changes.
2020-12-31 07:36:00 +08:00
Dexter Chua 860974b646
Remove iodide specific code (#878)
Iodide is no longer actively maintained, and in any case it would make
more sense for iodide-specific code to belong to iodide.
2020-12-30 13:54:40 +08:00
Wei Ouyang 7d21442b30
Add pillow as a requirement of imageio (#976) 2020-12-30 10:38:56 +08:00
Tim Gates 3b534c3f85
docs: fix simple typo, convinience -> convenience (#975)
There is a small typo in pyodide_build/pywasmcross.py.

Should read `convenience` rather than `convinience`.
2020-12-30 09:42:35 +08:00
Dexter Chua 8588b0a4d6
Remove BINARYEN_METHOD flag (#966)
This has been removed since 1.38.23, and is always set to native-wasm
when we set WASM=1.

See https://github.com/emscripten-core/emscripten/pull/7836
2020-12-28 13:30:25 +08:00
Michael Greminger c20eb1eba1
DOC Update build dependencies (#965) 2020-12-28 09:17:47 +08:00
Dexter Chua 8b090b4f5c
Restore PYODIDE_BASE_URL (#953)
A more permanent solution ought to be found, but CircleCI does not seem
to make it easy. This would make dev builds work for now.
2020-12-26 08:01:03 +01:00
Roman Yurchak 0d10cfaded
Release 0.16.1 (#950) 2020-12-25 22:05:54 +01:00
Dexter Chua bc8d17a374
CI Fix artifact upload (#948) 2020-12-25 09:46:57 +01:00
Dexter Chua 00d4d7eb2c
Fix CircleCI config (#946)
This incorporates two changes.

1. Since chrome tests are now much less flaky, we require chrome tests
   to pass before deploying.

2. Mark all jobs (except benchmark) as filters/tags/only: /.*/ so that
   they run on releases. This was previously causing the 1.16.0 release
   to not contain package builds.
2020-12-25 09:45:54 +01:00
Hood Chatham 43c4c27044
DOCS: "Service worker" ==> "Web worker" (#943)
A [service worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) is a special type of webworker that acts like a proxy webserver except it runs in the client. The correct term is [Web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
2020-12-25 09:44:33 +08:00
Roman Yurchak 47878173c1
Release v0.16.0 (#940) 2020-12-24 18:16:26 +01:00
Wei Ouyang 96159d4e60
Add zarr and numcodecs (#938) 2020-12-24 18:15:35 +01:00
Hood Chatham 298d07ac99
Enable monkey patching of eval_code and find_imports (#941) 2020-12-24 18:14:49 +01:00
Roman Yurchak 052f7f0bb4
Fix documentation build (#939) 2020-12-24 11:39:48 +01:00
Roman Yurchak f6cdc1ba4d
DOC Update release notes for v0.16.0 (#813) 2020-12-24 11:31:35 +01:00
Hood Chatham 25de6bd9d3
Improvements to eval_code (#876) 2020-12-24 09:53:45 +01:00
Dexter Chua 3973641fb7
FIX Don't list C libraries as dependencies in packages.json (#931)
Fixes #930
2020-12-24 09:38:54 +01:00
Nicolas Ollinger 04ca90747f
modifiy MEMFS timestamp handling to support better caching (#893) 2020-12-24 09:34:02 +01:00
Wei Ouyang bcc3996a0d
PKG Add imageio (#919) 2020-12-24 08:26:26 +01:00
Hood Chatham bb604b367c
Raise Exceptions when js2python is applied to javascript errors (#891) 2020-12-23 21:38:35 +01:00
Hood Chatham dfc509f1f1
Added fatal error messages to main (#929) 2020-12-23 17:09:18 +01:00
Dexter Chua 8de2ed1202
Build C libraries via buildall.py (#927)
This addresses part of #713, by listing and building C libraries as
dependencies. This means we automatically build CLAPACK when needed, and
`lxml`'s C dependencies are not built if lxml is not. In particular,
building "core" should now be faster.

The building itself is still performed by Makefile.
2020-12-23 14:24:32 +01:00
Hood Chatham 12a86812d9
Added "apply-lints" recipe to Makefile that modifies files in place to apply lints. (#925) 2020-12-23 11:05:58 +01:00
Hood Chatham 41592637e6
MAINT Internal improvements to hiwire (#920) 2020-12-23 00:49:53 +01:00
Dexter Chua 2669317112
STY Fix pyodide.js formatting (#914)
The missing semicolon confuses clang-format
2020-12-22 14:33:23 +01:00
Roman Yurchak ce96a51d38
Create a pyodide-py package (#909) 2020-12-22 08:47:22 +01:00
Dexter Chua 3f6a8e2fad
TST Fix dyncall test name (#913) 2020-12-22 08:46:09 +01:00
Dexter Chua 108c613a28
Add tests for dyncall_so patch (#908) 2020-12-22 11:25:07 +08:00
Dexter Chua 3f9062adf7
Update binaryen version_86 (#910) 2020-12-22 11:24:51 +08:00
Roman Yurchak d341645015
BLD Enable ccache for x86_64 (#882) 2020-12-21 11:27:33 +01:00
Hood Chatham de700f0424
DOC Minor updates to docs configuration (#873) 2020-12-21 10:52:33 +01:00
Hood Chatham 9d978f0e54
DOC Remove incorrect getattr limitation from docs (#899) 2020-12-21 10:08:09 +01:00
Dexter Chua 9472852450
Update to emscripten 1.38.44 (#906) 2020-12-21 13:00:05 +08:00
Dexter Chua 77b2a99697
Test emsdk patches (#905) 2020-12-21 11:20:11 +08:00
Hood Chatham 93e547a2b5
Reorganized type conversions tests into separate files (#898) 2020-12-20 20:00:14 +01:00