Skip to content

Commit 4abf1c9

Browse files
committed
Add Python 3.12 support
1 parent 97aa027 commit 4abf1c9

File tree

6 files changed

+280
-263
lines changed

6 files changed

+280
-263
lines changed

.github/workflows/ci.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
python-version: [3.9, "3.10", "3.11"]
16+
python-version: [3.9, "3.10", "3.11", "3.12"]
1717
include:
1818
- python-version: 3.9
1919
tox-py: py39
2020
- python-version: "3.10"
2121
tox-py: py310
2222
- python-version: "3.11"
2323
tox-py: py311
24+
- python-version: "3.12"
25+
tox-py: py312
2426
runs-on: ubuntu-22.04
2527
steps:
2628
- uses: actions/checkout@v3
@@ -99,7 +101,7 @@ jobs:
99101
strategy:
100102
fail-fast: false
101103
matrix:
102-
python-version: [3.9, "3.10", "3.11"]
104+
python-version: [3.9, "3.10", "3.11", "3.12"]
103105
it-backend: [local, s3, gcs, minio, azure, azure-hierarchical]
104106
# IBM not included by default due to lite plan quota being easily exceeded
105107
#it-backend: [local, s3, gcs, minio, ibm, azure]
@@ -185,7 +187,7 @@ jobs:
185187
run: |
186188
poetry install
187189
sudo apt-get remove azure-cli || true
188-
pip install ccm
190+
poetry run pip install git+https://github.com/riptano/ccm.git
189191
190192
- name: Check if integration tests can run
191193
env:
@@ -221,26 +223,26 @@ jobs:
221223
# Write GCS service account credentials to a file
222224
mkdir ~/.aws
223225
# This fake cluster needs to be created first so that the integration tests pass in GH actions. Don't ask me why...
224-
ccm create test_cluster -v binary:${{ matrix.cassandra-version }} -n 1 --vnodes
225-
ccm node1 updateconf 'storage_port: 7011'
226-
ccm node1 updateconf 'concurrent_reads: 4'
227-
ccm node1 updateconf 'concurrent_writes: 4'
228-
ccm node1 updateconf 'concurrent_counter_writes: 4'
229-
ccm node1 updateconf 'num_tokens: 4'
226+
poetry run ccm create test_cluster -v binary:${{ matrix.cassandra-version }} -n 1 --vnodes
227+
poetry run ccm node1 updateconf 'storage_port: 7011'
228+
poetry run ccm node1 updateconf 'concurrent_reads: 4'
229+
poetry run ccm node1 updateconf 'concurrent_writes: 4'
230+
poetry run ccm node1 updateconf 'concurrent_counter_writes: 4'
231+
poetry run ccm node1 updateconf 'num_tokens: 4'
230232
sed -i 's/#MAX_HEAP_SIZE="4G"/MAX_HEAP_SIZE="256m"/' ~/.ccm/test_cluster/node1/conf/cassandra-env.sh
231233
sed -i 's/#HEAP_NEWSIZE="800M"/HEAP_NEWSIZE="200M"/' ~/.ccm/test_cluster/node1/conf/cassandra-env.sh
232234
# remove the ThreadPriorityPolicy option for cases where we run with java 11
233235
sed -i 's/-XX:ThreadPriorityPolicy=42//' ~/.ccm/test_cluster/node1/conf/jvm.options || true
234236
sed -i 's/-XX:ThreadPriorityPolicy=42//' ~/.ccm/test_cluster/node1/conf/jvm8-server.options || true
235-
ccm start -v
236-
ccm showlastlog|tail -100
237-
ccm stop
237+
poetry run ccm start -v
238+
poetry run ccm showlastlog|tail -100
239+
poetry run ccm stop
238240
# if we are dealing with C* 4.0+, we need to fix the java-driver dependency.
239241
# it has a bug that breaks sstableloader tests with client encryption enabled
240242
# if cassandra version starts with 4.0 or 4.1
241243
if [[ "${{ matrix.cassandra-version }}" =~ ^4\.[01]\. ]];
242244
then
243-
ccm create driver-fix-cluster -v ${{ matrix.cassandra-version }} -n 1
245+
poetry run ccm create driver-fix-cluster -v ${{ matrix.cassandra-version }} -n 1
244246
# enclosed in () so we return to current pwd once we are done fixing the driver
245247
(
246248
cd ~/.ccm/repository/${{ matrix.cassandra-version }}/lib

medusa/service/grpc/medusa_pb2.py

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)