From 4d1afd0563dd84f13eab40780840a35d27d3559a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Reni=C3=A9?= Date: Mon, 29 Apr 2024 10:44:03 +0200 Subject: [PATCH 1/3] docs: prepare release --- docs/changes.rst | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/changes.rst b/docs/changes.rst index 6bd0772..4c49c76 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -1,7 +1,10 @@ Changelog --------- -0.9.0 (unreleased) +0.10.0 (unreleased) +~~~~~~~~~~~~~~~~~~~ + +0.9.0 (2024-04-29) ~~~~~~~~~~~~~~~~~~ ``exoscale.api.v2.Client`` improvements: @@ -9,11 +12,24 @@ Changelog * Client initialization accepts two signatures: ``Client(key, secret, zone)`` for typical use and ``Client(key, secret, url)`` when needing to target another endpoint than the public endpoint template. +* Drop support for Python 3.7, add Python 3.12 to the testing matrix. +* Fix operations with multiple path parameters (`@thomas-chauvet https://github.com/exoscale/python-exoscale/pull/57`) +* API changes and additions: + * DBaaS: + * integrations settings + * Split secrets over to separate endpoints + * Add zone to service details + * DNS record types cleanup + * Instance password reset operation + * Provide ``at-vie-2`` in the zones choices + * Block Storage operations and CSI addon + * Audit-trail format adjustments + * Add MAC address to private network attachments 0.8.0 (2023-05-11) ~~~~~~~~~~~~~~~~~~ -- Add `exoscale.api.v2.Client`: a low-level API client targeting the Exoscale +- Add ``exoscale.api.v2.Client``: a low-level API client targeting the Exoscale V2 API. 0.7.1 (2021-10-18) From cf6dc05155d0af7831112731cb430a760776d7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Reni=C3=A9?= Date: Mon, 29 Apr 2024 10:50:12 +0200 Subject: [PATCH 2/3] gh: bump actions versions --- .github/workflows/docs.yaml | 2 +- .github/workflows/main.yml | 8 ++++---- .github/workflows/openapi.yaml | 2 +- .github/workflows/pypi-package.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 4560d10..2398014 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install and build run: | python -VV diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aadf497..1e3072c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,8 +21,8 @@ jobs: matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: "Install dependencies" @@ -40,8 +40,8 @@ jobs: name: Linting runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - name: "Install dependencies" diff --git a/.github/workflows/openapi.yaml b/.github/workflows/openapi.yaml index 8ce20d8..ee7a338 100644 --- a/.github/workflows/openapi.yaml +++ b/.github/workflows/openapi.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Fetch latest OpenAPI definition shell: bash run: |- diff --git a/.github/workflows/pypi-package.yaml b/.github/workflows/pypi-package.yaml index e3a6aca..5038f63 100644 --- a/.github/workflows/pypi-package.yaml +++ b/.github/workflows/pypi-package.yaml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: hynek/build-and-inspect-python-package@v1 + - uses: hynek/build-and-inspect-python-package@v2 release-pypi: name: Upload package to pypi.org @@ -27,7 +27,7 @@ jobs: environment: release steps: - name: Download packages built by previous step - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Packages path: dist From 0399fff1b35d1fa87ebecd6c14b9bbef7db4fe6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Reni=C3=A9?= Date: Mon, 29 Apr 2024 11:50:02 +0200 Subject: [PATCH 3/3] lint: adapt to black changes --- exoscale/api/v2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exoscale/api/v2.py b/exoscale/api/v2.py index d8d73e1..82f4520 100644 --- a/exoscale/api/v2.py +++ b/exoscale/api/v2.py @@ -194,9 +194,9 @@ def _return_docstring(operation): desc += f". Values are ``{choices}``" suffix = f": {desc}" if desc else "" normalized_name = name.replace("-", "_") - body[ - normalized_name - ] = f"**{normalized_name}** ({typ}){suffix}." + body[normalized_name] = ( + f"**{normalized_name}** ({typ}){suffix}." + ) doc = ( f"dict: {ref['description']}. A dictionnary with the following keys:"