From d72ccc061d0916187cdecbf4833f486677d48508 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 6 Nov 2023 12:37:25 +0100 Subject: [PATCH 1/2] Add support for Python 3.12 --- .github/workflows/nightly.yml | 2 +- .github/workflows/tests.yml | 2 +- setup.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9941d180..74028244 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest'] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] cratedb-version: ['nightly'] sqla-version: ['latest'] pip-allow-prerelease: ['false'] diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 58f086d1..1d54e686 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,8 +19,8 @@ jobs: strategy: matrix: os: ['ubuntu-latest', 'macos-latest'] - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] cratedb-version: ['5.2.2'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] sqla-version: ['<1.4', '<1.5', '<2.1'] pip-allow-prerelease: ['false'] diff --git a/setup.py b/setup.py index b671fbfb..a1dd7e2e 100644 --- a/setup.py +++ b/setup.py @@ -96,6 +96,7 @@ def read(path): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Database' From 6d038e3c32cf73f58af676bd3daa5c1763d1c73d Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 6 Nov 2023 13:10:05 +0100 Subject: [PATCH 2/2] CI: Use Python 3.12 across the board --- .github/workflows/docs.yml | 2 +- .github/workflows/nightly.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b9e89cf8..1c57e2c4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.12' cache: 'pip' cache-dependency-path: 'setup.py' diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 74028244..92d353f1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -24,7 +24,7 @@ jobs: # Another CI test matrix slot to test against prerelease versions of Python packages. include: - os: 'ubuntu-latest' - python-version: '3.11' + python-version: '3.12' cratedb-version: 'nightly' sqla-version: 'latest' pip-allow-prerelease: 'true' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d35c3c2..00575d66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.12' cache: 'pip' cache-dependency-path: 'setup.py' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d54e686..8244470f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: # Another CI test matrix slot to test against prerelease versions of Python packages. include: - os: 'ubuntu-latest' - python-version: '3.11' + python-version: '3.12' cratedb-version: '5.2.2' sqla-version: 'latest' pip-allow-prerelease: 'true'