From ea18972a6b3cdee553fc65a2722f60a819ff8594 Mon Sep 17 00:00:00 2001 From: Nachtalb Date: Fri, 3 Nov 2023 20:47:53 +0100 Subject: [PATCH] Add Python 3.12 support in GitHub Actions and project configurations --- .github/workflows/tests.yml | 1 + pyproject.toml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d238a558..3097b6bd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,6 +33,7 @@ jobs: - '3.9' - '3.10' - '3.11' + - '3.12' - 'pypy3.8' - 'pypy3.9' diff --git a/pyproject.toml b/pyproject.toml index fe04c46f..f1f86f77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", @@ -144,7 +145,7 @@ features = [ serve = "sphinx-autobuild --watch aiogram/ --watch CHANGELOG.rst --watch README.rst docs/ docs/_build/ {args}" [tool.hatch.envs.dev] -python = "3.11" +python = "3.12" features = [ "dev", "fast", @@ -185,7 +186,7 @@ view-cov = "google-chrome-stable reports/py{matrix:python}/coverage/index.html" [[tool.hatch.envs.test.matrix]] -python = ["38", "39", "310", "311"] +python = ["38", "39", "310", "311", "312"] [tool.ruff] line-length = 99