Commit Graph

50 Commits

Author SHA1 Message Date
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 79aa563f2c
DOC using conda for building from sources (Linux & Mac OS) (#3644)
Co-authored-by: Jo Bovy <jo.bovy@gmail.com>
2023-03-09 13:37:25 +01:00
Gyeongjae Choi 52c033af9f
CI Add MacOS build (#3602) 2023-03-08 21:22:59 +01:00
Roman Yurchak 09c86770aa
Remove linting CI job in GHA (#3631) 2023-03-04 21:07:13 +09:00
Christian Clauss f3bedc154a
MAINT: Upgrade the remaining GitHub Actions (#3622) 2023-03-02 14:49:39 +01:00
Gyeongjae Choi ed3ae1ba49
Download standard libraries in a zipfile (#3582) 2023-03-01 23:11:30 +01:00
Christian Clauss 2adbe0e9d7
Upgrade GitHub Actions (#3608) 2023-02-28 10:10:21 +09:00
Gyeongjae Choi 66812b8295
CI Show compressed size of main modules after build (#3526)
This adds a short helper script which shows a gzip and brotli compressed size of a file,
and uses it in CI to check compressed size of pyodide.asm.* after build in addition to
the original file size.
2023-02-03 21:25:38 -08:00
Gyeongjae Choi 328a9ffc34
Add tag key in meta.yaml spec (#3444)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2023-01-27 13:31:26 +09:00
Hood Chatham 5e26d9f1ae
Build libpyodide.a (#3335)
This is work towards unvendoring the Pyodide foreign function interface. 

Prior to this point, we included a large amount of critical functionality with `--pre-js`.
So we could create an archive called `libpyodide.a` with the object files but to use it
you would have to pass `--pre-js _pyodide.out.js` at link time. This embeds all of this
stuff in an object file called `pyodide_pre.o` which goes in our archive so you get all
the needed js runtime by linking it. 

Of course someone trying to use this still has to get the Python code onto the import
path, either using `--preload-file`, using Python to unpack it as a zip archive as we now
do, with zipimporter, or otherwise. They also will have to link `libpython.a` (is CPython
going to start distributing an Emscripten libpython?) and probably various other things.

We have to use a hack to inject the JavaScript code into the object files. The normal
`EM_JS` macro cannot handle arbitrary JavaScript code -- for example it fails with many
regex. Instead we manually generate write a C source file that does what we need using
`xxd`. The generated C code is similar to what `EM_JS` generates, but it uses an array
initializer rather than a string initializer for the characters avoiding the C preprocessor /
compiler's strange opinions about strings.
2023-01-26 17:22:05 -08:00
Hood Chatham 3b2952fc92
Python3.11 (#3252) 2023-01-23 19:45:59 -08:00
Roman Yurchak 3bc78d247c
Deploy pyodide-py in CI (#3356)
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-12-15 10:22:23 +01:00
Gyeongjae Choi d802fb3fdc
Remove pre-built docker image support (#3342) 2022-12-13 12:04:15 +09:00
Gyeongjae Choi 0c3545f06b
Unpin host Python patch versions in GHA (#3309) 2022-12-02 13:02:08 +09:00
Gyeongjae Choi d3b0d7f584
CI Move test-docs job to GHA (#3220) 2022-11-02 10:10:24 +01:00
Gyeongjae Choi 5e2688b37b
Bump docker image tag (#3221) 2022-11-02 16:25:27 +09:00
Gyeongjae Choi 25a341aab8
TST Fix jsexception test (#3202) 2022-10-25 10:31:38 +09:00
Gyeongjae Choi 318c60bf0a
Don't fail if codecov fails (#3188) 2022-10-18 17:22:41 +02:00
Gyeongjae Choi 50f46358c2
CI Fix PyPI deploy (#3139) 2022-09-21 17:27:55 +02:00
Hood Chatham a53bc5f571
Fix pypi deploy for patch releases (#3113) 2022-09-16 08:47:43 +02:00
Gyeongjae Choi 0333d1fa36
CI Fix pytest runtime option syntax (#3084) 2022-09-08 22:39:42 +09:00
Gyeongjae Choi 14708295cd
TST Fix location of the package import test file (#2926) 2022-08-04 10:05:30 +02:00
Roman Yurchak 2e7018acb7
Make GH sponsors more visible (#2936) 2022-08-04 08:43:50 +09:00
Roman Yurchak c85e00806b
MAINT Switch to pytest-pyodide (#2893)
Co-authored-by: ryanking13 <def6488@gmail.com>
2022-07-31 19:00:45 +09:00
Roman Yurchak 922d135c71
Enable codecov (#2871) 2022-07-15 09:41:15 +01:00
Gyeongjae Choi 5913f898cb
CI Add test summary on GHA (#2869) 2022-07-14 09:14:42 +09:00
Gyeongjae Choi 7d7b7e899d
TST Make `pyodide-test-runner` installable (#2742) 2022-07-04 09:07:01 +02: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
Gyeongjae Choi 5935e5c7f9
Add sqlite3 binary to the docker image (#2807) 2022-06-30 13:22:03 +09:00
Hood Chatham 598688eeba
Trigger pypi deploy from circleci (#2782) 2022-06-24 21:19:04 -07:00
Gyeongjae Choi 74a89826ce
TST Add Playwright for an auxiliary testing framework (#2091) 2022-05-31 08:17:47 +09:00
Roman Yurchak e05778e282
DOC Improve GH PR template (#2464)
[skip ci]
2022-05-03 17:38:55 -06: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
Gyeongjae Choi 1b094cf4e8
CI Disable log clipping in building docker images on GHA (#2356) 2022-04-05 18:06:39 +02:00
Hood Chatham 0e1e2ac01c
Python 3.10 (#2225) 2022-03-17 15:48:56 -07:00
Henry Schreiner 4f8b0a0344
chore: more pre-commit checking (#2257) 2022-03-07 21:51:20 -08:00
Henry Schreiner a725c6ce0f
chore: use GHA for linting (#2245)
* chore: use GHA for linting

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

* ci: always test even if lint fails
2022-03-04 11:12:12 +09:00
Gyeongjae Choi 525d1111b0
CI Improve docker tagging rules (#2168) 2022-02-14 18:34:13 +01:00
Gyeongjae Choi 54f6ba4d9a
Update Dockerfile to install latest browser versions (#2152)
* Update dockerfile and requirements.txt

* Temporarily use custom docker image

* Add build args for auto deployment

* Add missing build args

* Fix comment

* Temporarily disable the crashing test

* Change ARGS to ENV

* Use direct url instead of apt for chrome

* Support chrome versioning

* Update docker image

* Fix build args to env variables

* Revert to build args

* Unify version argument format

* Bring back the original CI image
2022-02-09 21:23:05 +09:00
Seungmin Kim 3f5a6aceda
Fix CI Pre-build docker image not deploying on tags (#2105) 2022-01-13 09:15:53 +01:00
Hood Chatham 1f4f3e2b85
MAINT Apply prettier to everything by default (#2095) 2022-01-10 13:47:59 -08:00
Roman Yurchak 5bc26a6650
CI Deploy pyodide-build to PyPi on releases (#2087) 2022-01-09 13:09:18 +01:00
Seungmin Kim 834f178673
Update GitHub Workflows Image Build and Support ghcr.io (#1995)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2022-01-07 00:47:30 +01:00
Gyeongjae Choi 18030795bb
Update description about checklists in PR template (#1964)
* Update description about checklists in PR template [skip ci]

* Apply suggestions from code review

Co-authored-by: Jan Max Meyer <jmm@phorward.de>
2021-11-16 03:18:42 +01:00
Gyeongjae Choi 856c6988ef
Add pull request template for Pyodide Github repository [skip ci] (#1925)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2021-11-05 22:17:01 +01:00
Gyeongjae Choi 3c9623a2e8
Add issue templates for Pyodide Github repository (#1915)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-11-04 11:55:13 +01:00
Roman Yurchak b205f8e6bd
DOC Add information about Open Source Collective (#1923)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2021-11-03 09:02:21 +01:00
Roman Yurchak 74c1d4aa9a
CI with Github Actions and conda (#1690) 2021-10-27 09:35:59 +02:00
Michael Panchenko ca7f4e2e44
Docker image with prebuilt pyodide (#787) 2020-11-08 21:05:38 +01:00