Skip to main content

A wrapper for the Bazel build system that provides a curses GUI for persistent configuration.

Project description

Baz

A wrapper for bazel with a GUI for configuring arguments. Running baz -q opens a configuration gui where you can set persistent bazel settings by choosing from detected .bazelrc configs, and other bazel flags.

image

Baz stores persistent information in ~/.config/baz/. A unique config for each directory is generated and separate settings can be configured for multiple repositories. You can delete your configuration and start over at any time with baz -d.

Add baz to your path and use baz as you would use bazel.

Installation

Pypi

python3 -m pip install baz --user

If you haven't already, make sure scripts from your user site are accesible from PATH.

import site
site.USER_BASE # Prints something like `/home/username/.local/`

Take this path, and add to your ~/.bashrc as: export PATH='$PATH:/home/username/.local/bin/

Usage

baz --help

usage: baz.py [-h] [-e] [-p] [-q] [-d]

optional arguments:
  -h, --help            show this help message and exit
  -e, --emit-build-script
                        Emit a shell script to containing the raw Bazel build command, rather than executing it. This is useful for exporting vanilla Bazel build commands to people who do not have baz.
  -p, --print-build-settings
                        Prints the build settings configured for Baz.
  -q, --configure       Run the Baz configuration TUI.
  -d, --delete-configuration
                        Permenently delete the persistent configuration file.

Testing

Unit tests can be run with nosetests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baz-0.2.6.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

baz-0.2.6-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page