diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2eee2995..5accd397 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,6 @@ jobs: strategy: matrix: python-version: - - "3.9" - "3.10" - "3.11" - "3.12" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6236900..f2cc23b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,6 @@ test: parallel: matrix: - python_version: - - "3.9" - "3.10" - "3.11" - "3.12" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f42645e4..3afda835 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: rev: v3.21.0 hooks: - id: pyupgrade - args: [--py39-plus] + args: [--py310-plus] - repo: https://github.com/pycqa/isort rev: 7.0.0 diff --git a/hcloud/core/client.py b/hcloud/core/client.py index 07dfaf48..da9901f8 100644 --- a/hcloud/core/client.py +++ b/hcloud/core/client.py @@ -1,7 +1,8 @@ from __future__ import annotations import warnings -from typing import TYPE_CHECKING, Any, Callable, ClassVar +from collections.abc import Callable +from typing import TYPE_CHECKING, Any, ClassVar if TYPE_CHECKING: from .._client import Client, ClientBase diff --git a/pyproject.toml b/pyproject.toml index c1fd705e..b35f889d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.pylint.main] -py-version = "3.9" +py-version = "3.10" recursive = true jobs = 0 diff --git a/setup.py b/setup.py index 53f75dde..c71436f6 100644 --- a/setup.py +++ b/setup.py @@ -27,14 +27,13 @@ "Intended Audience :: Developers", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ], - python_requires=">=3.9", + python_requires=">=3.10", install_requires=[ "python-dateutil>=2.7.5", "requests>=2.20", diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 4b83b01a..78650e53 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -3,7 +3,8 @@ from __future__ import annotations import inspect -from typing import Callable, ClassVar, TypedDict +from collections.abc import Callable +from typing import ClassVar, TypedDict from unittest import mock import pytest diff --git a/tox.ini b/tox.ini index 1baff836..813895b3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39, py310, py311, py312, py313, py314 +envlist = py310, py311, py312, py313, py314 [testenv] passenv = FAKE_API_ENDPOINT @@ -10,7 +10,6 @@ commands = [gh-actions] python = - 3.9: py39 3.10: py310 3.11: py311 3.12: py312