From 0d3470626f44cedf10cbcbd547288e097461871a Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 6 Sep 2023 18:08:49 +0200 Subject: [PATCH] Maintenance: Add support for Python 3.11 --- .github/workflows/main.yaml | 27 ++++++++++++++++++++++++--- setup.py | 5 ++++- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d73afc03..b11e60e9 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -13,13 +13,20 @@ concurrency: jobs: lint: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ + "3.10", + "3.11", + ] steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pre-commit @@ -41,12 +48,19 @@ jobs: docs: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ + "3.10", + "3.11", + ] steps: - name: Checkout uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install ".[docs]" @@ -59,13 +73,20 @@ jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [ + "3.10", + "3.11", + ] steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade -e ".[testing]" diff --git a/setup.py b/setup.py index bf4316d8..3cca9002 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def read(path: str) -> str: install_requires=[ "aiopg==1.4.0", "bitmath==1.3.3.1", - "kopf==1.35.6", + "kopf==1.36.2", "kubernetes-asyncio==31.1.0", "PyYAML<7.0", "prometheus_client==0.21.1", @@ -85,7 +85,10 @@ def read(path: str) -> str: "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], use_scm_version=True, )