From e8ad2f54d5d47534d355ba697c654b7a45a3a594 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 --- CHANGELOG.md | 7 +++++++ pyodide_lock/spec.py | 1 + pyodide_lock/utils.py | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac5a6e..40b39ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [0.1.0a6] - 2024-04-03 + +### Added + +- The `info` field now contains an optional `abi_version`. + [#86](https://github.com/pyodide/pyodide-lock/pull/86) + ## [0.1.0a5] - 2024-04-03 ### Changed 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