Skip to main content

rbbuild

License: MIT

rbbuild is a suite of software engineering tools covering many important aspects of the whole product life-cycle. The suite comes with convenient user interfaces for various tasks:

  • Configuration and credential management for web services, including: Artifactory, Jira, Bitbucket, GitHub, FossID and SonarQube.
  • Easy-to-use CLI wrappers for different tools, e.g., package/dependency managers (uv, pip, npm, Conan), build tools (GCC, clang, MSVC, Python build), documentation tools (Sphinx, Pandoc), and test tools (CTest, PyTest). All provided interfaces aim at hiding complex mechanisms behind simple yet powerful command-lines, designed for the needs of developers and (automated) build users.
  • Integration of various toolchains (e.g., from an embedded SDK/BSP), allowing on-the-fly execution of build steps for different targets.
  • Profiles and Channels enable powerful configuration of projects on various levels, e.g., per user, per project, or per repository.

rbbuild is implemented in Python and supports Linux and Windows host systems (experimental support for MacOS).

Installation

Prerequisites

rbbuild requires Python 3.14 or newer. Install Python with the method of your choice, e.g., from python.org, with the package manager of your operating system, or with uv (uv python install).

rbbuild can be installed with any Python package installer, such as pip or uv. We recommend the use of uv.

If your organization provides package mirrors or a dedicated rbbuild installation guide, follow those instructions to configure your package installer.

Install rbbuild

Prepare a virtual environment

A venv (virtual environment) is a dedicated folder for your rbbuild installation. Multiple installations with different versions are possible. In this text, it is assumed that .cache/rbbuild is your rbbuild venv path.

Linux

uv venv ~/.cache/rbbuild
source ~/.cache/rbbuild/bin/activate

# To use rbbuild CLI programs outside a venv, update PATH permanently
echo 'export PATH=$HOME/.cache/rbbuild/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

Windows (PowerShell)

uv venv ~/.cache/rbbuild
~/.cache/rbbuild/Scripts/Activate.ps1

# To use rbbuild CLI programs outside a venv, update PATH permanently
[System.Environment]::SetEnvironmentVariable('PATH', "$([System.Environment]::GetEnvironmentVariable('PATH','User'));$env:USERPROFILE\.cache\rbbuild\Scripts", 'User')
$env:PATH += ";$HOME\.cache\rbbuild\Scripts"

User installation and update steps

Install rbbuild into the venv:

uv pip install rbbuild

To upgrade later, re-run the same command with --upgrade.

For full profile configuration details see rbbconf.md.

Developer setup: using rbbuild from git sources

If you are contributing to rbbuild itself, rbbuild needs to be installed in the so-called Development Mode. To do so:

  1. With a checked out rbbuild git repository, execute:
# Create and enter venv, if not already done
uv venv ~/.cache/rbbuild
source ~/.cache/rbbuild/bin/activate     # Linux
~/.cache/rbbuild/Scripts/Activate.ps1    # Windows PowerShell

cd ~/git/rbbuild                         # git source code path
uv pip install -e .[ui] --group dev
  1. To run the rbbuild test suite after setting up the developer environment, see Tests.

Usage

rbbuild covers the whole build workflow with a few short commands, whatever language and build system is used underneath:

rbbuild -g .         # scaffold a new project
rbbuild -FI          # fetch and install dependencies
rbbuild              # set up and build (same as rbbuild -sb)
rbbuild -T           # run tests and generate reports (test + coverage)
rbbuild --sca        # run static code analysis
rbbuild -p           # package the results
rbbuild --publish    # upload the packages to PyPI or Artifactory

The steps in the middle can be repeated as often as needed:

flowchart LR
    G["rbbuild -g<br/>scaffold"]
    F["rbbuild -FI<br/>dependencies"]
    P["rbbuild -p<br/>package"]
    U["rbbuild --publish<br/>PyPI / Artifactory"]

    subgraph dev ["Develop (repeat as needed)"]
        S["rbbuild -s<br/>setup"]
        B["rbbuild -b<br/>build"]
        T["rbbuild -T<br/>test"]
        A["rbbuild --sca<br/>analyze"]
    end

    G --> F
    F --> S
    S --> B
    B --> T
    T --> A
    A --> S
    A --> P
    P --> U

Each use case is available as a ready-to-run project with its own README in documentation/examples:

  • C/C++ with CMake: keep your plain CMakeLists.txt. Build, package and cross-compile with the same commands (rbbuild -t <toolchain>; rbbuild -l lists the toolchains of your profile). See basic-cpp, and zlib for building a third-party library from its upstream sources.
  • Python: build wheels and source distributions, even several wheels from one repository. See basic-python.
  • C and Python together: one rbbuild -sbp compiles the C code and packs it into a platform-specific wheel. See python-ctypes-c and python-cext-c.
  • Custom build scripts: run any script instead of a build system. See custom-build-scripts.
  • Dependencies: declare packages from channels or plain URLs in rbbuild.toml. rbbuild resolves the versions and reports conflicts.
  • SBOM and licenses: every package comes with a manifest.json and a CycloneDX SBOM. rbbuild --licenses shows the license information.

Tools

  • pkq: query channels and packages, compare versions, search reverse dependencies.
  • rbbuild-gui: graphical command center for browsing packages and editing dependencies and SBOM metadata.
  • rbfoss: FossID integration for OSS scans.
  • rbbconf: profiles, channels and service configuration.

License

The material in this repository is licensed under MIT License. Third-party licenses are available after packaging as machine-readable CycloneDX or manifest.json files in the build folder (obj).

A textual representation can be obtained via this call:

rbbuild --licenses

Use of GenAI

This repository contains code generated by GenAI:

  • GitHub Copilot Enterprise
  • Models: Claude Sonnet [4.6, 5, 5.5]

Authors and Maintainers

Authors and Maintainers of this repository are:

Further documentation

User manual

External pages

Metadata

Release files for rbbuild 6.0.3118.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rbbuild 6.0.3118.2
File Size Uploaded Provenance Actions
rbbuild-6.0.3118.2.tar.gz 236.7 kB Without provenance Details for rbbuild-6.0.3118.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rbbuild 6.0.3118.2
File Interpreter ABI Platform Actions
rbbuild-6.0.3118.2-py3-none-any.whl Python 3 none any Details for rbbuild-6.0.3118.2-py3-none-any.whl

Total release size: 552.2 kB

Release files / rbbuild-6.0.3118.2.tar.gz

Download URL rbbuild-6.0.3118.2.tar.gz
Size 236.7 kB
Tags Source
SHA-256 checksum
How to use checksums
73a72add37739096b8bce2aba926610708ce23eb6c0580a2280f6fc2398a384b
BLAKE2b-256 checksum
How to use checksums
8c880ce9a1b7ef3b826175533c058a559792f3b958ac694df6e5ff5f8538bc02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / rbbuild-6.0.3118.2-py3-none-any.whl

Download URL rbbuild-6.0.3118.2-py3-none-any.whl
Size 315.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b637fd34bc75a4ad106da49273f11a78a1b479a21055dbf8c8cce4cf2496f9c
BLAKE2b-256 checksum
How to use checksums
6bc5662a5f970a9b4d418d63963b5265e37648cac4de68be0d449493c0d6a0d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for rbbuild 6.0.3118.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.0.3118.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page