Download src/version.py from red-hat-emerging-technologies/coding-agent-leaderboard: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/spaces/red-hat-emerging-technologies/coding-agent-leaderboard/resolve/main/src/version.py
- Command line
-
hf download hf://spaces/red-hat-emerging-technologies/coding-agent-leaderboard/src/version.py
-
curl -L -o version.py https://huggingface.co/spaces/red-hat-emerging-technologies/coding-agent-leaderboard/resolve/main/src/version.py
577 Bytes
| """Project version, sourced from the top-level ``VERSION`` file. | |
| ``VERSION`` is the single source of truth. Bump it in a PR (``make bump | |
| VERSION=X.Y.Z``); when the bump lands on ``main``, CI tags the merge commit | |
| ``vX.Y.Z`` and deploys it to the production HF Space (see README "Releasing"). | |
| """ | |
| from pathlib import Path | |
| VERSION_FILE = Path(__file__).resolve().parent.parent / "VERSION" | |
| def read_version() -> str: | |
| try: | |
| return VERSION_FILE.read_text(encoding="utf-8").strip() or "0.0.0" | |
| except OSError: | |
| return "0.0.0" | |
| __version__ = read_version() | |