From 89524b7f581f203bc4de2bcde004affbe8c137b5 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 22 Nov 2024 14:55:36 +0100 Subject: [PATCH] chore: add support for python 3.12 (#713) Adds support for python 3.12. Also updates a test with a race condition in 3.12 --------- Signed-off-by: Alex --- .github/workflows/ci.yml | 1 + .github/workflows/scheduled.yml | 1 + setup.cfg | 1 + tests/e2e/files/rulebooks/test_hot_reload.yml | 3 ++- tox.ini | 3 ++- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8972b4d8..83a65a7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - name: Checkout diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml index 0c71e62b..4565d7fe 100644 --- a/.github/workflows/scheduled.yml +++ b/.github/workflows/scheduled.yml @@ -45,6 +45,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - name: Checkout diff --git a/setup.cfg b/setup.cfg index 13dcb054..c0b3a1cd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,6 +16,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] zip_safe = False diff --git a/tests/e2e/files/rulebooks/test_hot_reload.yml b/tests/e2e/files/rulebooks/test_hot_reload.yml index 42ec2f8a..60b72a86 100644 --- a/tests/e2e/files/rulebooks/test_hot_reload.yml +++ b/tests/e2e/files/rulebooks/test_hot_reload.yml @@ -5,6 +5,7 @@ - generic: payload: - action: "value_a" + shutdown_after: 2 rules: - name: Matching for value_a condition: event.action == "value_a" @@ -15,4 +16,4 @@ condition: event.action == "value_b" action: debug: - msg: "Rule 2: I have now matched for value_b" \ No newline at end of file + msg: "Rule 2: I have now matched for value_b" diff --git a/tox.ini b/tox.ini index b6e0791b..85f4150a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = flake8,py39,py310,py311 +envlist = flake8,py39,py310,py311,py312 isolated_build = True [travis] @@ -7,6 +7,7 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv:flake8] basepython = python