~mateus-morais/lazr.restfulclient:fix-python-3.12

Last commit made on 2023-12-06
Get this branch:
git clone -b fix-python-3.12 https://git.launchpad.net/~mateus-morais/lazr.restfulclient
Only Mateus Rodrigues de Morais can upload to this branch. If you are Mateus Rodrigues de Morais please log in for upload directions.

Branch merges

Branch information

Name:
fix-python-3.12
Repository:
lp:~mateus-morais/lazr.restfulclient

Recent commits

285acf5... by Mateus Rodrigues de Morais

Test for read_file before falling back to readfp using hasattr.

Since the fallback parameter in getattr() isn't lazily loaded, we get
an AttributeError when readfp() isn't available (e.g. Python 3.12).

With hasattr(), we are able to check for the presence of read_file().
If not there, we safely fallback to readfp() instead.

082d938... by Jürgen Gmach

Add configuration file for Read the Docs

40cdf45... by Colin Watson

Update pre-commit hooks

Includes fix for https://github.com/PyCQA/isort/issues/2077.

e69a2a1... by Colin Watson

Release lazr.restfulclient 0.14.5

de7d78b... by Colin Watson

Fix black pre-commit hook

We can't upgrade to black 22.3.0 since we still need to support Python 2
syntax, but this works around https://github.com/psf/black/issues/2964
in a different way.

f5e7daa... by Colin Watson

Fix HostedFile.open(mode="w") on Python 3

This failed because `value` is used to construct a `BytesIO`, so must be
bytes. Not tested here, but it'll be tested via the launchpadlib
doctests that are run as part of Launchpad once we get those working on
Python 3.

0b59e82... by Colin Watson

Run docs environment with python3

021247a... by Colin Watson

Use rST include directive rather than symlinks

7f61207... by Colin Watson

Apply pyupgrade

e477817... by Jürgen Gmach

Apply inclusive naming via the `woke` pre-commit hook