Skip to content

Commit 250c480

Browse files
author
Hood Chatham
authored
Release 0.18.0 (pyodide#1775)
1 parent cdd2db0 commit 250c480

File tree

14 files changed

+28
-28
lines changed

14 files changed

+28
-28
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
epub_exclude_files = ["search.html"]
126126

127127
if "READTHEDOCS" in os.environ:
128-
env = {"PYODIDE_BASE_URL": "https://cdn.jsdelivr.net/pyodide/dev/full/"}
128+
env = {"PYODIDE_BASE_URL": "https://cdn.jsdelivr.net/pyodide/v0.18.0/full/"}
129129
os.makedirs("_build/html", exist_ok=True)
130130
res = subprocess.check_output(
131131
["make", "-C", "..", "docs/_build/html/console.html"],

docs/development/building-from-sources.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ say `make minimal`.
101101

102102
## Environment variables
103103

104-
Following environment variables additionally impact the build,
104+
The following environment variables additionally impact the build:
105105

106106
- `PYODIDE_JOBS`: the `-j` option passed to the `emmake make` command when
107107
applicable for parallel compilation. Default: 3.
108108
- `PYODIDE_BASE_URL`: Base URL where Pyodide packages are deployed. It must end
109109
with a trailing `/`. Default: `./` to load Pyodide packages from the same
110110
base URL path as where `pyodide.js` is located. Example:
111-
`https://cdn.jsdelivr.net/pyodide/v0.17.0/full/`
111+
`https://cdn.jsdelivr.net/pyodide/v0.18.0/full/`
112112
- `EXTRA_CFLAGS` : Add extra compilation flags.
113113
- `EXTRA_LDFLAGS` : Add extra linker flags.
114114

docs/project/changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ substitutions:
1111

1212
# Change Log
1313

14-
## [Unreleased]
14+
## [0.18.0]
1515

1616
### General
1717

docs/usage/faq.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ In both cases, files need to be served with a web server and cannot be loaded fr
1717
## Why can't I load files from the local file system?
1818

1919
For security reasons Javascript in the browser is not allowed to load local data
20-
files. You need to serve them with a web-browser. Recently there is a
21-
[Native File System API](https://wicg.github.io/file-system-access/) supported in Chrome
22-
but not in Firefox.
23-
[There is a discussion about implementing it for Firefox here.](https://github.com/mozilla/standards-positions/issues/154)
20+
files. You need to serve them with a web-browser. There is a
21+
[File System API](https://wicg.github.io/file-system-access/) supported in Chrome
22+
but not in Firefox or Safari.
2423

2524
## How can I change the behavior of {any}`runPython <pyodide.runPython>` and {any}`runPythonAsync <pyodide.runPythonAsync>`?
2625

@@ -36,8 +35,7 @@ function runPython(code) {
3635
```
3736

3837
```javascript
39-
async function runPythonAsync(code, messageCallback, errorCallback) {
40-
await pyodide.loadPackagesFromImports(code, messageCallback, errorCallback);
38+
async function runPythonAsync(code) {
4139
let coroutine = pyodide.pyodide_py.eval_code_async(code, pyodide.globals);
4240
try {
4341
let result = await coroutine;

docs/usage/loading-packages.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ installs from PyPi.
129129
<body>
130130
<script
131131
type="text/javascript"
132-
src="https://cdn.jsdelivr.net/pyodide/dev/full/pyodide.js"
132+
src="https://cdn.jsdelivr.net/pyodide/v0.18.0/full/pyodide.js"
133133
></script>
134134
<script type="text/javascript">
135135
async function main() {
136136
let pyodide = await loadPyodide({
137-
indexURL: "https://cdn.jsdelivr.net/pyodide/dev/full/",
137+
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.18.0/full/",
138138
});
139139
await pyodide.loadPackage("micropip");
140140
await pyodide.runPythonAsync(`

docs/usage/quickstart.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Try Pyodide in a [REPL](https://pyodide.org/en/latest/console.html) directly in
1111
To include Pyodide in your project you can use the following CDN URL:
1212

1313
```{eval-rst}
14-
https://cdn.jsdelivr.net/pyodide/dev/full/pyodide.js
14+
https://cdn.jsdelivr.net/pyodide/v0.18.0/full/pyodide.js
1515
```
1616

1717
You can also download a release from [Github
@@ -24,7 +24,7 @@ and returns {js:mod}`the Pyodide top level namespace <pyodide>`.
2424

2525
```pyodide
2626
async function main() {
27-
let pyodide = await loadPyodide({ indexURL : "https://cdn.jsdelivr.net/pyodide/dev/full/" });
27+
let pyodide = await loadPyodide({ indexURL : "https://cdn.jsdelivr.net/pyodide/v0.18.0/full/" });
2828
// Pyodide is now ready to use...
2929
console.log(pyodide.runPython(`
3030
import sys
@@ -60,15 +60,15 @@ Create and save a test `index.html` page with the following contents:
6060
<!DOCTYPE html>
6161
<html>
6262
<head>
63-
<script src="https://cdn.jsdelivr.net/pyodide/dev/full/pyodide.js"></script>
63+
<script src="https://cdn.jsdelivr.net/pyodide/v0.18.0/full/pyodide.js"></script>
6464
</head>
6565
<body>
6666
Pyodide test page <br>
6767
Open your browser console to see Pyodide output
6868
<script type="text/javascript">
6969
async function main(){
7070
let pyodide = await loadPyodide({
71-
indexURL : "https://cdn.jsdelivr.net/pyodide/dev/full/"
71+
indexURL : "https://cdn.jsdelivr.net/pyodide/v0.18.0/full/"
7272
});
7373
console.log(pyodide.runPython(`
7474
import sys
@@ -88,7 +88,7 @@ Create and save a test `index.html` page with the following contents:
8888
<!DOCTYPE html>
8989
<html>
9090
<head>
91-
<script src="https://cdn.jsdelivr.net/pyodide/dev/full/pyodide.js"></script>
91+
<script src="https://cdn.jsdelivr.net/pyodide/v0.18.0/full/pyodide.js"></script>
9292
</head>
9393

9494
<body>
@@ -115,7 +115,7 @@ Create and save a test `index.html` page with the following contents:
115115
// init Pyodide
116116
async function main() {
117117
let pyodide = await loadPyodide({
118-
indexURL: "https://cdn.jsdelivr.net/pyodide/dev/full/",
118+
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.18.0/full/",
119119
});
120120
output.value += "Ready!\n";
121121
return pyodide;

docs/usage/webworker.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ shown below:
105105
// Setup your project to serve `py-worker.js`. You should also serve
106106
// `pyodide.js`, and all its associated `.asm.js`, `.data`, `.json`,
107107
// and `.wasm` files as well:
108-
importScripts("https://cdn.jsdelivr.net/pyodide/dev/full/pyodide.js");
108+
importScripts("https://cdn.jsdelivr.net/pyodide/v0.18.0/full/pyodide.js");
109109

110110
async function loadPyodideAndPackages() {
111111
self.pyodide = await loadPyodide({
112-
indexURL: "https://cdn.jsdelivr.net/pyodide/dev/full/",
112+
indexURL: "https://cdn.jsdelivr.net/pyodide/v0.18.0/full/",
113113
});
114114
await self.pyodide.loadPackage(["numpy", "pytz"]);
115115
}

packages/soupsieve/meta.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ source:
55
sha256: 052774848f448cf19c7e959adf5566904d525f33a3f8b6ba6f6f8f26ec7de0cc
66
url: https://files.pythonhosted.org/packages/c8/3f/e71d92e90771ac2d69986aa0e81cf0dfda6271e8483698f4847b861dd449/soupsieve-2.2.1.tar.gz
77
# The following creates a dependency cycle and causes an infinite recurse in
8-
# buildall. For 0.17.0 release, we are using a temporary hack.
8+
# buildall. We handle beautifulsoup4 & soupsieve as a special case in
9+
# pyodide-build
10+
911
# requirements:
1012
# run:
1113
# - beautifulsoup4

pyodide-build/pyodide_build/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def _parse_package_subset(query: Optional[str]) -> Optional[Set[str]]:
1919
return None
2020
packages = {el.strip() for el in query.split(",")}
2121
packages.update(["pyparsing", "packaging", "micropip"])
22-
# Hack for 0.17.0 release
23-
# TODO: FIXME!!
22+
# Hack to deal with the circular dependence between soupsieve and
23+
# beautifulsoup4
2424
if "beautifulsoup4" in packages:
2525
packages.add("soupsieve")
2626
packages.discard("")

pyodide-build/setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyodide-build
3-
version = 0.18.0dev0
3+
version = 0.18.0
44
author = Pyodide developers
55
description = "Tools for building Pyodide"
66
long_description = file: README.md

run_docker

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PYODIDE_IMAGE_REPO="pyodide"
44
PYODIDE_IMAGE_TAG="19"
5-
PYODIDE_PREBUILT_IMAGE_TAG="0.17.0"
5+
PYODIDE_PREBUILT_IMAGE_TAG="0.18.0"
66
DEFAULT_PYODIDE_DOCKER_IMAGE="${PYODIDE_IMAGE_REPO}/pyodide-env:${PYODIDE_IMAGE_TAG}"
77
DEFAULT_PYODIDE_SYSTEM_PORT="none"
88
DOCKER_COMMAND="/bin/bash"

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ markers =
77
driver_timeout: Set script timeout in WebDriver
88

99
[bumpversion]
10-
current_version = 0.16.1
10+
current_version = 0.18.0
1111
commit = True
1212
tag = True
1313
tag_name = {new_version}

src/core/pyproxy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (globalThis.FinalizationRegistry) {
4343
// For some unclear reason this code screws up selenium FirefoxDriver. Works
4444
// fine in chrome and when I test it in browser. It seems to be sensitive to
4545
// changes that don't make a difference to the semantics.
46-
// TODO: after v0.17.0 release, fix selenium issues with this code.
46+
// TODO: after 0.18.0, fix selenium issues with this code.
4747
// Module.bufferFinalizationRegistry = new FinalizationRegistry((ptr) => {
4848
// try {
4949
// Module._PyBuffer_Release(ptr);

src/py/pyodide/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
asyncio.set_event_loop_policy(WebLoopPolicy())
3535

3636

37-
__version__ = "0.18.0dev0"
37+
__version__ = "0.18.0"
3838

3939
__all__ = [
4040
"open_url",

0 commit comments

Comments
 (0)