From 2ba042bc2a6ebb4a494f71821502df4534eeb1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 12 Nov 2025 19:02:38 -0800 Subject: [PATCH] replace async-timeout with asyncio.timeout --- geocachingapi/geocachingapi.py | 5 ++--- setup.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/geocachingapi/geocachingapi.py b/geocachingapi/geocachingapi.py index 81b7e08..e339edd 100644 --- a/geocachingapi/geocachingapi.py +++ b/geocachingapi/geocachingapi.py @@ -5,7 +5,6 @@ import json import logging import socket -import async_timeout import backoff from yarl import URL @@ -95,7 +94,7 @@ async def _request(self, method, uri, **kwargs) -> ClientResponse: self._close_session = True try: - async with async_timeout.timeout(self.request_timeout): + async with asyncio.timeout(self.request_timeout): response = await self._session.request( method, f"{url}", @@ -341,4 +340,4 @@ async def __aenter__(self) -> GeocachingApi: async def __aexit__(self, *exc_info) -> None: """Async exit.""" await self.close() - \ No newline at end of file + diff --git a/setup.py b/setup.py index 7570ea3..1187366 100644 --- a/setup.py +++ b/setup.py @@ -32,10 +32,9 @@ def read(*parts): "Operating System :: OS Independent", "Natural Language :: English", "Intended Audience :: Developers", - "Programming Language :: Python :: 3.9", "Topic :: Software Development :: Libraries :: Python Modules", ], - python_requires='>=3.8', + python_requires='>=3.11', zip_safe=False, include_package_data=True, use_scm_version=True,