Commit Graph

217 Commits

Author SHA1 Message Date
Dexter Chua 4ae245855d
Install uglifyjs and lessc via npm (#1002)
The installation is very fast, and this avoids having two copies of node
around. In particular, this avoids the need to monkey-patch uglify-js to
use the system node.

This can be further streamlined when #792 is merged
2021-01-01 23:43:48 +08:00
Dexter Chua 27e2800120
Use upstream file packager instead of fork (#991) 2021-01-01 08:48:28 +01:00
Hood Chatham ba2d394d96
Support relative URLs in micropip (#872)
Co-authored-by: Dexter Chua <dec41@srcf.net>
2020-12-31 18:55:27 +01:00
Dexter Chua c4548db3c0
DOC Update docs for iodide code removal (#981) 2020-12-31 13:23:03 +01:00
Michael Greminger c20eb1eba1
DOC Update build dependencies (#965) 2020-12-28 09:17:47 +08:00
Roman Yurchak 0d10cfaded
Release 0.16.1 (#950) 2020-12-25 22:05:54 +01:00
Hood Chatham 43c4c27044
DOCS: "Service worker" ==> "Web worker" (#943)
A [service worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) is a special type of webworker that acts like a proxy webserver except it runs in the client. The correct term is [Web worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
2020-12-25 09:44:33 +08:00
Roman Yurchak 47878173c1
Release v0.16.0 (#940) 2020-12-24 18:16:26 +01:00
Wei Ouyang 96159d4e60
Add zarr and numcodecs (#938) 2020-12-24 18:15:35 +01:00
Hood Chatham 298d07ac99
Enable monkey patching of eval_code and find_imports (#941) 2020-12-24 18:14:49 +01:00
Roman Yurchak f6cdc1ba4d
DOC Update release notes for v0.16.0 (#813) 2020-12-24 11:31:35 +01:00
Hood Chatham 25de6bd9d3
Improvements to eval_code (#876) 2020-12-24 09:53:45 +01:00
Wei Ouyang bcc3996a0d
PKG Add imageio (#919) 2020-12-24 08:26:26 +01:00
Hood Chatham bb604b367c
Raise Exceptions when js2python is applied to javascript errors (#891) 2020-12-23 21:38:35 +01:00
Dexter Chua 8de2ed1202
Build C libraries via buildall.py (#927)
This addresses part of #713, by listing and building C libraries as
dependencies. This means we automatically build CLAPACK when needed, and
`lxml`'s C dependencies are not built if lxml is not. In particular,
building "core" should now be faster.

The building itself is still performed by Makefile.
2020-12-23 14:24:32 +01:00
Roman Yurchak ce96a51d38
Create a pyodide-py package (#909) 2020-12-22 08:47:22 +01:00
Hood Chatham de700f0424
DOC Minor updates to docs configuration (#873) 2020-12-21 10:52:33 +01:00
Hood Chatham 9d978f0e54
DOC Remove incorrect getattr limitation from docs (#899) 2020-12-21 10:08:09 +01:00
casatir 5f8e226d6a
PKG Upgrade matplotlib to v3.3.3 (#886) 2020-12-20 10:37:05 +01:00
Roman Yurchak 641ce219b8
Use PYODIDE_BASE_URL for the deployment location (#855) 2020-12-18 13:23:45 +01:00
mojighahar 1cae0208e3
DOC fix typo on using_pyodide_from_javascript.md (#871) 2020-12-16 21:05:11 +01:00
Nicolas Ollinger 3a06f5dfcb
add pillow package (#861) 2020-12-15 10:18:39 +01:00
Dexter Chua a012a6677b
Add pyodide-interrupt package (#852) 2020-12-14 09:16:13 +01:00
Dexter Chua 34026265fc
Remove lz4_c patch (#851) 2020-12-13 12:41:22 +01:00
casatir 349567c02e
FIX micropip not getting last version from PyPi (#846)
Co-authored-by: Romain Casati <romain.casati@webati.fr>
2020-12-12 11:47:01 +01:00
Dexter Chua f7511aed85
JS Don't write our own instantiateWasm code (#844) 2020-12-11 16:54:25 +01:00
Dexter Chua 861746a675
Build packages in parallel (#840) 2020-12-10 20:37:08 +01:00
Dexter Chua 81df4e24a7
Simplify Docker image (#815)
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-12-06 21:17:17 +01:00
Roman Yurchak 411a058d7b
TST Replace test CGI server with pytest-httpserver (#823) 2020-12-06 14:08:22 +01:00
Dexter Chua d67648a6b8
BLD Update package build script's default ldflags (#817) 2020-12-03 14:27:40 +01:00
Dexter Chua a7b1901775
DOC Update changelogs to reflect emscripten 1.38.34 (#818) 2020-12-03 10:41:26 +01:00
Dexter Chua 0e36e71053
Remove external dependencies from file_packager.py (#809) 2020-12-02 14:42:03 +01:00
Roman Yurchak f7adad7eb3
Upgrade to emscripten 1.38.34 with fastcomp (#480)
Co-authored-by: Dexter Chua <dec41@srcf.net>
2020-11-30 18:54:35 +01:00
Christian glacet 09d56a2d64
DOC Improve web worker documentation (#798) 2020-11-22 12:07:25 +01:00
Roman Yurchak 8c22c98a43
MAINT Reorganize src/ and tests/ folders (#786) 2020-11-09 13:28:02 +01:00
Michael Panchenko ca7f4e2e44
Docker image with prebuilt pyodide (#787) 2020-11-08 21:05:38 +01:00
Roman Yurchak 7d4fbe9d1a
DOC Add FAQ entry on detecting pyodide at run and build time (#790) 2020-11-07 12:21:54 +01:00
Roman Yurchak 7d566f3b22 DOC/CI Fix missing requirement in readthedocs build 2020-10-31 21:29:11 +01:00
Roman Yurchak f1cc304717
DOC Refactor API reference documentation (#782) 2020-10-31 21:00:58 +01:00
Roman Yurchak a260ea3bbf
DOC Refactor instructions for loading packages (#781) 2020-10-31 10:02:23 +01:00
Roman Yurchak 60dd0589da CI Fix docs dependencies 2020-10-30 21:56:14 +01:00
Roman Yurchak 7d168d05af
Use JsDelivr for distributing pyodide packages (#779) 2020-10-30 21:10:33 +01:00
Roman Yurchak 5ce2614a36
DOC/MAINT Use MyST markdown parser in the documentation (#778) 2020-10-30 21:09:25 +01:00
Roman Yurchak 950a574625
DOC Add pyodide logo (#777) 2020-10-29 23:38:32 +01:00
Aray Karjauv b08e460220
DOC Improve "Using Pyodide from Javascript" documentation (#767)
Co-authored-by: Aray <s0562411@htw-berlin.de>
2020-10-13 11:58:59 +02:00
Ram Rachum 39d4f5c860
DOC Fix dead link in using_pyodide_from_javascript.md (#765) 2020-09-30 09:55:12 +02:00
Roman Yurchak 8e2987bbf0
DOC Update changelog (#744) 2020-08-18 11:00:28 +02:00
Roman Yurchak 5cc20673be
MNT Add mypy setup in CI and pre-commit (#746) 2020-08-16 19:35:32 +02:00
Michael Greminger ad06577449
DOC Linux build doc updates (#730) 2020-07-22 20:36:45 +02:00
Roman Yurchak f2c92ad431
DOC Add FAQ about loading external python files (#727) 2020-07-14 11:29:58 +02:00
chigozienri c008957cb0
Docs cleanup (#726) 2020-07-13 21:46:20 +02:00
Roman Yurchak bcc4f6b521
MNT Clean-up root folder (#714)
* Move six

* Move jedi and parso

* Move lz4

* Move CLAPACK

* Move zlib and libxslt

* Move libiconv and libxml

* Remobe netlify/state.json and move remove_modules to cpython

* Move bumpversion.cfg to setup.cfg

* Reset cache

* Fix test_common.py
2020-07-08 16:58:10 +02: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 0e26ca0642
BLD Build CLAPACK, cpython and lz4 in parallel (#701) 2020-06-28 15:51:46 +02:00
Roman Yurchak e7dd4588ab
MNT Add pre-commit config (#698) 2020-06-27 14:57:48 +02:00
Roman Yurchak 94000642d5 Bump version: 0.14.3 → 0.15.0 2020-05-20 21:11:50 +02:00
Roman Yurchak 75bfc5ea9e Minor doc improvements and fixes of .bumpversion.cfg 2020-05-20 21:11:31 +02:00
Roman Yurchak dd4d788694
Update changelog, minor doc fixes and CDN URL updates (#668) 2020-05-20 18:58:43 +02:00
Roman Yurchak f2c4d63c89
DOC Improve README and documentation (#665) 2020-05-19 18:14:56 +02:00
Jan Max Meyer 93f184c6e5
Merge pull request #652 from rth/arbitrary-wheel-location
Support installing from URLs in micropip
2020-05-12 14:54:05 +02:00
Jan Max Meyer e8d2d82c1b
Merge pull request #645 from rth/partial-build
Support partial builds
2020-05-12 14:53:17 +02:00
Roman Yurchak b9a346e90f Improve docs 2020-05-11 10:38:27 +02:00
Roman Yurchak 467f08203e Better formulation 2020-05-11 10:34:34 +02:00
Roman Yurchak c7b96ef4da Fix typo 2020-05-11 10:30:25 +02:00
Roman Yurchak 76237050eb Add documentation 2020-05-11 10:06:33 +02:00
Roman Yurchak faee135865
Remove CORS proxy in micropip (#650) 2020-05-10 15:47:09 +02:00
Roman Yurchak f3f596f0c1 Do no build CLAPACK if PYODIDE_PACKAGES is defined 2020-05-09 12:40:35 +02:00
Roman Yurchak ac2435a607 Fix argparse nargs 2020-05-09 12:24:40 +02:00
Roman Yurchak 05cafc82dd Fix typo 2020-05-09 02:07:39 +02:00
Roman Yurchak ab6d0d9703 Add build-test-minimal CI job 2020-05-09 01:52:25 +02:00
Roman Yurchak 5ba82b81f9 Add mechanism to build a subset of packages 2020-05-09 01:28:44 +02:00
Simon Biggs c9fd3e1d57
DOC Complete example for using micropip (#412) 2020-05-08 23:22:33 +02:00
wi11yp b76c401c0b
DOC complete example of using Pyodide directly from JavaScript (#408)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
2020-03-25 12:29:38 +01:00
JP 1eb13f2629
Message callback (#612)
* rejig loadPackage message callbacks

* adjust to keep tests working

* console log the resolve message

* test loading after failure

* appease linter
2020-02-11 19:12:15 +05:30
William Lachance ef01e7039d Make mkpkg command more prominent in the docs (#567)
* Make mkpkg command more prominent in the docs

Under "adding new packages", information on the mkpkg command is
buried under "meta.yaml". To make it easier to find,
give this command its own section.

* Update docs/new_packages.md

Co-Authored-By: Michael Droettboom <mdboom@gmail.com>
2019-11-19 14:51:12 -05:00
Alon Burg b528ae7f18 DOC small fix to PyPI documentation (#523) 2019-09-24 10:52:02 +02:00
Rohan Chandra cb4a56d2f8 DOC Fix minor typo in code example (#488) 2019-07-16 08:43:13 +02:00
Jan Max Meyer e1af6fe57c ENH Make local package sources (path) available for meta.yaml (#324) 2019-07-08 20:37:22 +02:00
Carol Willing 9f4dceb812 Adds Sphinx documentation build (#474)
* create proof of concept

* add rtd config file

* edit config

* minor edits in rst files

* update config from proof of concept to prod

* add a bit more explanation to contents page

* Label markdown block as js to prevent Sphinx warning

* correct links warning in Sphinx

* fix typo
2019-06-22 18:22:38 -04:00
Michael Droettboom 6707647fa7 Update URL 2019-06-03 15:57:17 -04:00
Michael Droettboom 100e81f141
Update URL and document using Pyodide with Iodide (#455)
* Update URL and document using Pyodide with Iodide

* Update docs/using_pyodide_from_iodide.md

Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>

* Update docs/using_pyodide_from_iodide.md

Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
2019-06-03 15:46:14 -04:00
Michael Droettboom 0ca6505261 Update docs about Netlify. 2019-05-31 16:02:51 -04:00
Michael Droettboom 8f675bf063
Fix #422: Correct loadedPackage -> loadedPackages (#426)
Cc: @PythonLinks
2019-05-16 10:03:34 -04:00
Michael Droettboom c3c2f10bc5
Loading wheels from PyPI (#147)
* Add micropip

* Remove CORS proxy for metadata

* Update docs

* Support loading a mixture of built-in and PyPI packages
2019-05-03 13:43:31 -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
0xflotus 778bae8348 fixed asynchronously in the docs (#384) 2019-04-21 08:38:30 -04:00
Mike Lay a1095b8624 Fix typo in docs using from JavaScript
* Change *not* to *now*
2019-03-29 12:03:51 -07:00
Roman Yurchak 584c61edc9
Merge pull request #331 from mdboom/mkpkg
Add a mkpkg tool to make new packages.
2019-03-12 08:58:34 +01:00
Michael Droettboom 1b867058ab Add a mkpkg tool to make new packages. 2019-02-28 18:43:26 -05:00
Michael Droettboom d5493955d8 Fix #316: Add convenience function for converting from nested Arrays 2019-02-25 08:32:03 -05:00
Jason Stafford 7e7af7e919 docs changes as suggested by mdboom 2019-02-07 13:26:02 -08:00
Michael Droettboom 770cca23c0
Update docs/using_pyodide_from_webworker.md
Co-Authored-By: jstafford <jason.stafford@scrycollective.com>
2019-02-07 13:14:28 -08:00
Michael Droettboom 9e949d9665
Update docs/using_pyodide_from_webworker.md
Co-Authored-By: jstafford <jason.stafford@scrycollective.com>
2019-02-07 13:14:16 -08:00
Jason Stafford 2e1a266adc fix typos in documentation, expand section on loading modules, and add a section on caveats 2019-02-01 09:36:32 -08:00
Jason Stafford 38b2fdefca add documentation explaining how to use the webworker 2019-01-31 15:59:03 -08:00
Michael Droettboom 2a1cd61c0b Update docs about using Pyodide from Iodide. 2019-01-17 16:03:30 -05:00
Michael Droettboom 2d4732826a Add comments in PR 2018-12-19 16:28:39 -05:00
Michael Droettboom 090a8068ee
Update using_pyodide_from_javascript.md 2018-11-08 17:27:08 -05:00
Wei Ouyang 7e6d7cd414
fix languagePluginLoader 2018-11-08 14:25:33 +01:00
Roman Yurchak d9b590f518 Define build/skip_host meta.yaml option 2018-10-29 12:52:13 +01:00
Michael Droettboom d70f4833e1 Add a package-loading version of runPython 2018-10-09 18:56:43 -04:00
Michael Droettboom 64699f0b46
Use Javascript type names 2018-09-20 10:51:14 -04:00
Michael Droettboom 4d002b2c7b
Updates 2018-09-20 10:50:31 -04:00
Roman Yurchak 26d9bb5124 Add docs/api_reference.md 2018-09-20 16:04:23 +02:00
Michael Droettboom 56562257ef Fix #71: Upgrade to Python 3.7 2018-09-06 10:56:33 -04:00
Roman Yurchak c14147b386 Document loading multiple packages 2018-09-05 11:28:20 +02:00
Roman Yurchak 2aa98eb6c5 Document loading packages from custom URLs 2018-08-29 15:03:45 +03:00
Roman Yurchak 4e6abf67b5 Fix typo in new_packages 2018-08-06 18:31:20 +03:00
Roman Yurchak 4cdb390d3c DOC Indicate that only one checksum entry can be provided 2018-08-06 18:20:24 +03:00
Roman Yurchak a24a7fe5f8 Add support for sha256 checksum 2018-08-06 18:03:51 +03:00
Michael Droettboom 6ebe0863da Document these changes 2018-06-29 16:34:18 -04:00
Michael Droettboom 6b8f5e2727 Add a lot more jsproxy functionality 2018-06-25 16:55:35 -04:00
Michael Droettboom a4154d9669 Add destroy method to remove references to Python objects 2018-06-24 12:29:46 -04:00
Michael Droettboom 8f51f7795c More refinement of docs 2018-06-22 14:54:59 -04:00
Michael Droettboom f895392a8d Minor improvements. 2018-06-22 11:49:32 -04:00
Michael Droettboom 9fc27aff3d Add documentation for writing new packages 2018-06-22 11:09:07 -04:00
Michael Droettboom 3473768dba Add first round of user docs 2018-06-21 11:19:34 -04:00