Skip to content

Commit adfc584

Browse files
authored
Add python 3.10 support (#12)
1 parent 239965a commit adfc584

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
ci:
1616
uses: community-of-python/community-workflow/.github/workflows/preset.yml@main
1717
with:
18-
python-version: '["3.12","3.13"]'
18+
python-version: '["3.10", "3.12","3.13"]'
1919
secrets: inherit

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ readme = "README.md"
55
keywords = ["s3", "kaspersky", "antivirus", "upload"]
66
classifiers = [
77
"Natural Language :: English",
8+
"Programming Language :: Python :: 3.10",
89
"Programming Language :: Python :: 3.12",
910
"Programming Language :: Python :: 3.13",
1011
"Topic :: Software Development :: Libraries",
@@ -13,7 +14,7 @@ classifiers = [
1314
]
1415
authors = [{ name = "community-of-python" }]
1516
dynamic = ["version"]
16-
requires-python = ">=3.12"
17+
requires-python = ">=3.10"
1718
dependencies = [
1819
"httpx",
1920
"aioboto3",

safe_s3_storage/file_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _is_image(mime_type: str) -> bool:
2121
return mime_type.startswith("image/")
2222

2323

24-
class ImageConversionFormat(enum.StrEnum):
24+
class ImageConversionFormat(str, enum.Enum):
2525
jpeg = enum.auto()
2626
webp = enum.auto()
2727

safe_s3_storage/kaspersky_scan_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class KasperskyScanEngineRequest(pydantic.BaseModel):
1717

1818

1919
# https://support.kaspersky.ru/scan-engine/2.1/193001
20-
class KasperskyScanEngineScanResult(enum.StrEnum):
20+
class KasperskyScanEngineScanResult(str, enum.Enum):
2121
CLEAN = "CLEAN"
2222
DETECT = "DETECT"
2323
DISINFECTED = "DISINFECTED"

0 commit comments

Comments
 (0)