tlcconfig.version

Module Contents

Functions

Function

Description

get_version_from_pyproject

Get version from pyproject.toml.

get_version

Get the package version.

get_package_name

Get the package name.

get_git_revision

Get the git revision if available.

API

tlcconfig.version.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.

tlcconfig.version.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.

tlcconfig.version.get_package_name() str

Get the package name.

tlcconfig.version.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.