ppa-dev-tools:fix-lp-credentials

Last commit made on 2022-09-13
Get this branch:
git clone -b fix-lp-credentials https://git.launchpad.net/ppa-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information

Name:
fix-lp-credentials
Repository:
lp:ppa-dev-tools

Recent commits

9eb1873... by Bryce Harrington

ppa: Improve handling of missing leading ppa:

Gracefully handle the simple case of user omitting the leading ppa: in
the ppa argument, if there is at least one / in it. E.g. make this
work:

     $ ppa wait paelzer/lp-1975764-dpdk-mre-sept-2022

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/1989079

639f536... by Bryce Harrington

ppa: Improve handling of invalid ppa formats

Instead of dumping a backtrace when incorrect ppa ID's are given, print
out a distinct error message and then print usage information.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/1989084

eb5868f... by Bryce Harrington

ppa: Improve error handling and return behavior

Introduces a PpaDoesNotExist exception and uses it to improve error
handling for missing PPAs. Return values are refactored and documented
for better consistency/predictability.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/1989080

83abe01... by Bryce Harrington

ppa_group: Fix typo in code docs

25a3b4b... by Bryce Harrington

lp: Drop use of xdg

Let Launchpad use default settings for the credentials_file, which has
the side effect of allowing it to be shared with other Launchpad-using
tools.

Dropping this also allows dropping the only use of python3-xdg, so we
can drop that as well. Since there's nothing else included in Config we
can similarly drop that class and all associated test code.

Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/1983056
Fixes: https://bugs.launchpad.net/ppa-dev-tools/+bug/1983858

de38c58... by Bryce Harrington

lp: Fix return value for ubuntu_active_series()

Instead of name strings, this is supposed to return distro_series objects

3d626b7... by Bryce Harrington

test_lp: Implement tests for Launchpad object

801f354... by Bryce Harrington

Add Results class and test

The result, subtest, and trigger modules can also be invoked as scripts:

    $ python3 -m ppa.result

These are intended to serve as simple smoketests.

f6d0a46... by Bryce Harrington

Add Subtest class and test

5ce23e2... by Bryce Harrington

Add Trigger class and test case