tlcconfig.version¶

Module Contents¶

Functions¶

Function

Description

get_git_revision

Get the git revision if available.

get_package_name

Get the package name.

get_version

Get the package version.

get_version_from_pyproject

Get version from pyproject.toml.

API¶

get_git_revision() str¶

Get the git revision if available.

During build, this file is overwritten by extract_pyproject_meta.py. For development, tries to get the git revision directly.

get_package_name() str¶

Get the package name.

get_version() str¶

Get the package version.

During build, this file is overwritten by extract_pyproject_meta.py. For installed packages, uses importlib.metadata. For development, falls back to reading pyproject.toml.

get_version_from_pyproject() str¶

Get version from pyproject.toml.

This is used as a fallback when running in development or installing from source. During build, this file is overwritten by extract_pyproject_meta.py.