ppa-dev-tools:improve-ppa-address-handling

Last commit made on 2022-10-20
Get this branch:
git clone -b improve-ppa-address-handling 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:
improve-ppa-address-handling
Repository:
lp:ppa-dev-tools

Recent commits

8b8bb77... by Bryce Harrington

README: Use formal ppa address in docs

With the recent fix, all the steps that were documented in README should
now work as written. However, using the formal ppa address is more
generally correct so should be preferred in the entry-level docs.

a9408a4... by Bryce Harrington

Add test case for get_ppa()

Move get_ppa() out of the cli script, into the ppa module itself, and
add a basic test case for it.

cda0f90... by Bryce Harrington

tests: Fix lint issue on asserts

These are builtins not functions

a4c5030... by Bryce Harrington

Fix use of default 'me' team to interpolate to current lp username

The default team name 'me' is recognized in the create command (via a
hack in PpaGroup's initializer) but wasn't recognized in other commands.

Now, do the detection and substitution in the config initializer, which
is then passed to all commands, thereby enabling all of them to
automatically make use of it. This allows the following to work,
by assuming the PPA lives in your own namespace:

  $ ppa create foobar
  $ ppa show foobar
  $ ppa destroy foobar

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

dc41bea... by Bryce Harrington

ppa: Allow http URLs to identify PPAs.

Allow most commands to accept a PPA's URL in addition to the formal
address or plain name. IOW all these should now be equivalent:

  $ ppa show bryce/ppa-dev-tools
  $ ppa show ppa:bryce/ppa-dev-tools
  $ ppa show https://launchpad.net/~bryce/+archive/ubuntu/ppa-dev-tools

dc677e0... by Bryce Harrington

ppa: Check for uppercase or non-ascii chars in ppa addresses

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

7b10b89... by Bryce Harrington

ppa: Disallow multiple /'s

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

97a4215... by Bryce Harrington

ppa: Test for undefined ppa names

e669d28... by Bryce Harrington

tests: Add testcase for ppa_address_split

9388a98... by Bryce Harrington

Cleanup code docs for ppa modules.

Also moves top level routines to after classes for consistency