Tools for submitting packages to Ubuntu Launchpad
Project description
Launchpad tools
Some tools for easy submission to launchpad.
Usage
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
CACHE="$HOME/.cache/repo/mixxx"
git -C "$CACHE" pull || git clone "https://github.com/mixxxdj/mixxx.git" "$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")"
CACHE="$HOME/.cache/repo/mixxx-debian"
git -C "$CACHE" pull || git clone "git://anonscm.debian.org/git/pkg-multimedia/mixxx.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 \
--update-patches
Installation
The launchpad tools are available from the Python Package Index, so for installation/upgrading simply do
pip3 install launchpadtools --user
License
The launchpadtools are published under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
launchpadtools-0.7.1.tar.gz
(8.4 kB
view hashes)
Built Distribution
Close
Hashes for launchpadtools-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58029eba56e69c087571b88bbd8b8ec968953becd9a3660f4f63d93dc1aec9ad |
|
MD5 | e28d5634b2b4739182c1f1eda5f3a189 |
|
BLAKE2b-256 | 53f55fb03597f913b6322ecd02b76801d78a5449f53df62b01939b6dff9595c9 |