Skip to content

Commit

Permalink
Add: Officially support Python 3.12
Browse files Browse the repository at this point in the history
Python 3.12 got releases just recently and we should support it.
  • Loading branch information
bjoernricks committed Oct 10, 2023
1 parent d6dc09b commit 32734df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,6 +35,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install python, poetry and dependencies
Expand All @@ -52,6 +54,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Run mypy
Expand Down
23 changes: 13 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 32734df

Please sign in to comment.