Skip to content

Commit 65630b0

Browse files
authored
Merge branch 'async' into tapo-500
2 parents 4ea62e8 + f9cb6fa commit 65630b0

File tree

8 files changed

+21
-16
lines changed

8 files changed

+21
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
14+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1515

1616
steps:
1717
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
exclude: "CHANGELOG.md|.copier-answers.yml|.all-contributorsrc"
4-
default_stages: [commit]
4+
default_stages: [pre-commit]
55

66
ci:
77
autofix_commit_msg: "chore(pre-commit.ci): auto fixes"
@@ -32,10 +32,10 @@ repos:
3232
args: [--fix, --exit-non-zero-on-fix]
3333
- id: ruff-format
3434
- repo: https://github.com/asottile/pyupgrade
35-
rev: v2.7.2
35+
rev: v3.19.0
3636
hooks:
3737
- id: pyupgrade
38-
args: [--py36-plus]
38+
args: [--py310-plus]
3939
# - repo: https://github.com/pre-commit/mirrors-mypy
4040
# rev: v1.11.2
4141
# hooks:

onvif/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import datetime as dt
77
import logging
88
import os.path
9-
from typing import Any, Callable
9+
from typing import Any
10+
from collections.abc import Callable
1011

1112
import httpx
1213
from httpx import AsyncClient, BasicAuth, DigestAuth

onvif/managers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import asyncio
77
import datetime as dt
88
import logging
9-
from typing import TYPE_CHECKING, Any, Callable
9+
from typing import TYPE_CHECKING, Any
10+
from collections.abc import Callable
1011

1112
import httpx
1213
from httpx import TransportError

onvif/wrappers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import asyncio
66
from collections.abc import Awaitable
77
import logging
8-
from typing import Callable, ParamSpec, TypeVar
8+
from typing import ParamSpec, TypeVar
9+
from collections.abc import Callable
910

1011
import httpx
1112

requirements_dev.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
-r requirements.txt
33

44
# Dev
5-
pytest
6-
pytest-cov
7-
pytest-asyncio
8-
pylint
5+
pytest==8.3.4
6+
pytest-cov==6.0.0
7+
pytest-asyncio==0.24.0
98

109
# pre-commit
11-
pre-commit==2.7.1
10+
pre-commit==4.0.1

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
2525
"Topic :: Utilities",
2626
"Programming Language :: Python",
2727
"Programming Language :: Python :: 3",
28-
"Programming Language :: Python :: 3.5",
28+
"Programming Language :: Python :: 3.10",
29+
"Programming Language :: Python :: 3.11",
30+
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
2932
]
3033

3134
setup(
@@ -41,7 +44,7 @@
4144
keywords=["ONVIF", "Camera", "IPC"],
4245
url="http://github.com/hunterjm/python-onvif-zeep-async",
4346
zip_safe=False,
44-
python_requires=">=3.9",
47+
python_requires=">=3.10",
4548
packages=find_packages(exclude=["docs", "examples", "tests"]),
4649
install_requires=requires,
4750
package_data={

tests/test_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
def test_normalize_url():
1818
assert normalize_url("http://1.2.3.4:80") == "http://1.2.3.4:80"
1919
assert normalize_url("http://1.2.3.4:80:80") == "http://1.2.3.4:80"
20-
assert normalize_url("http://[:dead:beef::1]:80") == "http://[:dead:beef::1]:80"
20+
assert normalize_url("http://[dead:beef::1]:80") == "http://[dead:beef::1]:80"
2121
assert normalize_url(None) is None
22-
assert normalize_url(b"http://[:dead:beef::1]:80") is None
22+
assert normalize_url(b"http://[dead:beef::1]:80") is None
2323

2424

2525
@pytest.mark.asyncio

0 commit comments

Comments
 (0)