Skip to content

Commit fd1258f

Browse files
committed
CI: Verify support on Python 3.13
1 parent 4b987ae commit fd1258f

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: ['ubuntu-22.04']
20-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
20+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2121
cratedb-version: ['nightly']
2222
sqla-version: ['latest']
2323
pip-allow-prerelease: ['false']
2424

2525
# Another CI test matrix slot to test against prerelease versions of Python packages.
2626
include:
2727
- os: 'ubuntu-latest'
28-
python-version: '3.12'
28+
python-version: '3.13'
2929
cratedb-version: 'nightly'
3030
sqla-version: 'latest'
3131
pip-allow-prerelease: 'true'

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: ['ubuntu-22.04']
23-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
23+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
2424
cratedb-version: ['5.5.1']
2525
sqla-version: ['<1.4', '<1.5', '<2.1']
2626
pip-allow-prerelease: ['false']
@@ -29,11 +29,13 @@ jobs:
2929
# SQLAlchemy 1.3 is not supported on Python 3.12 and higher.
3030
- python-version: '3.12'
3131
sqla-version: '<1.4'
32+
- python-version: '3.13'
33+
sqla-version: '<1.4'
3234

3335
# Another CI test matrix slot to test against prerelease versions of Python packages.
3436
include:
3537
- os: 'ubuntu-latest'
36-
python-version: '3.12'
38+
python-version: '3.13'
3739
cratedb-version: '5.5.1'
3840
sqla-version: 'latest'
3941
pip-allow-prerelease: 'true'

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## Unreleased
4+
- CI: Verified support on Python 3.13
45

56
## 2024/10/07 0.40.0
67
- Propagate error traces properly, using the `error_trace` `connect_args` option,

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ classifiers = [
5050
"Programming Language :: Python :: 3.10",
5151
"Programming Language :: Python :: 3.11",
5252
"Programming Language :: Python :: 3.12",
53+
"Programming Language :: Python :: 3.13",
5354
"Programming Language :: Python :: Implementation :: CPython",
5455
"Programming Language :: Python :: Implementation :: PyPy",
5556
"Programming Language :: SQL",
@@ -107,7 +108,7 @@ optional-dependencies.release = [
107108
]
108109
optional-dependencies.test = [
109110
"cratedb-toolkit[testing]",
110-
"dask[dataframe]",
111+
"dask[dataframe]; python_version<'3.13'",
111112
"pandas<2.3",
112113
"pueblo>=0.0.7",
113114
"pytest<9",

tests/bulk_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def test_bulk_save_pandas(self, mock_cursor):
206206
# Verify number of batches.
207207
self.assertEqual(effective_op_count, OPCOUNT)
208208

209+
@skipIf(sys.version_info >= (3, 13), "SQLAlchemy/Dask is not supported on Python >=3.13 yet")
209210
@skipIf(sys.version_info < (3, 8), "SQLAlchemy/Dask is not supported on Python <3.8")
210211
@skipIf(SA_VERSION < SA_2_0, "SQLAlchemy 1.4 is no longer supported by pandas 2.2")
211212
@patch("crate.client.connection.Cursor", mock_cursor=FakeCursor)

tests/integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def create_test_suite():
185185
]
186186

187187
# Don't run DataFrame integration tests on SQLAlchemy 1.3 and Python 3.7.
188-
skip_dataframe = SA_VERSION < SA_2_0 or sys.version_info < (3, 8)
188+
skip_dataframe = SA_VERSION < SA_2_0 or sys.version_info < (3, 8) or sys.version_info >= (3, 13)
189189
if not skip_dataframe:
190190
sqlalchemy_integration_tests += [
191191
"docs/dataframe.rst",

0 commit comments

Comments
 (0)