From 99f0bd1424999eece9e49bd2a50bc16a230f66be Mon Sep 17 00:00:00 2001 From: mabulgu Date: Wed, 22 Nov 2023 00:09:57 +0300 Subject: [PATCH] add python 3.12 support --- .github/workflows/build.yml | 2 +- pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5407c5..e695384 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 - name: Install setuptools for Python ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index aef3897..fbcd019 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Command Line Interface for Strimzi Kafka Operator" authors = [{ name = "Aykut Bulgu", email = "aykut@systemcraftsman.com" }] readme = "README.md" license = {text = "Apache-2.0"} -requires-python = ">=3.8,<3.12.0" +requires-python = ">=3.8,<=3.12.0" keywords = ["kafka", "strimzi", "cli", "operator", "kubernetes", "k8s", "openshift", "apache-kafka"] classifiers=[ @@ -17,6 +17,7 @@ classifiers=[ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3 :: Only', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX :: Linux', @@ -91,7 +92,7 @@ imports = ["kfk"] [tool.black] -target-version = ["py38", "py39", "py310", "py311"] +target-version = ["py38", "py39", "py310", "py311", "py312"] line-length = 88 include = '\.pyi?$' exclude = '''