diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 7877076..5da51cf 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -15,5 +15,5 @@ jobs: ci: uses: community-of-python/community-workflow/.github/workflows/preset.yml@main with: - python-version: '["3.12","3.13"]' + python-version: '["3.10", "3.12","3.13"]' secrets: inherit diff --git a/pyproject.toml b/pyproject.toml index 01e24dd..a83a86c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,7 @@ readme = "README.md" keywords = ["s3", "kaspersky", "antivirus", "upload"] classifiers = [ "Natural Language :: English", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Topic :: Software Development :: Libraries", @@ -13,7 +14,7 @@ classifiers = [ ] authors = [{ name = "community-of-python" }] dynamic = ["version"] -requires-python = ">=3.12" +requires-python = ">=3.10" dependencies = [ "httpx", "aioboto3", diff --git a/safe_s3_storage/file_validator.py b/safe_s3_storage/file_validator.py index 944495e..b43adb6 100644 --- a/safe_s3_storage/file_validator.py +++ b/safe_s3_storage/file_validator.py @@ -21,7 +21,7 @@ def _is_image(mime_type: str) -> bool: return mime_type.startswith("image/") -class ImageConversionFormat(enum.StrEnum): +class ImageConversionFormat(str, enum.Enum): jpeg = enum.auto() webp = enum.auto() diff --git a/safe_s3_storage/kaspersky_scan_engine.py b/safe_s3_storage/kaspersky_scan_engine.py index bf32165..0b7f97f 100644 --- a/safe_s3_storage/kaspersky_scan_engine.py +++ b/safe_s3_storage/kaspersky_scan_engine.py @@ -17,7 +17,7 @@ class KasperskyScanEngineRequest(pydantic.BaseModel): # https://support.kaspersky.ru/scan-engine/2.1/193001 -class KasperskyScanEngineScanResult(enum.StrEnum): +class KasperskyScanEngineScanResult(str, enum.Enum): CLEAN = "CLEAN" DETECT = "DETECT" DISINFECTED = "DISINFECTED"