diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 23cc704..c82051b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e917ad..5711583 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: rev: v3.19.0 hooks: - id: pyupgrade - args: [--py39-plus] + args: [--py310-plus] # - repo: https://github.com/pre-commit/mirrors-mypy # rev: v1.11.2 # hooks: diff --git a/onvif/client.py b/onvif/client.py index 711f377..59b1c1a 100644 --- a/onvif/client.py +++ b/onvif/client.py @@ -6,7 +6,8 @@ import datetime as dt import logging import os.path -from typing import Any, Callable +from typing import Any +from collections.abc import Callable import httpx from httpx import AsyncClient, BasicAuth, DigestAuth diff --git a/onvif/managers.py b/onvif/managers.py index 669afb1..3a5c419 100644 --- a/onvif/managers.py +++ b/onvif/managers.py @@ -6,7 +6,8 @@ import asyncio import datetime as dt import logging -from typing import TYPE_CHECKING, Any, Callable +from typing import TYPE_CHECKING, Any +from collections.abc import Callable import httpx from httpx import TransportError diff --git a/onvif/wrappers.py b/onvif/wrappers.py index 052e247..2f062f2 100644 --- a/onvif/wrappers.py +++ b/onvif/wrappers.py @@ -5,7 +5,8 @@ import asyncio from collections.abc import Awaitable import logging -from typing import Callable, ParamSpec, TypeVar +from typing import ParamSpec, TypeVar +from collections.abc import Callable import httpx diff --git a/setup.py b/setup.py index f89d5c4..91b6bfc 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,6 @@ "Topic :: Utilities", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -45,7 +44,7 @@ keywords=["ONVIF", "Camera", "IPC"], url="http://github.com/hunterjm/python-onvif-zeep-async", zip_safe=False, - python_requires=">=3.9", + python_requires=">=3.10", packages=find_packages(exclude=["docs", "examples", "tests"]), install_requires=requires, package_data={