Skip to content

Commit

Permalink
Add possible abi version to lock info
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed May 21, 2024
1 parent a090a04 commit e8ad2f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyodide_lock/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class InfoSpec(BaseModel):
platform: str
version: str
python: str
abi_version: str | None = None
model_config = ConfigDict(extra="forbid")


Expand Down
2 changes: 1 addition & 1 deletion pyodide_lock/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8ad2f5

Please sign in to comment.