Skip to content

Commit 1483a12

Browse files
authored
Merge pull request #196 from pyscript/pyodide-packages-guard
About latest Pyodide packages checks/guard
2 parents f2cd274 + dea7e9f commit 1483a12

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),
@@ -106,12 +115,12 @@ a custom version of the interpreter.
106115
The following two examples are equivalent:
107116

108117
```TOML title="Specify the interpreter version in TOML."
109-
interpreter = "0.23.4"
118+
interpreter = "0.29.0"
110119
```
111120

112121
```JSON title="Specify the interpreter version in JSON."
113122
{
114-
"interpreter": "0.23.4"
123+
"interpreter": "0.29.0"
115124
}
116125
```
117126

@@ -120,7 +129,7 @@ version of Pyodide as specified in the previous examples:
120129

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

0 commit comments

Comments
 (0)