Skip to main content

Gentoo Build Publisher Command-Line Interface

Project description

CLI for Gentoo Build Publisher

asciicast

Introduction

This is a command-line interface for Gentoo Build Publisher, a system that combines Gentoo Linux and CI/CD so that updating a Gentoo predictable and consistent.

This is a pip-installable Python package:

$ pip install gbpcli

Usage

The full command set supported:

usage: Command-line interface to Gentoo Build Publisher

Commands:

  * build - Schedule a build for the given machine in CI/CD
  * diff - Handler for subcommand
  * inspect - Show the machines builds as a tree
  * keep - Keep (or release) a build
  * latest - Show the latest build number for a machine
  * list - List a machine's builds
  * logs - Show build logs
  * machines - List machines with builds
  * notes - Show, search, and edit build notes
  * packages - List a build's packages
  * publish - Publish a build
  * pull - Pull a build
  * status - Show build details
  * tag - Add tags builds

positional arguments:
  {build,diff,inspect,keep,latest,list,logs,machines,notes,packages,publish,pull,status,tag}

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --url URL             GBP url
  --color WHEN          color output
  --my-machines MY_MACHINES

The URL for the Gentoo Build Publisher may be provided via the command line or by using the BUILD_PUBLISHER_URL environment variable.

To list the machines which have builds:

https://raw.githubusercontent.com/enku/gbpcli/master/assets/gbp_machines.png

The "Latest" column shows the latest build ID for the given machine. If the ID is in bold it that denotes that the latest build is published (available for emerges).

To list the available builds for a given machine:

https://raw.githubusercontent.com/enku/gbpcli/master/assets/gbp_list.png

In the above example, the P output for build 150 signifies that this build is currently published. The * flag means that the respective build has new binary packages. The K for build 64 means that the build is marked for keeping and will not be removed during the purge process. Build 2 has also been given a "first" tag. The N flag for build 151 means that the build has a note attached.

https://raw.githubusercontent.com/enku/gbpcli/master/assets/gbp_status.png

Edit/delete build notes using the gbp notes command.

The status subcommand displays metadata about a given build. If the build number is not given, it defaults to the latest build for that machine.

The diff subcommand display differences between two build.

https://raw.githubusercontent.com/enku/gbpcli/master/assets/gbp_diff.png

If the second build number is not given, it defaults to the latest build for that machine. If the first build number is not given, it defaults to the published build for that machine.

The publish subcommand makes the given build available for syncing and updating/downgrading.

$ gbp publish arm64-base 151

If the build nubmer is not given, it defaults to the latest build for that machine.

The build subcommand can schedule a build in CI/CD for the given machine, e.g.:

$ gbp build babette

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

gbpcli-1.5.1.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gbpcli-1.5.1-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file gbpcli-1.5.1.tar.gz.

File metadata

  • Download URL: gbpcli-1.5.1.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for gbpcli-1.5.1.tar.gz
Algorithm Hash digest
SHA256 40b2b64678660d947bdee2fe3ce7f769090343c35ddddb8f7941c2146222f70d
MD5 0853ffae2b266ae7351cfebd7c8e77d0
BLAKE2b-256 256255eedbae906efaa7391f8fde5491c38849717de32ba0dd4c52e7a209ed80

See more details on using hashes here.

File details

Details for the file gbpcli-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: gbpcli-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for gbpcli-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1b3309e667d495d01cf27c50506a21d89ac541c9f3eb99f0799672e46447352
MD5 bcf1ab9a9620fffb13d65a0d09c7eb90
BLAKE2b-256 242ee6da49c52b9811bc5e8f49efc029901e1898cd240dbe8673e806cfded4b0

See more details on using hashes here.

Supported by

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