Commit Graph

2217 Commits

Author SHA1 Message Date
Roman Yurchak 922d135c71
Enable codecov (#2871) 2022-07-15 09:41:15 +01:00
Roman Yurchak ebea82caff
Use CircleCI security context for S3 deployment (#2870) 2022-07-15 08:41:44 +01:00
Hanno Rein 0ce3b98d45
PKG Add REBOUND package (#2868)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jo Bovy <jo.bovy@gmail.com>
2022-07-15 09:15:16 +09:00
Gyeongjae Choi 5913f898cb
CI Add test summary on GHA (#2869) 2022-07-14 09:14:42 +09:00
Gyeongjae Choi b38e16b677
CI Remove package source files after build (#2862) 2022-07-13 17:30:58 +09:00
lukemarsden 521833b791
DOCS Fix nodefs example in file-system.md (#2867) 2022-07-13 08:53:55 +03:00
Jo Bovy 8642b09449
Add astropy tests (#2865)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-07-13 11:19:29 +09:00
Gyeongjae Choi 2f1c197007
CI Fix xbuildenv deploy (#2866) 2022-07-12 18:14:41 +09:00
Gyeongjae Choi 04d18ca671
TST Replace deprecated get_event_loop with asyncio.run (#2851) 2022-07-11 19:46:29 +09:00
Gyeongjae Choi 1fc2fc4256
CI Split up package test jobs (#2852)
This PR splits package test in CI so that no-numpy-dependents packages can be tested earlier. In detail, pytest will now save test results into its cache directory, and if --skip-passed option is given, it will skip previously successful tests.
2022-07-11 09:52:38 +09:00
Gyeongjae Choi 1b4b028993
BLD Ignore runtime lib flag on linking (#2848) 2022-07-10 12:11:03 +02:00
Hood Chatham ffd070a55e
0.21.0a3 (#2859) 2022-07-10 11:58:30 +02:00
Hood Chatham 88313f76d5
Change out of tree build entrypoint name from pywasm to pyodide (#2858) 2022-07-10 11:31:53 +02:00
Hood Chatham cdb457bf5b
Add xbuildenv to github releases (#2850)
This adds a step that generates an xbuildenv to the circleci CI and
deploys it to github releases when we make a release. I also updated
the url in download_xbuildenv to point to github releases.
2022-07-10 10:58:39 +02:00
Victor 3d28e35ade
Fix doc for building package with pyodide_build (#2854)
In the old instructions to build package it was written that you should
run pyodide_build buildall from the packages/<package-name> folder.
However, the command that comes next assumes you are in the root
(like the previous commands, i.e. to create the meta.yml template).
Fixed by removing the reference to the folder.
2022-07-08 07:57:42 -07:00
Ryan May c05b76273b
PKG Add PyProj (#2555)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-07-07 09:14:31 +09:00
Hood Chatham 03a05ab36d
Finish out of tree build system (except xbuildenv deploy) (#2823)
This completes the out of tree build CLI. This PR is paired up with:
numpy/numpy#21895
I have also successfully built scikit-learn, statsmodels, pandas, and
astropy with this.

The last thing we need to do after this is set up deployment of the
cross build environment. We can deploy one version to s3 for each
tagged commit. I will do that in a separate PR after this is merged.
2022-07-06 14:37:19 -07:00
Hood Chatham 1c1209bb51
Add tests to python-sat (#2834)
And update to 0.1.7.dev19 to fix a bug
2022-07-06 14:34:22 -07:00
Antonio Cuni 245aa72554
Refactor hiwire.[ch] to divide functions declarations into better groups (#2847)
The functions inside `hiwire.h` and `hiwire.c` were defined in some inconsistent order. This PR shuffle things around so that they are clearly divided into multiple groups, one for each "namespace" (in the C sense):
- `hiwire_*`
- `JsObject_*`
- `JsArray_*`
- `JsString_*`
- `JsMap_*`
- `JaString_*`

This makes it easier to navigate inside the file, and will make it easier to add future functions "at the right place".
2022-07-06 09:42:43 -07:00
Szymswiat 2e842d0fb8
Update error-stack-parser package (#2843) 2022-07-06 08:33:24 +02:00
Hood Chatham 14d10e203a
Move invalidate_caches to the end of micropip.install (#2844) 2022-07-06 08:32:45 +02:00
pre-commit-ci[bot] d8ae3cd1e0
[pre-commit.ci] pre-commit autoupdate (#2836)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-04 15:06:00 -07:00
Hood Chatham e8380e97ea
Use big list of naughty strings to test string conversions (#2830) 2022-07-04 11:33:22 -07:00
Hood Chatham 686426ab39
Respect symbol visibility in export calculation (#2821)
We shouldn't export symbols with `__attribute__((visibility("hidden")))`. Numpy has
a test to check that symbols with this attribute aren't exported. This fixes that test.
2022-07-04 11:32:36 -07:00
Gyeongjae Choi 9fbb2972eb
Remove freetype and png from the main module (#2813) 2022-07-04 09:11:55 +02:00
Gyeongjae Choi 7d7b7e899d
TST Make `pyodide-test-runner` installable (#2742) 2022-07-04 09:07:01 +02:00
Jo Bovy bfd364b28b
Upgrade galpy to v1.8.0 (#2835) 2022-07-04 11:26:29 +09:00
pre-commit-ci[bot] 3c1c899084
[pre-commit.ci] pre-commit autoupdate (#2797)
updates:
- [github.com/hadialqattan/pycln: v1.3.3 → v1.3.5](https://github.com/hadialqattan/pycln/compare/v1.3.3...v1.3.5)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-04 09:01:18 +09:00
Hood Chatham b905fcb172
Move numcodecs build environment vars into meta.yaml file (#2833) 2022-07-03 06:41:32 -07:00
Hood Chatham 76a7334eb7
Remove scikit-learn omp patch (#2832) 2022-07-02 21:47:07 -07:00
Hood Chatham c27e481d25
Remove cython patches for scikit-learn and statsmodels (#2831)
These do not seem to be needed anymore.
2022-07-02 19:50:38 -07:00
John Wason 3b5dc92ac6
Add basic RobotRaconteur tests (#2826)
This PR adds a couple basic sanity tests for the Robot Raconteur package.
2022-07-02 19:15:42 -07:00
Hood Chatham 61c062f5aa
Remove replace_libs (#2822)
We don't use this feature anymore.
2022-07-02 06:53:16 -07:00
Hood Chatham b0a28579bf
Fix pywasmcross when pyodide_build is installed out of tree (#2824)
Symlinking cc to pywasmcross.py only works if pywasmcross.py has
execute permissions. When we install the package with pip, it will not
set execute permissions on pywasmcross.py. It does set execute flags
on entrypoints. Thus, define an entrypoint called _pywasmcross which
calls pywasmcross.main. If a script called _pywasmcross exists, we are
using an out-of-tree install so symlink cc to _pywasmcross. Otherwise,
we should be in tree and pywasmcross.py should have the execute flag
set, so symlink cc to pywasmcross.py.

On the other side, if __main__.__file__ is in a folder named pyodide_build
or bin we are being invoked normally, otherwise we are being invoked via
a symlink.
2022-07-01 22:00:27 -07:00
Gyeongjae Choi e7ad0ce944
Fix GHA timeout on firefox test (#2820)
For some reason, the recent playwright-python update (v.1.23.0)
made this test slower on firefox, which results in a CI timeout.
2022-07-01 21:59:14 -07:00
Hood Chatham 52287a179d
More work on create_xbuildenv to allow building numpy (#2811)
This is more WIP on create_xbuildenv. I am including some of the WASM_LIB_DIR
but not all of it to keep size in check. The current cross build environment that we
would upload/download is 20mb.

To use this, we need an extra CLI entrypoint which I am working on.
2022-07-01 11:20:45 -07:00
Hood Chatham b485100b42
Update numpy to v1.23.0 (#2819) 2022-07-01 07:13:36 -07:00
Gyeongjae Choi 6ca76fb725
Drop deprecated APIs (#2817) 2022-07-01 16:57:15 +09:00
Hood Chatham c5636c02a1
Add type annotations to many functions (#2810) 2022-06-29 23:08:46 -07:00
Gyeongjae Choi 5935e5c7f9
Add sqlite3 binary to the docker image (#2807) 2022-06-30 13:22:03 +09:00
Hood Chatham 207bd9252e
Package: add termcolor (#2809)
Termcolor doesn't have a wheel on pypi and doesn't look very maintained.
It is used by pytest-sugar.
2022-06-29 20:32:13 -07:00
Hood Chatham a7d7cd51b5
Add test coverage for bool(JsProxy) and fix some cases (#2803)
Resolves #2802 and several other oddities in the behavior of bool.
2022-06-29 20:30:24 -07:00
Hood Chatham 9b7693a95a
ENH Pass pywasmcross environment more carefully (#2738)
This is on top of #2734. Other build environments cannot be trusted to pass our
environment variables down #2736. We store key variables into a json file in a 
temporary directory with the symlinks. If these variables are not in `os.environ`
we load them from disk.

In addition to the added generality, this also has the advantage that it makes it 
much easier to debug specific compiler invocations from the build script because
the environment is stored to disk (that is, if we override the deletion of the
temporary directory by manually adjusting the code).
2022-06-29 17:52:09 -07:00
Hood Chatham 1ffe2af2fa
Add pytest-benchmark (#2799) 2022-06-29 10:47:01 -07:00
Hood Chatham f209485eda
Fix some details in the debug build (#2804) 2022-06-29 08:52:32 +09:00
Hood Chatham 5fd96f9b27
Try again with deploying debug version (#2801)
I guess there has to be some trial and error with these. Since we
can't link `pyodide.asm.js` in the deploy docker image, we do it in
a separate step after `build-packages`. Because we have hard
coded `dist` everywhere, it's a little bit awkward building into
`dist-debug`. I do some rearrangements with `cp` and `mv` to hack
around this.
2022-06-28 10:16:23 -07:00
Hood Chatham 516364e468
Move more functions into submodules of pyodide (#2790)
This resolves #2689.
2022-06-28 06:31:58 -07:00
Hood Chatham 46d75f3272
Deploy a debug version of Pyodide to the CDN (#2800) 2022-06-28 08:04:55 +02:00
Hood Chatham 49807b699c
ENH Add flag to run bash script in cross build environment (#2734)
This script will run with the target environment variables and
sysconfigdata and with the pywasmcross compiler symlinks.
Any changes to the environment will persist to the main build
step but will not be seen in the post step (or anything else
done outside of the cross build environment). The working
directory for this script is the source directory.
2022-06-27 21:05:53 -07:00
Hood Chatham 61ef0813ad
Micropip: Improve error message when attempting to load wheel with wrong platform (#2783)
If the wheel is an Emscripten wheel of the wrong version, give the expected
 version and the wheel version. Otherwise, complain about platform mismatch.
2022-06-27 20:59:53 -07:00