Skip to main content

Tools for submitting packages to Ubuntu Launchpad

Project description

Launchpad tools

Build Status codecov Code style: black PyPi Version GitHub stars

Some tools for easy submission to launchpad.


All options are documented under launchpad-submit -h.

Sometimes, you may want to submit a source package with a Debian configuration that is available somewhere else. This may help setting up a nightly submission process. As an example, take the nightly submission script for a Mixxx PPA.

#!/bin/sh -ue

TMP_DIR=$(mktemp -d)
cleanup() { rm -rf "$TMP_DIR"; }
trap cleanup EXIT

git -C "$CACHE" pull || git clone "" "$CACHE"
git clone --shared "$CACHE" "$TMP_DIR"

VERSION=$(grep "define MIXXX_VERSION" "$TMP_DIR/src/defs_version.h" | sed "s/[^0-9]*\([0-9][\.0-9]*\).*/\1/")
FULL_VERSION="$VERSION~$(date +"%Y%m%d%H%M%S")"

git -C "$CACHE" pull || git clone "git://" "$CACHE"
rsync -a "$CACHE/debian" "$TMP_DIR"

launchpad-submit \
  --directory "$TMP_DIR" \
  --ubuntu-releases trusty xenial yakkety zesty \
  --ppa nschloe/mixxx-nightly \
  --version-override "$FULL_VERSION" \
  --version-append-hash \


The launchpad tools are available from the Python Package Index, so for installation/upgrading simply do

pip3 install launchpadtools --user


The launchpadtools are published under the MIT license.

Project details

Download files

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

Files for launchpadtools, version 0.7.1
Filename, size File type Python version Upload date Hashes
Filename, size launchpadtools-0.7.1-py2.py3-none-any.whl (9.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size launchpadtools-0.7.1.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page