diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 508daf9b..a454859a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: strategy: matrix: python-version: ["3.8", "3.10", "3.11", "3.12"] - + runs-on: ubuntu-22.04 steps: - name: Repository checkout diff --git a/pylxd/models/_model.py b/pylxd/models/_model.py index f28b0038..58037ece 100644 --- a/pylxd/models/_model.py +++ b/pylxd/models/_model.py @@ -144,8 +144,8 @@ def __init__(self, client, **kwargs): if env == "none": continue warnings.warn( - 'Attempted to set unknown attribute "{}" ' - 'on instance of "{}"'.format(key, self.__class__.__name__) + f'Attempted to set unknown attribute "{key}" ' + f'on instance of "{self.__class__.__name__}"' ) self.__dirty__.clear() diff --git a/pylxd/models/operation.py b/pylxd/models/operation.py index 445c1627..f6e3330e 100644 --- a/pylxd/models/operation.py +++ b/pylxd/models/operation.py @@ -84,8 +84,8 @@ def __init__(self, **kwargs): if env == "none": continue warnings.warn( - 'Attempted to set unknown attribute "{}" ' - 'on instance of "{}"'.format(key, self.__class__.__name__) + f'Attempted to set unknown attribute "{key}" ' + f'on instance of "{self.__class__.__name__}"' ) pass diff --git a/setup.cfg b/setup.cfg index 5d0a4570..d71c6a98 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,8 +1,9 @@ [metadata] name = pylxd -version = 2.3.2a +version = 2.3.2 description = python library for LXD long_description = file: README.rst +long_description_content_type = text/x-rst author = Paul Hummer and others (see CONTRIBUTORS.rst) author_email = lxd@lists.canonical.com home_page = https://ubuntu.com/lxd