From a7b17e0945afbf37ffc5a5ac761ae114683aa7ee Mon Sep 17 00:00:00 2001 From: AN Long Date: Sun, 26 Nov 2023 17:01:17 +0800 Subject: [PATCH] run tests with python3.12 (#228) * run tests with python3.12 * update tornado version * fix tornado versions --- .github/workflows/python-package.yml | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b07c4ab..998d2b2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 37d1cde..39f2b53 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,8 @@ ] tornado_requires = [ - "tornado>=4.0,<6.0", + "tornado>=4.0,<7.0; python_version>='3.12'", + "tornado>=4.0,<6.0; python_version<'3.12'", ] try: