From 1173f2820b6e996fd80c51e61353a31a4c260b3b Mon Sep 17 00:00:00 2001 From: Sijmen Date: Sun, 10 Dec 2023 10:31:47 +0100 Subject: [PATCH] Add support for 3.12 (#606) --- .github/workflows/ci.yml | 2 +- README.rst | 2 +- docs/index.rst | 2 +- docs/installation.rst | 2 +- schedule/__init__.py | 2 +- setup.py | 1 + tox.ini | 3 ++- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7ca9639..9e8d6dfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: max-parallel: 6 matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/README.rst b/README.rst index 35b69669..a764cf6a 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ Python job scheduling for humans. Run Python functions (or any other callable) p - In-process scheduler for periodic jobs. No extra processes needed! - Very lightweight and no external dependencies. - Excellent test coverage. -- Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11 +- Tested on Python and 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 Usage ----- diff --git a/docs/index.rst b/docs/index.rst index e051a2ee..966608aa 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,7 +17,7 @@ Python job scheduling for humans. Run Python functions (or any other callable) p - In-process scheduler for periodic jobs. No extra processes needed! - Very lightweight and no external dependencies. - Excellent test coverage. -- Tested on Python 3.7, 3.8, 3.9, 3.10 and 3.11 +- Tested on Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 :doc:`Example ` diff --git a/docs/installation.rst b/docs/installation.rst index 82ae1904..6f15cccf 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -6,7 +6,7 @@ Python version support ###################### We recommend using the latest version of Python. -Schedule is tested on Python 3.7, 3.8, 3.9, 3.10 and 3.11. +Schedule is tested on Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 Want to use Schedule on earlier Python versions? See the History. diff --git a/schedule/__init__.py b/schedule/__init__.py index 54760b59..3f7267da 100644 --- a/schedule/__init__.py +++ b/schedule/__init__.py @@ -15,7 +15,7 @@ - A simple to use API for scheduling jobs. - Very lightweight and no external dependencies. - Excellent test coverage. - - Tested on Python 3.7, 3.8, 3.9, 3.10 and 3.11 + - Tested on Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 Usage: >>> import schedule diff --git a/setup.py b/setup.py index 1f5df096..9bd5a4f9 100644 --- a/setup.py +++ b/setup.py @@ -48,6 +48,7 @@ def read_file(filename): "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Natural Language :: English", ], python_requires=">=3.7", diff --git a/tox.ini b/tox.ini index a43e52dd..4e9c5016 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py3{7,8,9,10,11}{,-pytz} +envlist = py3{7,8,9,10,11,12}{,-pytz} skip_missing_interpreters = true @@ -10,6 +10,7 @@ python = 3.9: py39, py39-pytz 3.10: py310, py310-pytz 3.11: py311, py311-pytz + 3.12: py312, py312-pytz [testenv] deps =