From dc4512367e5dab91c4b5a39a202cd40b0985d88a Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Tue, 21 May 2024 07:18:54 -0400 Subject: [PATCH] Add possible abi version to lock info --- pyodide_lock/spec.py | 1 + pyodide_lock/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyodide_lock/spec.py b/pyodide_lock/spec.py index 9fdafa4..542fe1f 100644 --- a/pyodide_lock/spec.py +++ b/pyodide_lock/spec.py @@ -10,6 +10,7 @@ class InfoSpec(BaseModel): platform: str version: str python: str + abi_version: str | None = None model_config = ConfigDict(extra="forbid") diff --git a/pyodide_lock/utils.py b/pyodide_lock/utils.py index 95b53fa..b783a6a 100644 --- a/pyodide_lock/utils.py +++ b/pyodide_lock/utils.py @@ -103,7 +103,7 @@ def _generate_package_hash(full_path: Path) -> str: def _get_marker_environment( - platform: str, version: str, arch: str, python: str + platform: str, version: str, arch: str, python: str, abi_version: str | None = None ) -> dict[str, str]: """ Get the marker environment for this pyodide-lock file. If running