Module zut.build

Build helpers: get information about Git repositories, transpile makrdown files.

Functions

compile_requirements([project, out])

Simple compilation of requirements.txt from pyproject.toml.

get_git_branch([repo])

get_git_ref_base_url([repo, ref, gitea])

Return the base remote URL of the source files of the currently checked-out Git repository, based on the tag or branch.

get_git_tag([repo, ...])

Return the first tag of the currently checked-out Git repository.

get_git_url([repo])

Return the HTTP(S) URL of the Git repository.

transpile_markdown(input, output, *[, links])

Transpile a Markdown file (typically for distribution on a web Git forge).