File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11# VARIABLE DEFINITIONS
22venv := " .venv"
33python_version := " 3.13"
4- run := " poetry run"
4+ run := " uv run"
55eval_path := " eval/cli.py"
66
77venv-exists := path_exists (venv)
Original file line number Diff line number Diff line change 11import logging
2+ from pathlib import Path
23
34import click
45from dotenv import load_dotenv
1213logger = logging .getLogger ("lightman" )
1314
1415
16+ def get_version () -> str :
17+ """Read version from VERSION file."""
18+ try :
19+ version_file = Path (__file__ ).resolve ().parents [2 ] / "VERSION"
20+ return version_file .read_text ().strip ()
21+ except FileNotFoundError :
22+ return "unknown"
23+
24+
1525@click .group ()
26+ @click .version_option (version = get_version (), prog_name = "lightman-ai" )
1627def entry_point () -> None :
1728 pass
1829
You can’t perform that action at this time.
0 commit comments