From 3371df879d15d2b400d500feec5b2e39f76e8217 Mon Sep 17 00:00:00 2001 From: Jaseem Abid Date: Thu, 25 Sep 2025 19:07:20 +0100 Subject: [PATCH] Update supported Python versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Heya 👋🏼 I noticed that the supported Python version in the README.md doesn't match the reality in test config, so I updated the supported list to currently maintained Python versions. See the list here: https://endoflife.date/python I also noticed that the general tooling is also a bit outdated; the various setup.py, setup.cfg, MANIFEST.in, requirements.txt etc which can all be replaced with a pyproject.toml + something like uv/poetry. If there is general appetite from the maintainers, happy to send some follow up PRs to make this a bit better. --- .github/workflows/test.yaml | 6 +++--- README.md | 2 +- setup.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index baa3beab2..aa54f2c8a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v5 @@ -41,13 +41,13 @@ jobs: scripts/kube-init.sh py.test -vvv -s kubernetes_asyncio/e2e_test - name: Lint with flake8 and isort (only on the latest version of Python) - if: matrix.python-version == 3.11 + if: matrix.python-version == '3.13' run: | flake8 isort -c --diff . - name: Send coverage report uses: codecov/codecov-action@v5 - if: matrix.python-version == 3.11 + if: matrix.python-version == '3.13' with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index b8d749875..04906138b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ From [PyPi](https://pypi.python.org/pypi/kubernetes_asyncio/) directly: pip install kubernetes_asyncio ``` -It requires Python 3.6+ +It requires Python 3.8+ ## Example diff --git a/setup.py b/setup.py index 464a416d9..1e49ff08f 100644 --- a/setup.py +++ b/setup.py @@ -46,6 +46,7 @@ "OpenAPI", "Kubernetes"], install_requires=REQUIRES, + python_requires=">=3.8", tests_require=TESTS_REQUIRES, packages=[ 'kubernetes_asyncio', @@ -73,12 +74,11 @@ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], )