tuulbachs documentation¶
Low-level software tuuls, organized into drawers.
tuulbash¶
kickpy - A bash script intended to kick a Python script from an environment that doesn’t have an estabished Python environment yet. For example:
./kickpy.sh example.py
tuulcli¶
Tuuls for command line interface (CLI).
tuuldevops¶
Automation tuuls for common tasks around software development
pipeline_steps.py¶
Provide routines for outputting automated pipeline steps consistently
-
tuuldevops.pipeline_steps.
major_step
(title, description)¶ Output title and description of a major step in the pipeline
tuulgit¶
An opinionated set of Git tuuls.
check_clean.py¶
Check the Git working tree
-
tuulgit.check_clean.
is_clean_working_tree
()¶ Return a boolean indicating whether the Git working tree is clean or not
tag_commit.py¶
Git tag the commit on the current branch, only if the working tree is clean
-
tuulgit.tag_commit.
tag_current
(tag)¶ Git tag (annotated) the current commit from a clean working tree
Raises: TuulError – when the caller attempts to tag an unclean working tree or to use a tag that already exists on the repo
tuulpy¶
- subpResult.py - Run a command from Python and return the result. Example::
- python subpResult.py
tuulver¶
Parsing tuuls for a tuulbachs-formatted version YAML input file.
version.py¶
Utility functions for managing a tuulbachs-formatted version YAML file
-
tuulver.version.
bump_build
(filename)¶ Bump the “build” portion of the version from the input YAML filename
-
tuulver.version.
bump_major
(filename)¶ Bump the major portion of the version from the input YAML filename
-
tuulver.version.
bump_minor
(filename)¶ Bump the minor portion of the version from the input YAML filename
-
tuulver.version.
bump_patch
(filename)¶ Bump the patch portion of the version from the input YAML filename
-
tuulver.version.
bump_pre
(filename, prebase='pre')¶ Bump the “pre” portion of the version from the input YAML filename
-
tuulver.version.
emit_product_name
(filename)¶ Return the product name value from the input YAML filename
-
tuulver.version.
emit_version
(filename)¶ Return the version value from the input YAML filename
install¶
Note that tuulbachs is not yet published at PyPi.
- Set up and activate a Python virtual environment at the top level of this project
cd
to the localauto
directory./install_local.sh
deploy¶
Guidance about how to deploy updates to tuulbachs itself
- Follow install guidance
- Decide which type of semantic version upgrade this is (major, minor, patch, etc.)
- From
tuulver/version.py
, use the appropriatebump_*
function to update the version string inversion.yaml
- Commit the version change to Git
- From
tuuldevops/tag_current_version.py
, use thetag_product_version
function to properly tag this release - Push the Git update (including tags) to this repo’s remotes