From 665b8beb753fd797440aca1389967c99bd981d08 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 9 Aug 2024 13:36:06 +0100 Subject: [PATCH] Add support for python 3.12 (#243) --- .github/workflows/tox.yml | 1 + requirements.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index ae0900f0..4d6da908 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -39,6 +39,7 @@ jobs: other_names: | lint py39-integration + py312-integration py39-sanity py312-sanity platforms: linux,macos diff --git a/requirements.txt b/requirements.txt index 088822db..ffc4fc05 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,9 @@ aiohttp aiokafka azure-servicebus dpath -kafka-python +# https://github.com/dpkp/kafka-python/issues/2412#issuecomment-2030459360 +kafka-python; python_version < "3.12" +kafka-python-ng; python_version >= "3.12" psycopg[binary,pool] # extras needed to avoid install failure on macos-aarch64 systemd-python; sys_platform != 'darwin' watchdog