Skip to content

Commit ddc3078

Browse files
committed
Release offical wheels for python 3.13
python 3.13 is now released, and we should supply wheel for it.
1 parent d3e7231 commit ddc3078

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed

.github/workflows/build-pre-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727

2828
- uses: actions/setup-python@v5
2929
name: Install Python
30+
with:
31+
python-version: '3.13'
3032

3133
- name: Install cibuildwheel
3234
run: |
33-
python3 -m pip install cibuildwheel==2.19.1
35+
python3 -m pip install cibuildwheel==2.22.0
3436
3537
- name: Overwrite for Linux 64
3638
if: runner.os == 'Linux' && matrix.platform == 'x86_64'

.github/workflows/build-push.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ on: [push, pull_request]
44

55

66
env:
7-
CIBW_TEST_COMMAND_LINUX: "pytest {project}/tests/unit && EVENT_LOOP_MANAGER=gevent pytest {project}/tests/unit/io/test_geventreactor.py"
7+
CIBW_TEST_COMMAND_LINUX: >
8+
pytest {project}/tests/unit &&
9+
EVENT_LOOP_MANAGER=gevent pytest {project}/tests/unit/io/test_geventreactor.py
10+
811
CIBW_TEST_COMMAND_MACOS: "pytest {project}/tests/unit -k 'not (test_multi_timer_validation or test_empty_connections or test_timer_cancellation)' "
912
CIBW_TEST_COMMAND_WINDOWS: "pytest {project}/tests/unit -k \"not (test_deserialize_date_range_year or test_datetype or test_libevreactor)\" "
1013
CIBW_BEFORE_TEST: "pip install -r {project}/test-requirements.txt"
1114
CIBW_BEFORE_BUILD_LINUX: "rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
1215
CIBW_ENVIRONMENT: "CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'"
13-
CIBW_SKIP: cp35* cp36* cp37* pp*i686 *musllinux*
16+
CIBW_SKIP: cp36* cp37* pp*i686 *musllinux*
1417
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
1518
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux_2_28
1619
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
@@ -51,15 +54,16 @@ jobs:
5154

5255
- uses: actions/setup-python@v5
5356
name: Install Python
54-
57+
with:
58+
python-version: '3.13'
5559
- name: Enable pip installing globally
5660
if: runner.os == 'MacOs' || runner.os == 'Windows'
5761
run: |
5862
echo "PIP_BREAK_SYSTEM_PACKAGES=1" >> $GITHUB_ENV
5963
6064
- name: Install cibuildwheel
6165
run: |
62-
python3 -m pip install cibuildwheel==2.16.2
66+
python3 -m pip install cibuildwheel==2.22.0
6367
6468
- name: Install OpenSSL for Windows
6569
if: runner.os == 'Windows'
@@ -106,8 +110,9 @@ jobs:
106110
- name: Overwrite for MacOs
107111
if: runner.os == 'MacOs' && matrix.platform == 'all'
108112
run: |
109-
echo "CIBW_BUILD=cp38* cp39* cp310* cp311* cp312*" >> $GITHUB_ENV
113+
echo "CIBW_BUILD=cp39* cp310* cp311* cp312* cp313*" >> $GITHUB_ENV
110114
echo "CIBW_BEFORE_TEST_MACOS=pip install -r {project}/test-requirements.txt pytest" >> $GITHUB_ENV
115+
echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> $GITHUB_ENV
111116
112117
- name: Overwrite for MacOs PyPy
113118
if: runner.os == 'MacOs' && matrix.platform == 'PyPy'
@@ -167,10 +172,12 @@ jobs:
167172

168173
- uses: actions/setup-python@v5
169174
name: Install Python
175+
with:
176+
python-version: '3.13'
170177

171178
- name: Install cibuildwheel
172179
run: |
173-
python -m pip install cibuildwheel==2.16.2
180+
python -m pip install cibuildwheel==2.20.0
174181
175182
- name: Build wheels
176183
env:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Scylla Enterprise (2018.1.x+) using exclusively Cassandra's binary protocol and
1313
.. image:: https://github.com/scylladb/python-driver/actions/workflows/integration-tests.yml/badge.svg?branch=master
1414
:target: https://github.com/scylladb/python-driver/actions/workflows/integration-tests.yml?query=event%3Apush+branch%3Amaster
1515

16-
The driver supports Python versions 3.6-3.11.
16+
The driver supports Python versions 3.7-3.13.
1717

1818
.. **Note:** This driver does not support big-endian systems.
1919

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,14 @@ def run_setup(extensions):
455455
'Natural Language :: English',
456456
'Operating System :: OS Independent',
457457
'Programming Language :: Python',
458+
'Programming Language :: Python :: 3',
458459
'Programming Language :: Python :: 3.7',
459460
'Programming Language :: Python :: 3.8',
461+
'Programming Language :: Python :: 3.9',
462+
'Programming Language :: Python :: 3.10',
463+
'Programming Language :: Python :: 3.11',
464+
'Programming Language :: Python :: 3.12',
465+
'Programming Language :: Python :: 3.13',
460466
'Programming Language :: Python :: Implementation :: CPython',
461467
'Programming Language :: Python :: Implementation :: PyPy',
462468
'Topic :: Software Development :: Libraries :: Python Modules'

tests/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,13 @@ def is_monkey_patched():
5959
thread_pool_executor_class = ThreadPoolExecutor
6060

6161
if "gevent" in EVENT_LOOP_MANAGER:
62-
import gevent.monkey
63-
gevent.monkey.patch_all()
64-
from cassandra.io.geventreactor import GeventConnection
65-
connection_class = GeventConnection
62+
try:
63+
import gevent.monkey
64+
gevent.monkey.patch_all()
65+
from cassandra.io.geventreactor import GeventConnection
66+
connection_class = GeventConnection
67+
except ImportError:
68+
connection_class = None
6669
elif "eventlet" in EVENT_LOOP_MANAGER:
6770
from eventlet import monkey_patch
6871
monkey_patch()

0 commit comments

Comments
 (0)