From 3cab970f1b49d82d097609be0b382a4efe8799c9 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 15 Jan 2024 17:27:57 -0500 Subject: [PATCH 1/4] setup.cfg: add long_description_content_type Addresses `twine check --strict` warning: ``` WARNING `long_description_content_type` missing. defaulting to `text/x-rst`. ``` Signed-off-by: Simon Deziel --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 5d0a4570..a30797d7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ name = pylxd version = 2.3.2a 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 From fb7b164b233b0f61dc013d5dab13b6a42595cf9e Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 16 Jan 2024 15:46:01 -0500 Subject: [PATCH 2/4] github: remove space on empty line Signed-off-by: Simon Deziel --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a1b9c173466be36bafd202dd28ef704d47de7b14 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 16 Jan 2024 15:50:56 -0500 Subject: [PATCH 3/4] pylxd/models: use more f-strings Signed-off-by: Simon Deziel --- pylxd/models/_model.py | 4 ++-- pylxd/models/operation.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 From b246eb9a1260064e05567710fd31757878550567 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 15 Jan 2024 17:28:47 -0500 Subject: [PATCH 4/4] setup.cfg: bump version to 2.3.2 Signed-off-by: Simon Deziel --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index a30797d7..d71c6a98 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [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