Skip to content

Commit dea7e9f

Browse files
committed
About latest Pyodide packages checks/guard
1 parent 8106690 commit dea7e9f

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

docs/user-guide/configuration.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ reference it from the tag used to specify the Python code:
5757
If you use JSON, you can make it the value of the `config` attribute:
5858

5959
```HTML title="JSON as the value of the config attribute."
60-
<script type="mpy" src="main.py" config='{"packages":["arrr", "numberwang"]}'></script>
60+
<script type="py" src="main.py" config='{"packages":["arrr", "numberwang"]}'></script>
6161
```
6262

6363
For historical and convenience reasons we still support the inline
@@ -81,6 +81,15 @@ _single_ `<py-config>` or `<mpy-config>` tag in your HTML document:
8181
with [`py-game`](../pygame-ce) or [`py-editor`](../editor). For these use the config
8282
attribute method.
8383

84+
!!! warning
85+
86+
Starting from PyScript 2025.10.1 the config guards against incompatible or not
87+
available packages related to the current Pyodide version.
88+
89+
There is an ongoing effort to make chosing packages in Pyodide way more helpful
90+
than it has ever been but right now be aware if a non existent package for a
91+
specific Pyodide version cannot be found an error will be thrown.
92+
8493
## Options
8594

8695
There are five core options ([`interpreter`](#interpreter), [`files`](#files),
@@ -105,12 +114,12 @@ a custom version of the interpreter.
105114
The following two examples are equivalent:
106115

107116
```TOML title="Specify the interpreter version in TOML."
108-
interpreter = "0.23.4"
117+
interpreter = "0.29.0"
109118
```
110119

111120
```JSON title="Specify the interpreter version in JSON."
112121
{
113-
"interpreter": "0.23.4"
122+
"interpreter": "0.29.0"
114123
}
115124
```
116125

@@ -119,7 +128,7 @@ version of Pyodide as specified in the previous examples:
119128

120129
```JSON title="Specify the interpreter via a fully qualified URL."
121130
{
122-
"interpreter": "https://cdn.jsdelivr.net/pyodide/v0.23.4/full/pyodide.mjs"
131+
"interpreter": "https://cdn.jsdelivr.net/pyodide/v0.29.0/full/pyodide.mjs"
123132
}
124133
```
125134

0 commit comments

Comments
 (0)