mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
15 lines
478 B
Python
15 lines
478 B
Python
from __future__ import annotations
|
|
from pathlib import Path
|
|
from setup import ROOT_DIR
|
|
from versioning import Versioning
|
|
from scikit_build_core.settings.skbuild_read_settings import rich_print
|
|
|
|
def dynamic_metadata(field, config) -> str:
|
|
if field == "version":
|
|
version = Versioning().get_version()
|
|
rich_print(f"[green]LIEF Version: {version}")
|
|
return version
|
|
|
|
if field == "readme":
|
|
return (ROOT_DIR / "package" / "README.rst").as_posix()
|