From 32734df6c0430ff5ff9955e2933e6a917120a79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Tue, 10 Oct 2023 15:47:47 +0200 Subject: [PATCH] Add: Officially support Python 3.12 Python 3.12 got releases just recently and we should support it. --- .github/workflows/ci-python.yml | 3 +++ pyproject.toml | 23 +++++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.yml index fe04a22a..07b65224 100644 --- a/.github/workflows/ci-python.yml +++ b/.github/workflows/ci-python.yml @@ -16,6 +16,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 - name: Install and check with black, pylint and pontos.version @@ -34,6 +35,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 - name: Install python, poetry and dependencies @@ -52,6 +54,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 - name: Run mypy diff --git a/pyproject.toml b/pyproject.toml index a825651c..f1e566df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,35 +9,33 @@ homepage = "https://github.com/greenbone/pontos/" repository = "https://github.com/greenbone/pontos/" documentation = "https://greenbone.github.io/pontos/" -classifiers=[ +classifiers = [ # Full list: https://pypi.org/pypi?%3Aaction=list_classifiers "Development Status :: 4 - Beta", - "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # pylint: disable=line-too-long + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # pylint: disable=line-too-long "Environment :: Console", "Intended Audience :: Developers", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules", ] packages = [ - { include = "pontos"}, + { include = "pontos" }, { include = "tests", format = "sdist" }, { include = "poetry.lock", format = "sdist" }, ] -include = [ - "pontos/updateheader/templates/", - "pontos/github/pr_template.md" -] +include = ["pontos/updateheader/templates/", "pontos/github/pr_template.md"] [tool.poetry.dependencies] python = "^3.9" colorful = ">=0.5.4" tomlkit = ">=0.5.11" packaging = ">=20.3" -httpx = {extras = ["http2"], version = ">=0.23"} +httpx = { extras = ["http2"], version = ">=0.23" } rich = ">=12.4.4" python-dateutil = ">=2.8.2" semver = ">=2.13" @@ -58,7 +56,7 @@ sphinx-autobuild = ">=2021.3.14" [tool.black] line-length = 80 -target-version = ['py39', 'py310', 'py311'] +target-version = ['py39', 'py310', 'py311', 'py312'] exclude = ''' /( \.git @@ -73,7 +71,12 @@ exclude = ''' ''' [tool.autohooks] -pre-commit = ['autohooks.plugins.black', 'autohooks.plugins.isort', 'autohooks.plugins.ruff', 'autohooks.plugins.mypy'] +pre-commit = [ + 'autohooks.plugins.black', + 'autohooks.plugins.isort', + 'autohooks.plugins.ruff', + 'autohooks.plugins.mypy', +] mode = "poetry" [tool.isort]