Commit Graph

44 Commits

Author SHA1 Message Date
arfy slowy 196bf5eba9
MAINT remove unnecessary 'else' after return (#1716) 2021-07-16 11:37:48 +02:00
Hood Chatham 7e1c7ea180
Improve lifetime management for PyProxy attributes (#1636) 2021-07-10 15:05:29 -07:00
Hood Chatham c05c1cac78
Eliminate pyproxy leaks (#1616) 2021-06-07 09:23:47 +02:00
Hood Chatham 69d77194d8
ENH Use leading $ to distinguish shadowed PyProxy methods (#1604) 2021-06-05 19:13:40 +02:00
Hood Chatham d814aee3dd
Add support for pyproxy allocation tracing (#1606) 2021-05-28 23:19:32 +02:00
Hood Chatham 962140981a
API Don't expose pyodide as a global variable in loadPyodide (#1597) 2021-05-22 18:54:27 -07:00
Roman Yurchak 4e9d10833e
BLD Create an installable pyodide-build package (#1566) 2021-05-03 20:51:11 +02: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 ffa99153cc
API Remove loadPackagesFromImports from runPythonAsync (#1538) 2021-04-28 08:47:00 +02:00
Roman Yurchak 5a2f7d027f
MAINT Update to selenium 4.0.0.b3 (#1422) 2021-04-19 13:39:22 +02:00
Hood Chatham e5de0890b0
Improve console error handling, add console.html tests (#1480) 2021-04-18 07:28:21 -07:00
Hood Chatham 62829f45db
Use FinalizationRegistry for garbage collection when available (#1306) 2021-04-17 23:23:18 -07:00
Hood Chatham c5ecbb7d02
MAINT Improved Module.fatal_error (#1478) 2021-04-16 22:51:51 -07:00
Hood Chatham 4a722d4103
Add "wrong way" conversion functions (#1436) 2021-04-13 09:30:08 -07:00
Hood Chatham ed935df143
Add isPyProxy to public API (#1456) 2021-04-12 23:49:43 +02:00
Roman Yurchak f60320ab47
TST/CI test dependent selenium WebDriver timeout (#1441) 2021-04-08 09:01:51 +02:00
Roman Yurchak da8a17335d
MAINT Faster and more reliable WebWorker tests (#1404) 2021-04-02 09:07:25 +02:00
Hood Chatham 150c1f6b45
API Add "loadPyodide" function (#1363)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-04-01 00:43:46 +02:00
Hood Chatham f3dc9024f0
Apply lints suggested by lgtm.com (#1398) 2021-03-31 21:11:41 +02:00
Hood Chatham 8cdd45b0d8
Universally check for hiwire memory leaks in test suite (#1340) 2021-03-24 16:32:26 -07:00
Hood Chatham ccd0f1335b
DOC Implement autosummary for js autodoc, use autodocsumm for py autodoc (#1354) 2021-03-22 09:39:09 +01:00
Hood Chatham 6bc94372aa
Shorten pytest summary table test names (from #1340) (#1346) 2021-03-22 09:16:16 +01:00
Hood Chatham 9baffb6b7f
Use hypothesis to test string conversions between js and python (#1339)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2021-03-17 10:03:42 +01:00
Hood Chatham a31f0c4e39
ENH micropip: fetch instead of XMLHttpRequest, async functions (#1324)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>

and remove memory leaks
2021-03-14 11:30:54 +01:00
Hood Chatham 3c5db381cd
Rename deepCopyToJavascript -> toJs & rm shallowCopyToJavascript (#1231) 2021-02-11 22:02:15 +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
Dexter Chua 83a1d7b328
TST: Combine run_js_async and run_js (#1143) 2021-01-17 10:12:20 +01:00
Dexter Chua 293fefa7df
Don't print duplicate error message in chrome (#1144)
In chrome, the error message is contained in the stack. Avoid printing
it twice.
2021-01-16 13:50:40 +01:00
Dexter Chua d70c32e87a
TST Don't set stackTraceLimit twice (#1139)
We already set it during initialization
2021-01-15 10:41:36 +01:00
Hood Chatham 816aaa01ce
MAINT: Update conftest to check PyErr_Occurred (#1113) 2021-01-13 16:20:01 +08:00
Dexter Chua 65a9da04a3
Experimental new test system (#1047) 2021-01-11 18:25:55 +01:00
Dexter Chua 6ef0ebbfdf
Refactor conftest.py (#1055) 2021-01-06 23:29:10 +01:00
Hood Chatham 9eaf376b96
Detect pyodide.js failure in conftest.py (#995) 2021-01-04 14:16:28 +01:00
Hood Chatham eeaa3c3ecf
runPython refactoring (#923)
Co-authored-by: Dexter Chua <dec41@srcf.net>
2021-01-02 23:44:24 +01:00
Roman Yurchak 411a058d7b
TST Replace test CGI server with pytest-httpserver (#823) 2020-12-06 14:08:22 +01:00
Roman Yurchak 8c22c98a43
MAINT Reorganize src/ and tests/ folders (#786) 2020-11-09 13:28:02 +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 00ef8956f8
MAINT Remove pytest.ini (#664) 2020-05-18 21:22:48 +02:00
Roman Yurchak ac68a30511 Supporty custom wheel locations in micropip 2020-05-11 09:51:14 +02:00
Kevin Howell 402a30e59f
Increase the selenium timeout (#607)
I suspect this will fix recent PR failures that timeout on importing
statsmodels on Chrome.
2020-03-04 13:16:40 +01: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