/schroot-build-package

An opinionated alternative of debian `sbuild` written in Python 📦 + 🐍 = 🌈 ✨

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

schroot-build-package

build License: GPL v3

This project is an opinionated alternative rewrite of sbuild with python.

✅ Installation

From PYPI (when it will be uploaded):

pip install schroot-build-package

From source:

pip install https+git://github.com/kiniou/schroot-build-package

⚙ Usage

Once installed, you'll be able to fire sbp in a command line which is a group of commands that'll help you to create build environment and build your packages:

Usage: sbp [OPTIONS] COMMAND [ARGS]...

  opinionated sbuild alternative

Options:
  -v, --verbose / --no-verbose  verbose logging
  -d, --debug / --no-debug      debug logging
  --help                        Show this message and exit.

Commands:
  build
  schroot  schroot related commands

👨‍💻 Hacking

If you want to hack this code and/or contribute with PR (❤), you can just fork this repository and use editable pip mode installation within a virtualenv:

  1. Create your python3 virtualenv:
$ python -m virtualenv -p $(which python3) .venv
  1. Activate your fresh virtualenv:
$ . .venv/bin/activate
  1. Install the project in editable mode:
(.venv) $ pip install -e .

Note that if you change some requirements, you'll need to update your virtualenv install as well:

pip install -U -e .

💡 If you need more dev tools (eg. ipython), extra packages can be installed with:

pip install -e ".[dev,testing]"