From 3184dd8581a135ce04c499d454da14f7691f8db8 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Mon, 7 Jul 2025 00:09:02 +0300 Subject: [PATCH] build: set minimum version to Python 3.10 --- pyproject.toml | 7 +++---- scrapling/core/utils.py | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1ccbc4a..00bde15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ keywords = [ "browser", "crawling", ] -requires-python = ">=3.9" +requires-python = ">=3.10" classifiers = [ "Operating System :: OS Independent", "Development Status :: 4 - Beta", @@ -45,7 +45,6 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -56,8 +55,8 @@ classifiers = [ dependencies = [ "lxml>=5.4.0", "cssselect>=1.3.0", - "IPython>=8.18.1", # The last version that supports Python 3.9 - "click>=8.1.8", + "IPython>=8.37", # The last version that supports Python 3.10 + "click>=8.2.1", "orjson>=3.10.18", "tldextract>=5.3.0", "curl_cffi>=0.11.4", diff --git a/scrapling/core/utils.py b/scrapling/core/utils.py index af2886b..e33c914 100644 --- a/scrapling/core/utils.py +++ b/scrapling/core/utils.py @@ -7,8 +7,7 @@ from lxml import html from scrapling.core._types import Any, Dict, Iterable, Union -# Using cache on top of a class is brilliant way to achieve Singleton design pattern without much code -# functools.cache is available on Python 3.9+ only so let's keep lru_cache +# Using cache on top of a class is a brilliant way to achieve a Singleton design pattern without much code from functools import lru_cache # isort:skip html_forbidden = {