From c00ed15ab4bd8fce591dc7ea46001748992e89ac Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 3 Dec 2024 16:08:30 -0600 Subject: [PATCH 1/3] Drop Python 3.9 support as it was already broken --- .pre-commit-config.yaml | 2 +- setup.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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/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={ From d73810eff4bc200fa13ad214a49acab43947150b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 22:08:55 +0000 Subject: [PATCH 2/3] chore(pre-commit.ci): auto fixes --- onvif/client.py | 3 ++- onvif/managers.py | 3 ++- onvif/wrappers.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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 From 974248eae819d2d7fa32401fdc7e26defa7b500f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 3 Dec 2024 16:09:50 -0600 Subject: [PATCH 3/3] remove ci job as well --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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