mirror of
https://github.com/lief-project/LIEF.git
synced 2026-10-12 02:17:46 +00:00
21 lines
534 B
Python
21 lines
534 B
Python
from __future__ import annotations
|
|
|
|
from collections.abc import Mapping
|
|
from typing import Any
|
|
|
|
from scikit_build_core._logging import rich_print
|
|
from setup import BINDING_DIR
|
|
from versioning import Versioning
|
|
|
|
|
|
def dynamic_metadata(
|
|
_settings: Mapping[str, Any],
|
|
_project: Mapping[str, Any],
|
|
) -> dict[str, Any]:
|
|
version = Versioning().get_version()
|
|
rich_print("{green}LIEF Version: {version}", version=version)
|
|
return {
|
|
"version": version,
|
|
"readme": (BINDING_DIR / "README.md").as_posix(),
|
|
}
|