Commit Graph

387 Commits

Author SHA1 Message Date
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
Roman Yurchak 46c2aa9bf7 Fix clang-format linting 2018-08-28 15:30:11 +03:00
Roman Yurchak 153c6324b9 Copy test data in a pytest fixture 2018-08-28 14:42:14 +03:00
Michael Droettboom 5c3b2eaae9
Merge pull request #130 from rth/fix-build
MNT Fix clang-format linting in Circle CI
2018-08-27 14:33:54 -04:00
Roman Yurchak f15e13d3cd Use clang-format from emcc/clang 2018-08-27 20:20:23 +03:00
Michael Droettboom 94c0ab349f
Merge pull request #116 from rth/parallel-circleci-tests
Running chrome and firefox tests in parallel Circle CI builds
2018-08-24 12:27:03 -04:00
Roman Yurchak ff6f7e3616 Better CircleCI workspace usage 2018-08-24 18:20:36 +03:00
Roman Yurchak 96f26596b3 Better Circle CI workflow 2018-08-24 14:40:51 +03:00
Michael Droettboom b2ea0ed40a
Merge pull request #127 from mdboom/use-results-of-install
Install to a directory, and use that, instead of just the build/lib...
2018-08-23 16:10:17 -04:00
Michael Droettboom 30e82a2d86 Add patch 2018-08-23 12:06:14 -04:00
Michael Droettboom b66d698414 Install to a directory, and use that, instead of just the build/lib... 2018-08-23 11:59:33 -04:00
Michael Droettboom 56ef3a0960
Merge pull request #123 from mdboom/no-full-paths
Don't include full paths in build products
2018-08-22 13:54:52 -04:00