Skip to content

Commit 8fba599

Browse files
authored
feat: drop support for python 3.9 (#574)
Python 3.9 will be EOL in Oct 2025. https://devguide.python.org/versions/
1 parent 03ae506 commit 8fba599

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
python-version:
15-
- "3.9"
1615
- "3.10"
1716
- "3.11"
1817
- "3.12"

.gitlab-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ test:
2727
parallel:
2828
matrix:
2929
- python_version:
30-
- "3.9"
3130
- "3.10"
3231
- "3.11"
3332
- "3.12"

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
rev: v3.21.0
3333
hooks:
3434
- id: pyupgrade
35-
args: [--py39-plus]
35+
args: [--py310-plus]
3636

3737
- repo: https://github.com/pycqa/isort
3838
rev: 7.0.0

hcloud/core/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from __future__ import annotations
22

33
import warnings
4-
from typing import TYPE_CHECKING, Any, Callable, ClassVar
4+
from collections.abc import Callable
5+
from typing import TYPE_CHECKING, Any, ClassVar
56

67
if TYPE_CHECKING:
78
from .._client import Client, ClientBase

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ requires = ["setuptools"]
1515
build-backend = "setuptools.build_meta"
1616

1717
[tool.pylint.main]
18-
py-version = "3.9"
18+
py-version = "3.10"
1919
recursive = true
2020
jobs = 0
2121

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727
"Intended Audience :: Developers",
2828
"Natural Language :: English",
2929
"Programming Language :: Python :: 3",
30-
"Programming Language :: Python :: 3.9",
3130
"Programming Language :: Python :: 3.10",
3231
"Programming Language :: Python :: 3.11",
3332
"Programming Language :: Python :: 3.12",
3433
"Programming Language :: Python :: 3.13",
3534
"Programming Language :: Python :: 3.14",
3635
],
37-
python_requires=">=3.9",
36+
python_requires=">=3.10",
3837
install_requires=[
3938
"python-dateutil>=2.7.5",
4039
"requests>=2.20",

tests/unit/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
from __future__ import annotations
44

55
import inspect
6-
from typing import Callable, ClassVar, TypedDict
6+
from collections.abc import Callable
7+
from typing import ClassVar, TypedDict
78
from unittest import mock
89

910
import pytest

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py39, py310, py311, py312, py313, py314
2+
envlist = py310, py311, py312, py313, py314
33

44
[testenv]
55
passenv = FAKE_API_ENDPOINT
@@ -10,7 +10,6 @@ commands =
1010

1111
[gh-actions]
1212
python =
13-
3.9: py39
1413
3.10: py310
1514
3.11: py311
1615
3.12: py312

0 commit comments

Comments
 (0)