From a161454b09e144de15883d25378fbb13069e241b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 12 Nov 2025 18:56:17 -0800 Subject: [PATCH] replace async-timeout with asyncio.timeout --- directv/directv.py | 3 +-- setup.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/directv/directv.py b/directv/directv.py index e64a151e..ad27a989 100644 --- a/directv/directv.py +++ b/directv/directv.py @@ -5,7 +5,6 @@ from typing import Any, Mapping, Optional import aiohttp -import async_timeout from yarl import URL from .__version__ import __version__ @@ -74,7 +73,7 @@ async def _request( self._close_session = True try: - with async_timeout.timeout(self.request_timeout): + async with asyncio.timeout(self.request_timeout): response = await self._session.request( method, url, auth=auth, data=data, params=params, headers=headers, ) diff --git a/setup.py b/setup.py index 4c451ee6..f075caf1 100644 --- a/setup.py +++ b/setup.py @@ -34,14 +34,13 @@ def read(*parts): "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], description="Asynchronous Python client for DirecTV (SHEF).", include_package_data=True, install_requires=list(val.strip() for val in open("requirements.txt")), + python_requires=">=3.11", keywords=["directv", "api", "async", "client", "shef"], license="MIT license", long_description_content_type="text/markdown",