Commit Graph

58 Commits

Author SHA1 Message Date
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
casatir 5f8e226d6a
PKG Upgrade matplotlib to v3.3.3 (#886) 2020-12-20 10:37:05 +01:00
Roman Yurchak fc5495ffdb
Update to Python 3.8.2 (#712)
* Updating to CPython 3.8

* More fixes

* Skip python headers check in tools/dependency-check.sh

* Fix checksum

* Fix packages

* Fix syntax error

* Fix benchmark path

* Update CPython tests

* More test fixes

* Fix PyStone

* More Cpython test fixes

* Update docs

* Fix issue in conftest

* Add documentation

* Upload updated Docker image
2020-07-07 16:21:33 +02:00
Roman Yurchak 9afc7a1617
STY Apply black for code style (#702)
* Apply black

* A few fixes

* Relax flake8 checks

* Exclude tools/file_packager.py from black
2020-06-28 20:24:40 +02:00
Roman Yurchak e7dd4588ab
MNT Add pre-commit config (#698) 2020-06-27 14:57:48 +02:00
William Lachance 0ab5e8a67c More minor patches to python to accomodate Mac 2019-10-21 12:27:18 -04:00
Roman Yurchak 2cf8639973 MAINT Move package tests under packages/ dir (#471)
* Move package tests under the packages/ folder

* Fix tests
2019-06-19 14:26:08 -04:00
Michael Droettboom c8db5b6433
Fix #401: Better error message when using "import js" (#404)
* Fix #401: Use PEP 562 to make "import js" work

* Add docs

* Fix handling of missing attributes

* Add CHANGELOG

* Fix iodide import
2019-05-01 14:56:30 -04:00
Michael Droettboom 2f3a727eab Add test for wasm_backend. Fix PDF test. 2019-02-21 18:26:42 -05:00
Michael Droettboom 68de9439cd Fix matplotlib wasm backend after undefined attribute behavior changed 2019-02-21 18:09:16 -05:00
Madhur Tandon 48880c1631 Align the Figure and Buttons Toolbar to the center.
- Made the ``matplotlib figure`` align to the center of the body of the text.
- The buttons toolbar is now aligned to the center of the plot.
2019-02-02 15:49:45 +05:30
Madhur Tandon 8bcb07b0f9 Stylize the matplotlib widgets toolbar
Add style to matplotlib widgets
Add Color Change on Hover Functionality
Apply System Fonts to buttons with text
2019-01-16 22:43:19 +05:30
Madhur Tandon 0eb7592179 Add ``Humor Sans`` font for ``xkcd`` plots. 2019-01-06 23:43:10 +05:30
Michael Droettboom d7a85907cd Fix typo 2018-11-08 17:21:45 -05:00