From a4c15c00de335bb1c0583c4fcb6275e5ac93e600 Mon Sep 17 00:00:00 2001 From: Sameer Puri Date: Thu, 26 Mar 2026 18:32:37 +0000 Subject: [PATCH] Downgrade cryptography, fixes micropip failure Prior to this, these web pages fail to load with `ValueError: Can't find a pure Python 3 wheel for 'cryptography>=44.0.3; platform_system == "Emscripten"'.` --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 601c3367..53ab6ed8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dependencies = [ # Pyodide bundles a version of cryptography that is built for wasm, which may not match the # versions available on PyPI. Relax the version requirement since it's better than being # completely unable to import the package in case of version mismatch. - "cryptography >= 44.0.3; platform_system=='Emscripten'", + "cryptography >= 39.0.0; platform_system=='Emscripten'", # Android wheels for cryptography are not yet available on PyPI, so chaquopy uses # the builds from https://chaquo.com/pypi-13.1/cryptography/. But these are not regually # updated. Relax the version requirement since it's better than being completely unable