~cjwatson/launchpadlib:remove-py2

Last commit made on 2024-05-07
Get this branch:
git clone -b remove-py2 https://git.launchpad.net/~cjwatson/launchpadlib
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
remove-py2
Repository:
lp:~cjwatson/launchpadlib

Recent commits

49f266b... by Colin Watson

Remove mock dependency

Succeeded
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] tests:0 (build)
12 of 2 results
bcd20d9... by Colin Watson

Simplify coverage testing

We no longer need the more complex arrangements after dropping Python 2
support.

Succeeded
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] tests:0 (build)
12 of 2 results
0b5b426... by Colin Watson

Apply pyupgrade --py3-plus

f22d37e... by Colin Watson

Remove support for Python 2

I noticed that a number of the scripts in `contrib/` were Python-2-only,
so I did a basic untested port of those while I was here.

e436fed... by Jürgen Gmach

Add configuration file for Read the Docs

We need to align the Python version to the one used in
`.launchpad.yaml`, so CI works.

d28016c... by Colin Watson

.launchpad.yaml: Update snap property syntax

The list-of-names format is now deprecated.

Succeeded
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] tests:0 (build)
12 of 2 results
e1c429f... by Colin Watson

Release launchpadlib 1.11.0

ce8cee3... by Colin Watson

Fix handling of methods with no response representation

Some methods have no response representation defined in their WADL;
these return plain data rather than an entry or a collection. Don't
attempt to wrap the result of such fake methods in a `FakeResource`.

Succeeded
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] tests:0 (build)
12 of 2 results
a16d508... by Colin Watson

Allow sample data with links to other entries/collections

`FakeLaunchpad` allowed setting sample data with plain attributes of
entries, but it wasn't quite smart enough to support sample entries that
link to other entries or collections, which is often necessary when
testing `launchpadlib` clients in practice. It can handle this now.

Succeeded
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] tests:0 (build)
12 of 2 results
abef23b... by Colin Watson

Support fake methods that return None

`FakeLaunchpad` is useful for writing test suites for packages that use
`launchpadlib`. When trying to do so, I noticed a problem: attempting
to register a fake method that returns None caused a crash. Real
Launchpad webservice methods may return None, so fix this.

Succeeded
[SUCCEEDED] lint:0 (build)
[SUCCEEDED] tests:0 (build)
12 of 2 results