Skip to content

Commit

Permalink
build: Add Python 3.11 to CI build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaakola-aiven committed Nov 4, 2022
1 parent b694153 commit 08a40c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@v1

Expand All @@ -22,6 +22,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install libsnappy-dev (python-snappy legacy-install-failure on Python 3.11)
run: sudo apt install libsnappy-dev

- name: Install dependencies
run: python -m pip install -r requirements-dev.txt

Expand Down
4 changes: 2 additions & 2 deletions karapace/schema_registry_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ async def subject_post(
self.r(
body={
"error_code": SchemaErrorCodes.INVALID_SCHEMA.value,
"message": f"Invalid {schema_type} schema. Error: {human_error}",
"message": f"Invalid {schema_type.value} schema. Error: {human_error}",
},
content_type=content_type,
status=HTTPStatus.UNPROCESSABLE_ENTITY,
Expand Down Expand Up @@ -968,7 +968,7 @@ async def subject_post(
self.r(
body={
"error_code": SchemaErrorCodes.INVALID_SCHEMA.value,
"message": f"Invalid {schema_type} schema. Error: {str(ex)}",
"message": f"Invalid {schema_type.value} schema. Error: {str(ex)}",
},
content_type=content_type,
status=HTTPStatus.UNPROCESSABLE_ENTITY,
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ requests==2.27.1
pre-commit>=2.2.0

# performance test
locust==2.9.0
locust==2.13.0

# Sentry SDK
sentry-sdk==1.6.0
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PyPI dependencies
accept-types==0.4.1
aiohttp==3.8.1
aiohttp==3.8.3
aiokafka==0.7.2
avro==1.11.0
jsonschema==3.2.0
Expand All @@ -26,7 +26,7 @@ certifi==2021.10.8 # requests, urllib3
chardet==3.0.4 # requests
charset-normalizer==2.0.11 # aiohttp, requests
decorator==5.1.1 # networkx
frozenlist==1.3.0 # aiohttp, aiosignal
frozenlist==1.3.1 # aiohttp, aiosignal
idna==3.3 # aiohttp, requests, urllib3
lz4==3.0.2 # kafka
multidict==6.0.2 # aiohttp, yarl
Expand All @@ -35,5 +35,5 @@ pyrsistent==0.18.1 # jsonschema
requests==2.27.1 # jsonschema
six==1.16.0 # dateutil
urllib3==1.26.8 # requests
yarl==1.7.2 # aiohttp
yarl==1.8.1 # aiohttp
zstandard==0.18.0 # kafka

0 comments on commit 08a40c0

Please sign in to comment.