From 41ddda976a968498238804c870d252fd0a26627c Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Sat, 31 May 2025 17:26:25 -0400 Subject: [PATCH] Remove python 3.8 support python 3.8 is EOF since 2024-10-07 1. Stop testing it 2. Stop building wheels 3. Remove from `pyproject.toml` --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/lib-build-and-push.yml | 2 +- README.rst | 2 +- docs/index.rst | 2 +- docs/installation.rst | 2 +- pyproject.toml | 10 ++++------ 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6576154aac..65c3773648 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -27,7 +27,7 @@ jobs: fail-fast: false matrix: java-version: [8] - python-version: ["3.8", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.11", "3.12", "3.13"] event_loop_manager: ["libev", "asyncio", "asyncore"] exclude: - python-version: "3.12" diff --git a/.github/workflows/lib-build-and-push.yml b/.github/workflows/lib-build-and-push.yml index 42b42d892c..c409ec94b8 100644 --- a/.github/workflows/lib-build-and-push.yml +++ b/.github/workflows/lib-build-and-push.yml @@ -98,7 +98,7 @@ jobs: echo "CIBW_TEST_COMMAND=true" >> $GITHUB_ENV; echo "CIBW_TEST_COMMAND_WINDOWS=(exit 0)" >> $GITHUB_ENV; echo "CIBW_TEST_SKIP=*" >> $GITHUB_ENV; - echo "CIBW_SKIP=cp2* cp36* pp36* cp37* pp37* *i686 *musllinux*" >> $GITHUB_ENV; + echo "CIBW_SKIP=cp2* cp36* pp36* cp37* pp37* cp38* pp38* *i686 *musllinux*" >> $GITHUB_ENV; echo "CIBW_BUILD=cp3* pp3*" >> $GITHUB_ENV; echo "CIBW_BEFORE_TEST=true" >> $GITHUB_ENV; echo "CIBW_BEFORE_TEST_WINDOWS=(exit 0)" >> $GITHUB_ENV; diff --git a/README.rst b/README.rst index 1f520ef420..f6a983a5b2 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Scylla Enterprise (2018.1.x+) using exclusively Cassandra's binary protocol and .. image:: https://github.com/scylladb/python-driver/actions/workflows/integration-tests.yml/badge.svg?branch=master :target: https://github.com/scylladb/python-driver/actions/workflows/integration-tests.yml?query=event%3Apush+branch%3Amaster -The driver supports Python versions 3.7-3.13. +The driver supports Python versions 3.9-3.13. .. **Note:** This driver does not support big-endian systems. diff --git a/docs/index.rst b/docs/index.rst index 16712f0bf1..a928dce0f8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ A Python client driver for `Scylla `_. This driver works exclusively with the Cassandra Query Language v3 (CQL3) and Cassandra's native protocol. -The driver supports Python 3.6-3.12. +The driver supports Python 3.9-3.13. This driver is open source under the `Apache v2 License `_. diff --git a/docs/installation.rst b/docs/installation.rst index 27329f533c..c8bf66dfdc 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -3,7 +3,7 @@ Installation Supported Platforms ------------------- -Python versions 3.6-3.12 are supported. Both CPython (the standard Python +Python versions 3.9-3.13 are supported. Both CPython (the standard Python implementation) and `PyPy `_ are supported and tested. Linux, OSX, and Windows are supported. diff --git a/pyproject.toml b/pyproject.toml index 717c18bc90..f3069869b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,6 @@ classifiers = [ 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', @@ -44,15 +43,14 @@ test = [ "sure", "scales", "pure-sasl", - "twisted[tls]; python_version >= '3.5'", - "twisted[tls]==19.2.1; python_version < '3.5'", + "twisted[tls]", "gevent>=1.0; python_version < '3.13' and platform_machine != 'i686' and platform_machine != 'win32'", "gevent==23.9.0; python_version < '3.13' and (platform_machine == 'i686' or platform_machine == 'win32')", "eventlet>=0.33.3; python_version < '3.13'", "cython", "packaging", - "futurist; python_version >= '3.7'", - "asynctest; python_version >= '3.5'", + "futurist", + "asynctest", "pyyaml", ] @@ -86,7 +84,7 @@ tag_regex = '(?P\d*?\.\d*?\.\d*?)-scylla' [tool.cibuildwheel] build-frontend = "build[uv]" environment = { CASS_DRIVER_BUILD_CONCURRENCY = "2", CASS_DRIVER_BUILD_EXTENSIONS_ARE_MUST = "yes", CFLAGS = "-g0 -O3" } -skip = ["cp2*", "cp36*", "pp36*", "cp37*", "pp37*", "*i686", "*musllinux*"] +skip = ["cp2*", "cp36*", "pp36*", "cp37*", "pp37*", "cp38*", "pp38*", "*i686", "*musllinux*"] build = ["cp3*", "pp3*"] before-test = "pip install -r {project}/test-requirements.txt"