From afb522ed59a08dc7edd0ae7935ec2999d55ed544 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Sun, 21 Mar 2021 19:03:09 +0100 Subject: [PATCH] Release 0.17.0a2 (#1356) --- .circleci/config.yml | 2 +- README.md | 2 +- docs/usage/loading-packages.md | 10 +++++----- docs/usage/quickstart.md | 10 +++++----- docs/usage/webworker.md | 4 ++-- run_docker | 2 +- src/pyodide-py/pyodide/__init__.py | 2 +- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 84c975567..b1e64b3c1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ defaults: &defaults environment: - EMSDK_NUM_CORES: 4 EMCC_CORES: 4 - PYODIDE_BASE_URL: https://cdn.jsdelivr.net/pyodide/dev/full/ + PYODIDE_BASE_URL: https://cdn.jsdelivr.net/pyodide/v0.17.0a2/full/ jobs: lint: diff --git a/README.md b/README.md index 48beb2eec..2ad7d2c6f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ browser**. ## Try Pyodide (no installation needed) -Try pyodide in [Python REPL](https://pyodide-cdn2.iodide.io/v0.16.1/full/console.html) directly in your +Try pyodide in [Python REPL](https://pyodide-cdn2.iodide.io/v0.17.0a2/full/console.html) directly in your browser. For further information, look through the [documentation](https://pyodide.org/). diff --git a/docs/usage/loading-packages.md b/docs/usage/loading-packages.md index 1b7e13608..16bba7da1 100644 --- a/docs/usage/loading-packages.md +++ b/docs/usage/loading-packages.md @@ -3,7 +3,7 @@ Only the Python standard library is available after importing Pyodide. To use other packages, you’ll need to load them using either: - - {any}`pyodide.loadPackage` for packages built with Pyodide, or + - {any}`pyodide.loadPackage` for packages built with Pyodide, or - {any}`micropip.install` for pure Python packages with wheels available on PyPi or from other URLs. @@ -13,8 +13,8 @@ which case it relies on {any}`pyodide.loadPackage`). ``` Alternatively you can run Python code without manually pre-loading packages. -You can do this with {any}`pyodide.runPythonAsync` -which will automatically download all packages that the code snippet imports. +You can do this with {any}`pyodide.runPythonAsync` +which will automatically download all packages that the code snippet imports. It only supports packages included in Pyodide (not on PyPi) at present. ## Loading packages with {any}`pyodide.loadPackage` @@ -113,9 +113,9 @@ a complete example would be, - + - + Pyodide test page
@@ -83,9 +83,9 @@ Create and save a test `index.html` page with the following contents: - + diff --git a/docs/usage/webworker.md b/docs/usage/webworker.md index 346915ed9..db8a0af1f 100644 --- a/docs/usage/webworker.md +++ b/docs/usage/webworker.md @@ -103,8 +103,8 @@ lines `pythonLoading = self.pyodide.loadPackage(['numpy', 'pytz'])` and // Setup your project to serve `py-worker.js`. You should also serve // `pyodide.js`, and all its associated `.asm.js`, `.data`, `.json`, // and `.wasm` files as well: -self.languagePluginUrl = 'https://cdn.jsdelivr.net/pyodide/v0.16.1/full/'; -importScripts('https://cdn.jsdelivr.net/pyodide/v0.16.1/full/pyodide.js'); +self.languagePluginUrl = 'https://cdn.jsdelivr.net/pyodide/v0.17.0a2/full/'; +importScripts('https://cdn.jsdelivr.net/pyodide/v0.17.0a2/full/pyodide.js'); let pythonLoading; async function loadPythonPackages(){ diff --git a/run_docker b/run_docker index 33c5d881f..af9e4f706 100755 --- a/run_docker +++ b/run_docker @@ -27,7 +27,7 @@ function error() { PYODIDE_IMAGE_TAG="12" -PYODIDE_PREBUILT_IMAGE_TAG="0.16.1" +PYODIDE_PREBUILT_IMAGE_TAG="0.17.0a2" DEFAULT_PYODIDE_DOCKER_IMAGE="iodide/pyodide-env:${PYODIDE_IMAGE_TAG}" DEFAULT_PYODIDE_SYSTEM_PORT="8000" diff --git a/src/pyodide-py/pyodide/__init__.py b/src/pyodide-py/pyodide/__init__.py index 2e3fb6dcf..a2d797391 100644 --- a/src/pyodide-py/pyodide/__init__.py +++ b/src/pyodide-py/pyodide/__init__.py @@ -15,7 +15,7 @@ if platform.system() == "Emscripten": asyncio.set_event_loop_policy(WebLoopPolicy()) -__version__ = "0.17.dev0" +__version__ = "0.17.0a2" __all__ = [ "open_url",