template_python.workflows

Utility script for GitHub workflows.

Functions

get_author_from_pyproject()

Get the author from pyproject.toml.

get_name_from_pyproject()

Get the name from pyproject.toml.

get_rst_prolog(keys, values)

Generate an RST prolog with the given keys and values.

get_version_from_pyproject()

Get the version from pyproject.toml.

get_version_from_uv_lock()

Get the version from uv.lock.

print_name_pyproject()

Run ci-pyproject-name to echo the name from pyproject.toml.

print_version_pyproject()

Run ci-pyproject-version to echo the version from pyproject.toml.

print_version_uv_lock()

Run ci-uv-lock-version to echo the version from uv.lock.

template_python.workflows.get_version_from_pyproject()[source]

Get the version from pyproject.toml.

Return type:

str

template_python.workflows.get_name_from_pyproject()[source]

Get the name from pyproject.toml.

Return type:

str

template_python.workflows.get_author_from_pyproject()[source]

Get the author from pyproject.toml.

Return type:

str

template_python.workflows.get_version_from_uv_lock()[source]

Get the version from uv.lock.

Return type:

str

template_python.workflows.get_rst_prolog(keys, values)[source]

Generate an RST prolog with the given keys and values.

Return type:

str

template_python.workflows.print_version_pyproject()[source]

Run ci-pyproject-version to echo the version from pyproject.toml.

Return type:

None

template_python.workflows.print_name_pyproject()[source]

Run ci-pyproject-name to echo the name from pyproject.toml.

Return type:

None

template_python.workflows.print_version_uv_lock()[source]

Run ci-uv-lock-version to echo the version from uv.lock.

Return type:

None