Commit Graph

398 Commits

Author SHA1 Message Date
Michael Droettboom 44a5070e6a
Merge pull request #145 from mdboom/sequence-promises
Ensure that package loading runs in sequence
2018-09-08 12:35:12 -04:00
Michael Droettboom 3f11d15b7a LINT 2018-09-07 15:14:28 -04:00
Michael Droettboom 7f3027b6f4 Fix tests 2018-09-07 15:07:45 -04:00
Michael Droettboom 9836791bed LINT 2018-09-07 14:23:17 -04:00
Michael Droettboom 5bb8926467 Still get error messages out (through console) 2018-09-07 14:23:17 -04:00
Michael Droettboom 1bd19e3fe4 Ensure that package loading runs in sequence 2018-09-07 14:23:17 -04:00
Michael Droettboom af569129fc
Merge pull request #146 from rth/multi-line-code-snippets
MAINT Use multi-line code snippets in tests
2018-09-07 09:36:07 -04:00
Roman Yurchak d869ac5bfc Use multi-line code snippets in tests 2018-09-07 14:35:00 +02:00
Roman Yurchak 8c27b0b44b
Merge pull request #77 from mdboom/python37
Fix #71: Upgrade to Python 3.7
2018-09-07 10:06:14 +02:00
Michael Droettboom 35ee0eb9da Add additional tests not found in Python 3.6 2018-09-06 11:47:18 -04:00
Michael Droettboom 56562257ef Fix #71: Upgrade to Python 3.7 2018-09-06 10:56:33 -04:00
Michael Droettboom d4660f1a1f
Merge pull request #143 from rth/make_test_list.py
MAINT Fix and refactor tests/make_test_list.py
2018-09-06 10:53:23 -04:00
Roman Yurchak fb13af0497 Refactor tests/make_test_list.py 2018-09-06 14:34:55 +02:00
Roman Yurchak 4da3106ae8
Merge pull request #141 from mdboom/avoid-using-utf8tostring
Avoid using UTF8ToString
2018-09-06 07:52:45 +02:00
Michael Droettboom d29fa842b6 Use emscripten's AsciiToString 2018-09-05 16:04:30 -04:00
Roman Yurchak 063600d68c
Merge pull request #142 from mdboom/rename-function
MAINT: Rename python2js_int to _python2js
2018-09-05 20:04:08 +02:00
Michael Droettboom ef01fab649 MAINT: Rename python2js_int to _python2js
"int" meant "internal", but it's too easily confused with "integer"
2018-09-05 12:36:07 -04:00
Michael Droettboom c30315cfe1 Avoid using UTF8ToString
The only places we were using it was for strings that are ASCII anyway,
so this is both more efficient and avoids this Chrome bug:

https://bugs.chromium.org/p/chromium/issues/detail?id=868404
2018-09-05 12:33:55 -04:00
Michael Droettboom 56ee2e6856
Merge pull request #136 from rth/load-packages-multiple
Load multiple packages in pyodide.loadPackage
2018-09-05 08:04:26 -04:00
Michael Droettboom ac970e7448
Merge pull request #95 from rth/pytest-package
Package pytest
2018-09-05 08:02:04 -04:00
Roman Yurchak c14147b386 Document loading multiple packages 2018-09-05 11:28:20 +02:00
Roman Yurchak ed3e0c5499 TST Load multiple dependent and independent packages
Also remove the (failing) tests with simultaneous package loading
2018-09-04 17:02:50 +02:00
Michael Droettboom d43c6dcb43
Merge pull request #134 from thatneat/patch-1
`square` -> `cube` to avoid aliasing
2018-09-04 09:24:47 -04:00
Roman Yurchak 82a625641b Better tests when loading multiple packages 2018-09-03 15:59:21 +02:00
Roman Yurchak 82cd3e4576 Allow array input in pyodide.loadPackage 2018-09-03 15:23:54 +02:00
Roman Yurchak c9bc2f4473 Remove os.dup2 calls altogether 2018-09-03 14:20:31 +02:00
Roman Yurchak 86497e9818 Remove prints used for debugging 2018-09-03 10:29:36 +02:00
Roman Yurchak 4404274eef Package nose 2018-09-03 10:29:36 +02:00
Roman Yurchak 4dd93ca99a Testing pytest 2018-09-03 10:29:36 +02:00
Roman Yurchak 56597e2d5a Use NamedTemporaryFile in pytest 2018-09-03 10:29:36 +02:00
Roman Yurchak 5761705326 Remove six 2018-09-03 10:29:36 +02:00
Roman Yurchak c512d8237d Package setuptools 2018-09-03 10:29:36 +02:00
Roman Yurchak 42bdef2306 Package pytest dependencies 2018-09-03 10:29:36 +02:00
Roman Yurchak 58f73c3d79 Package pytest 2018-09-03 10:29:36 +02:00
thatneat 8c83cfa7f8
`square` -> `cube` to avoid aliasing
This makes for a clearer & more convincing demo since `square` was already defined on the Python side.
2018-09-01 07:09:54 -07:00
Michael Droettboom 79c97f8d51
Merge pull request #125 from rth/load_package_custom_url
Fix: Loading packages from custom URLs (part 1)
2018-08-29 11:05:13 -04:00
Roman Yurchak 2aa98eb6c5 Document loading packages from custom URLs 2018-08-29 15:03:45 +03:00
Roman Yurchak 11fcaf8da6 Throw error on invalid packages 2018-08-29 11:22:43 +03:00
Roman Yurchak c9d5ba3c8e Better logs when PyodideInited() or PackageLoaded() fails on Chrome 2018-08-28 18:24:48 +03:00
Roman Yurchak f35aa2eede More review comments 2018-08-28 17:59:13 +03:00
Roman Yurchak 5030eae5b7 Re-use built-in web server 2018-08-28 17:59:13 +03:00
Roman Yurchak ff45a550a6 Flake8 and store artefacts in CircleCI 2018-08-28 17:59:13 +03:00
Roman Yurchak 99772a9ac8 Case insensitive packages / URLs 2018-08-28 17:59:13 +03:00
Roman Yurchak 068906bbf7 Unit tests for loading packages from user defined URLs 2018-08-28 17:59:13 +03:00
Roman Yurchak b2156caa94 Loading packages from custom URLs 2018-08-28 17:58:56 +03:00
Roman Yurchak 2eeb42ebf1 Detect repeated loading of the same package from multiple URI 2018-08-28 17:58:56 +03:00
Roman Yurchak 4f665e0a3a Validate package URI 2018-08-28 17:58:56 +03:00
Roman Yurchak f50275335d Checking valid package name / url 2018-08-28 17:58:56 +03:00
Michael Droettboom b9f3eec925
Merge pull request #131 from rth/improve-testing-setup
Generate test resources with make all
2018-08-28 10:26:58 -04:00
Roman Yurchak bfd0e58631 Address review comments 2018-08-28 16:20:35 +03:00