Skip to content

Commit 4170ef2

Browse files
authored
Drop support for Python 3.9, add Python 3.13 and 3.14 to supported versions (#1192)
* Change: Update Python versions used in CI Drop support for `3.9`, add `3.13` and `3.14`. * Change: Update requirements in README * Change: Set Python 3.10 as minimum version * chore: Refresh 'poetry.lock'
1 parent b9cb74e commit 4170ef2

4 files changed

Lines changed: 19 additions & 62 deletions

File tree

.github/workflows/ci-python.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
strategy:
1717
matrix:
1818
python-version:
19-
- "3.9"
2019
- "3.10"
2120
- "3.11"
2221
- "3.12"
22+
- "3.13"
23+
- "3.14"
2324
steps:
2425
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2526
- name: Install and check with black, pylint and pontos.version
@@ -35,10 +36,11 @@ jobs:
3536
strategy:
3637
matrix:
3738
python-version:
38-
- "3.9"
3939
- "3.10"
4040
- "3.11"
4141
- "3.12"
42+
- "3.13"
43+
- "3.14"
4244
steps:
4345
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4446
- name: Install python, poetry and dependencies
@@ -54,10 +56,11 @@ jobs:
5456
strategy:
5557
matrix:
5658
python-version:
57-
- "3.9"
5859
- "3.10"
5960
- "3.11"
6061
- "3.12"
62+
- "3.13"
63+
- "3.14"
6164
steps:
6265
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6366
- name: Run mypy
@@ -75,7 +78,7 @@ jobs:
7578
- name: Install and calculate and upload coverage to codecov.io
7679
uses: greenbone/actions/coverage-python@v3
7780
with:
78-
python-version: "3.10"
81+
python-version: "3.14"
7982
token: ${{ secrets.CODECOV_TOKEN }}
8083

8184
check-version:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The documentation for pontos can be found at https://greenbone.github.io/pontos/
3737

3838
### Requirements
3939

40-
Python 3.9 and later is supported.
40+
Python 3.10 and later is supported.
4141

4242
### Install using pipx
4343

poetry.lock

Lines changed: 6 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ classifiers = [
1515
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # pylint: disable=line-too-long
1616
"Environment :: Console",
1717
"Intended Audience :: Developers",
18-
"Programming Language :: Python :: 3.9",
1918
"Programming Language :: Python :: 3.10",
2019
"Programming Language :: Python :: 3.11",
2120
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
2223
"Operating System :: OS Independent",
2324
"Topic :: Software Development :: Libraries :: Python Modules",
2425
]
@@ -31,7 +32,7 @@ packages = [
3132
include = ["pontos/updateheader/templates/", "pontos/github/pr_template.md"]
3233

3334
[tool.poetry.dependencies]
34-
python = "^3.9"
35+
python = "^3.10"
3536
colorful = ">=0.5.4"
3637
tomlkit = ">=0.5.11"
3738
packaging = ">=20.3"
@@ -56,7 +57,7 @@ sphinx-autobuild = ">=2021.3.14"
5657

5758
[tool.black]
5859
line-length = 80
59-
target-version = ['py39', 'py310', 'py311', 'py312']
60+
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
6061
exclude = '''
6162
/(
6263
\.git
@@ -84,7 +85,7 @@ line_length = 80
8485

8586
[tool.ruff]
8687
line-length = 80
87-
target-version = "py39"
88+
target-version = "py310"
8889

8990
[tool.ruff.lint]
9091
extend-select = ["I", "PLE", "PLW"]

0 commit comments

Comments
 (0)