Commit Graph

71 Commits

Author SHA1 Message Date
Hood Chatham 4774749070
FIX patch a bug in Emscripten that broke matplotlib (#4163) 2023-09-22 19:36:20 +09:00
Gyeongjae Choi b1256c0a22
Rename setup.py in coolprop (#4145)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-19 20:33:58 +09:00
Ralf Gommers 8b58984777
Update numpy to 1.25.2 (#4125) 2023-09-09 10:16:08 -07:00
Hood Chatham 9012711ba0
Run replace_so_abi_tags on out of tree builds (#3927) 2023-06-17 13:39:33 -07:00
Gyeongjae Choi d4bb0df3fa
Remove some build-only dependencies from meta.yaml (#3576) 2023-02-13 09:56:08 -08:00
Roman Yurchak 48258ff146
Replace isort, flake8, pycln and pyupgrade by ruff (#3522)
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2023-02-07 08:35:20 +09: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 48309e65db
Run make -C packages update-all (#3348)
Upgrade 75 packages. The following packages have not been upgraded
because of test failures:

* matplotlib
* packaging
* Pillow
* rebound
* reboundx
* xgboost
* yt
* zarr
2022-12-15 15:08:24 -08:00
Gyeongjae Choi 53d85a9bc2
MAINT Use run_in_pyodide in xgboost, opencv, and matplotlib tests (#3184) 2022-10-28 17:35:27 +09:00
Gyeongjae Choi edf175f013
TST Run package tests in Safari (#3095) 2022-09-14 09:13:53 +09:00
Roman Yurchak 4bbe60f8d3
Use matplotlib backends from matplotlib-pyodide (#3061) 2022-09-09 13:39:26 +02:00
Gyeongjae Choi 555f7828f4
Parse top-level import name from wheel file (#3006) 2022-09-06 15:20:04 +09:00
Roman Yurchak 62de53f5a8
Add build dependencies to meta.yaml (#2132)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
2022-08-22 13:35:27 +09:00
Gyeongjae Choi 9fbb2972eb
Remove freetype and png from the main module (#2813) 2022-07-04 09:11:55 +02: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 516364e468
Move more functions into submodules of pyodide (#2790)
This resolves #2689.
2022-06-28 06:31:58 -07:00
Gyeongjae Choi f9b1d84d6b
Bump matplotlib version to 3.5.2 (#2760)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2022-06-22 15:20:54 +09:00
Hood Chatham 1eab80ea40
MAINT Add pytest.mark.xfail_browsers and use it to reduce boilerplate (#2616)
Use a decorator to indicate which browsers we want to xfail test. 
This works for `run_in_pyodide` as well as normal tests.
2022-05-25 13:34:40 -07:00
Lester Fan 0fbbeb319e
Add browser API wrappers (#2456)
Adds Python wrappers for setTimeout, clearTimeout, setInterval, clearInterval, 
addEventListener and removeEventListener as described in #2430.
2022-05-12 20:10:10 -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
Hood Chatham 513919e6cf
Fix matplotlib event listeners (#2335) 2022-04-06 08:11:04 -07:00
Henry Schreiner 6f62a89d86
fix: better mypy coverage (#2339) 2022-04-01 21:58:54 +02:00
Gyeongjae Choi 63442defbc
Use uppercase for the package Pillow (#2278) 2022-03-16 07:54:16 -07:00
Gyeongjae Choi 5bd042f6f7
Refactor matplotlib tests (#2271)
* Fix dangling webdriver

* Embed humor sans font

* Refactor matplotlib testing codes

* Trigger CI

* Trigger CI

* Catch error when import from js fails

* Update changelog

* Apply suggestions from the review
2022-03-16 09:39:34 +09:00
Henry Schreiner 138c7a7a7c
chore: matplotlib 3.5.1, yt 4 (#2234)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2022-03-06 21:14:24 -08:00
Hood Chatham 913d706090
xfail draw_math_text (#2243) 2022-03-02 14:29:02 -08:00
Henry Schreiner 8d00451142
chore: enable the rest of flake8 & bugbear (#2216) 2022-02-27 12:39:53 -05:00
Madhur Tandon 869b1bb0c3
benchmark html5 canvas renderer (#2151)
* benchmark html5 canvas renderer

* adhere to lint

* rectify condition

* increase timeout

* do suggested changes

* adhere to lint

* use correct backend for benchmarks

* reintroduce tests + fix futures callback

* adhere to lint

* increase timeout for tests

* use selenium_standalone for tests

* increase timeout for check_comparison

* add result() to Future

* add debugging print statement

* adhere to lint

* use draw() instead of draw_idle()

* add new reference image for math text

* return NaN for non-native

* replace math text image for chrome as well

* increase timeout

* selenium standalone for benchmarks

* only matplotlib benchmarks

* re-enable benchmarks for numpy

* adhere to lint

* increase timeout
2022-02-24 18:51:24 +09:00
Henry Schreiner 66856a7427
MAINT isort (#2200) 2022-02-21 23:27:03 +01:00
Henry Schreiner ed22c06e07
chore: pyupgrade 3.9+ (#2195) 2022-02-20 17:13:37 -05:00
Hood Chatham 8323987b39
Use wheels instead of file_packager (#2027) 2022-01-23 17:47:04 -08:00
Hood Chatham 79c6688535
Run pyodide-build update-all (#2085) 2022-01-10 11:54:11 -08:00
Grimmer 89682dabfe
DOC Replace "Javascript" with "JavaScript" in documents and comments [skip ci] (#1860) 2021-09-29 10:01:53 +02:00
Hood Chatham f0bd568a31
Set up pytest node tests (#1717) 2021-07-20 10:48:27 +02:00
Madhur Tandon 738651ea10
Revive html5 <canvas> based renderer for matplotlib (#1579) 2021-06-27 08:36:14 -07:00
Hood Chatham c05c1cac78
Eliminate pyproxy leaks (#1616) 2021-06-07 09:23:47 +02:00
Guido Zuidhof 7384745fa4
Don't disable right click globally for matplotlib figures (#1555)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-06-06 10:12:26 +02:00
Hood Chatham b19e2762a8
MAINT Fix a few lgtm lints (#1602) 2021-05-23 08:37:40 -07:00
Roman Yurchak 263309102d
Unvendor distutils (#1543)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
2021-05-02 15:42:28 +02:00
Hood Chatham 2b54f453fa
Fix matplotlib backend (#1414) 2021-04-16 12:08:10 -07:00
Hood Chatham 8cdd45b0d8
Universally check for hiwire memory leaks in test suite (#1340) 2021-03-24 16:32:26 -07:00
joemarshall 1bd8380c01
Emscripten 2.0.12 Upstream backend (#1102)
Co-authored-by: Dexter Chua <dalcde@users.noreply.github.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-02-06 08:58:12 +01:00
Hood Chatham 503741ea48
PyProxy methods for iterators / iterables / generators (#1180) 2021-02-04 21:16:27 +01:00
Hood Chatham b3a965a1f6
Don't automatically copy python objects into javascript (#1167)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test

* Fix test_console

* Update changelog
2021-02-02 19:45:56 +01:00
Jan Max Meyer 81810a4c4b
Revert "Don't automatically copy python objects into javascript (#1152)" (#1165)
This reverts commit 6a44233562.
2021-01-22 18:22:31 +01:00
Hood Chatham 6a44233562
Don't automatically copy python objects into javascript (#1152)
* Don't automatically copy python objects into javascript, add new PyProxy.shallowCopyToJavascript and deepCopyToJavascript apis

* Lint

* Adjust conftest to automatically deep_copy results of run / run_async

* Update conftest again

* Fix deep/shallowCopyToJavascript

* Fix shallowCopyToJavascript and deepCopyToJavascript to return js object not hiwire id

* Fix the remaining tests (hopefully)

* Lint

* Fix more tests

* Fix some numpy tests

* Lint

* Fix more tests

* Lint

* Temporarily dummy out setLineDash since it breaks test
2021-01-22 12:28:22 +01:00
Hood Chatham 1f816eea9c
Remove `from js import iodide` from matplotlib wasm_backend (#1057) 2021-01-06 21:56:27 +01:00
Dexter Chua 81cc3015bb
Use replace-libs for matplotlib (#1037)
The library that is supplied by USE_PNG is png, but matplotlib seeks
png16. With the fastcomp backend, we end up ignoring it anyway, but with
the upstream backend this will be the correct course of action
2021-01-04 09:50:01 +01:00
Dexter Chua f6f5da1145
Create script to set emscripten env vars (#1013) 2021-01-03 12:25:14 +01:00
Dexter Chua 27e2800120
Use upstream file packager instead of fork (#991) 2021-01-01 08:48:28 +01:00