Remove pyodide-interrupts (#2309)

This commit is contained in:
Hood Chatham 2022-03-24 12:58:04 -07:00 committed by GitHub
parent cf61487526
commit 818dfe4a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 36 deletions

View File

@ -28,6 +28,10 @@ substitutions:
suite, but none seem to be simple linker errors.
{pr}`2289`
- Removed pyodide-interrupts. If you were using this for some reason, use
{any}`setInterruptBuffer <pyodide.setInterruptBuffer>` instead.
{pr}`2309`
### Uncategorized
- {{Fix}} Fix importing pyodide with ESM syntax in a module type web worker.
@ -61,12 +65,13 @@ substitutions:
{pr}`2178`
- {{Enhancement}} When Pyodide is loaded as an ES6 module, no global
`loadPyodide` variable is created (instead, it should be accessed as an
attribute on the module).
{any}`loadPyodide <globalThis.loadPyodide>` variable is created (instead, it
should be accessed as an attribute on the module).
{pr}`2249`
- {{Breaking}} Removed the `skip-host` key from the `meta.yaml` format. If
needed, install a host copy of the package with pip instead. {pr}`2256`
needed, install a host copy of the package with pip instead.
{pr}`2256`
- {{ Update }} Pyodide now runs Python 3.10.2.
{pr}`2225`
@ -80,7 +85,7 @@ substitutions:
{pr}`2283`
- {{Enhancement}} It is no longer necessary to provide `indexURL` to
`loadPyodide`.
{any}`loadPyodide <globalThis.loadPyodide>`.
{pr}`2292`
- {{ Enhancement }} Added robust handling for non-`Error` objects thrown by
@ -89,10 +94,9 @@ substitutions:
throws something else.
{pr}`2294`
- {{ Breaking }} The `globals` argument to `runPython` and `runPythonAsync` is
now passed as a named argument. The old usage still works with a deprecation
warning.
{pr}`2300`
- {{ Breaking }} The `globals` argument to {any}`runPython <pyodide.runPython>`
and {any}`runPythonAsync <pyodide.runPythonAsync>` is now passed as a named
argument. The old usage still works with a deprecation warning. {pr}`2300`
- {{ Enhancement }} Updated to Emscripten 2.0.27.
{pr}`1102`

View File

@ -1,11 +0,0 @@
package:
name: pyodide-interrupts
version: 0.1.1
source:
url: https://files.pythonhosted.org/packages/b1/c2/918c52e47bf91570d9883a1c761c4d78a59cf4d1d8f8c67c25a4e164ff87/pyodide-interrupts-0.1.1.tar.gz
sha256: b85bc38b92cd5c35dd1a5192a71495abe4cd57eadccfacbc0421fb44fb6c9e74
test:
imports:
- pyodide_interrupts

View File

@ -1,17 +0,0 @@
def test_pyodide_interrupts(selenium):
selenium.load_package("pyodide-interrupts")
selenium.run("from pyodide_interrupts import check_interrupts")
assert (
selenium.run(
"x = 0\n"
"def callback():\n"
" global x\n"
" print('check')\n"
" x += 1\n"
"with check_interrupts(callback, 10):\n"
" for i in range(50):\n"
" print(i, end=',')\n"
"x"
)
== 11
)