From 463b97d8d491159f591e6773dcbfa41e4a749e00 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 15 Jul 2024 12:12:48 -0400 Subject: [PATCH 1/4] README: create a venv to pip install pylxd Older Python version didn't care but BCP is to use a venv and Python 3.12 actually requires it. Fixes #596 Signed-off-by: Simon Deziel --- README.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 42a3f5de..53e6d597 100644 --- a/README.rst +++ b/README.rst @@ -14,7 +14,16 @@ A Python library for interacting with the LXD REST API. Installation ============= -``pip install pylxd`` +.. code-block:: console + + # Create a virtual environment + python3 -m venv myvenv + cd myvenv + + # Activate the virtual environment + . bin/activate + # Install pyLXD in it + pip install pylxd Bug reports =========== From 349be78fc8ce3d0aa538bb376eaa4295d2534fa2 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 15 Jul 2024 12:22:51 -0400 Subject: [PATCH 2/4] doc/source/storage-pools: fix lint warning Signed-off-by: Simon Deziel --- doc/source/storage-pools.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/source/storage-pools.rst b/doc/source/storage-pools.rst index 79b3ef1d..93211206 100644 --- a/doc/source/storage-pools.rst +++ b/doc/source/storage-pools.rst @@ -168,8 +168,7 @@ The following methods are accessed from the `snapshots` attribute on the `Storag - `all` - Get all the snapshots from the storage volume. - `get` - Get a single snapshot using its name. - - `create` - Take a snapshot on the current stage of the storage volume. The new snapshot's - name and expiration date can be set, default name is in the format "snapX". + - `create` - Take a snapshot on the current stage of the storage volume. The new snapshot's name and expiration date can be set, default name is in the format "snapX". - `exists` - Returns True if a storage volume snapshot with the given name exists, returns False otherwise. Methods available on the storage snapshot object From cf1804314500a8c2e45b8c86a3f270c114a050cb Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 15 Jul 2024 12:26:27 -0400 Subject: [PATCH 3/4] doc/source/clustering: fix link target Signed-off-by: Simon Deziel --- doc/source/clustering.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/clustering.rst b/doc/source/clustering.rst index afdc5db4..047fec46 100644 --- a/doc/source/clustering.rst +++ b/doc/source/clustering.rst @@ -70,4 +70,4 @@ the `LXD Cluster REST API`_ documentation. .. links .. _LXD Clustering: https://documentation.ubuntu.com/lxd/en/latest/clustering/ -.. _LXD REST API: https://documentation.ubuntu.com/lxd/en/latest/api/ +.. _LXD Cluster REST API: https://documentation.ubuntu.com/lxd/en/latest/api/#/cluster From ce846c0a6b17b1ef819f3793c74be25cf9797232 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Mon, 15 Jul 2024 12:27:32 -0400 Subject: [PATCH 4/4] doc/source/storage-pools: fix link target Signed-off-by: Simon Deziel --- doc/source/storage-pools.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/storage-pools.rst b/doc/source/storage-pools.rst index 93211206..72cae9d8 100644 --- a/doc/source/storage-pools.rst +++ b/doc/source/storage-pools.rst @@ -184,4 +184,4 @@ the following methods are available: .. links .. _LXD Storage Pools: https://documentation.ubuntu.com/lxd/en/latest/storage/ -.. _LXD REST API: https://documentation.ubuntu.com/lxd/en/latest/api/ +.. _LXD Storage Pools REST API: https://documentation.ubuntu.com/lxd/en/latest/api/#/storage