Skip to content

Commit 0dda1d6

Browse files
authored
Merge pull request #477 from aiven/jjaakola-aiven-add-python-3-11-to-build-matrix
build: Add Python 3.11 to CI build matrix
2 parents 7e39136 + 08a40c0 commit 0dda1d6

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
max-parallel: 4
1515
matrix:
16-
python-version: [3.7, 3.8, 3.9, "3.10"]
16+
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
1717
steps:
1818
- uses: actions/checkout@v1
1919

@@ -22,6 +22,9 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25+
- name: Install libsnappy-dev (python-snappy legacy-install-failure on Python 3.11)
26+
run: sudo apt install libsnappy-dev
27+
2528
- name: Install dependencies
2629
run: python -m pip install -r requirements-dev.txt
2730

karapace/schema_registry_apis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ async def subject_post(
938938
self.r(
939939
body={
940940
"error_code": SchemaErrorCodes.INVALID_SCHEMA.value,
941-
"message": f"Invalid {schema_type} schema. Error: {human_error}",
941+
"message": f"Invalid {schema_type.value} schema. Error: {human_error}",
942942
},
943943
content_type=content_type,
944944
status=HTTPStatus.UNPROCESSABLE_ENTITY,
@@ -968,7 +968,7 @@ async def subject_post(
968968
self.r(
969969
body={
970970
"error_code": SchemaErrorCodes.INVALID_SCHEMA.value,
971-
"message": f"Invalid {schema_type} schema. Error: {str(ex)}",
971+
"message": f"Invalid {schema_type.value} schema. Error: {str(ex)}",
972972
},
973973
content_type=content_type,
974974
status=HTTPStatus.UNPROCESSABLE_ENTITY,

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requests==2.27.1
1717
pre-commit>=2.2.0
1818

1919
# performance test
20-
locust==2.9.0
20+
locust==2.13.0
2121

2222
# Sentry SDK
2323
sentry-sdk==1.6.0

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PyPI dependencies
22
accept-types==0.4.1
3-
aiohttp==3.8.1
3+
aiohttp==3.8.3
44
aiokafka==0.7.2
55
avro==1.11.0
66
jsonschema==3.2.0
@@ -26,7 +26,7 @@ certifi==2021.10.8 # requests, urllib3
2626
chardet==3.0.4 # requests
2727
charset-normalizer==2.0.11 # aiohttp, requests
2828
decorator==5.1.1 # networkx
29-
frozenlist==1.3.0 # aiohttp, aiosignal
29+
frozenlist==1.3.1 # aiohttp, aiosignal
3030
idna==3.3 # aiohttp, requests, urllib3
3131
lz4==3.0.2 # kafka
3232
multidict==6.0.2 # aiohttp, yarl
@@ -35,5 +35,5 @@ pyrsistent==0.18.1 # jsonschema
3535
requests==2.27.1 # jsonschema
3636
six==1.16.0 # dateutil
3737
urllib3==1.26.8 # requests
38-
yarl==1.7.2 # aiohttp
38+
yarl==1.8.1 # aiohttp
3939
zstandard==0.18.0 # kafka

0 commit comments

Comments
 (0)