ppa-dev-tools:add_binary_package_module

Last commit made on 2023-03-27
Get this branch:
git clone -b add_binary_package_module 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:
add_binary_package_module
Repository:
lp:ppa-dev-tools

Recent commits

2a5048d... by Bryce Harrington

binary_package: Add module for the BinaryPackage class

The BinaryPackage class provides an interface for installation
dependencies and recommends.

03aadb2... by Bryce Harrington

repository: Cleanup lintian warnings

f779bcd... by Bryce Harrington

Add Suite class

Break the Suite class out of the repository module and complete its
implementation, including unit tests and a smoke test.

As previously, the smoke test expects to work on a local mirror of an
Apt repository. This can be created using the apt-mirror utility.

b17f9ff... by Bryce Harrington

repository: Standardize terminology for release-pockets to suites

5e6e04f... by Bryce Harrington

repository: Fix missing import for smoketest

81f0aeb... by Bryce Harrington

.pylintrc: Add config to ignore unhelpful import issues

6220373... by Bryce Harrington

create/set: Add support for --publish setting

The --publish/--no-publish parameters controls whether or not the PPA is
configured to allow packages to be downloaded once they've been
successfully built. With --no-publish, packages will still be
built (although not for private PPAs, for some reason).

c543114... by Bryce Harrington

tests: Override the archive in PersonMock to use ArchiveMock

In Launchpad, a Person (or Team) is used to construct an Archive (or
PPA). Since the unittest won't be communicating with Launchpad itself,
we need to replicate all these objects via mocks.

If we construct the ArchiveMock() only when requested in getPPAByName(),
then any changes made to it by the set command won't be persisted
anywhere, thus making it impossible to validate the settings we've
changed.

So, instead, the PersonMock forcibly redefines the archive property for
the Ppa class to return the ArchiveMock, thereby moving it to a deeper
level down where changes to it will be captured and persisted.

7ebd8ec... by Bryce Harrington

tests: Add unit tests for setting name and description

8208d21... by Bryce Harrington

ppa: Accept descriptions from command line via --description

The PPA description is taken preferentially from the --description
argument, if given, and read from stdin otherwise.