Skip to content

Commit

Permalink
chore: raise the minimum Python version to 3.10
Browse files Browse the repository at this point in the history
The remoji-regex package is declared as Python 3.10+, and frankly I think supporting the last 3 versions is enough, since this project isn't some kind of general-purpose library or anything, and we're running the project in Arch Linux.
  • Loading branch information
alissonlauffer committed Jun 1, 2024
1 parent 2fe3f08 commit 9b7cfa8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 10
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A multipurpose Telegram Bot made with Hydrogram and asynchronous programming.

Requirements
------------
- Python 3.9+
- Python 3.10+
- An Unix-like operating system (Windows support isn't tested. In case you find any issues inside Windows, please file an issue)


Expand Down
5 changes: 4 additions & 1 deletion eduu/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import asyncio
from functools import partial, wraps
from typing import Callable
from typing import TYPE_CHECKING

from hydrogram import Client, StopPropagation
from hydrogram.enums import ChatType
Expand All @@ -19,6 +19,9 @@
)
from eduu.utils.utils import check_perms

if TYPE_CHECKING:
from collections.abc import Callable


def aiowrap(func: Callable) -> Callable:
@wraps(func)
Expand Down
5 changes: 4 additions & 1 deletion eduu/utils/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
import json
from functools import partial
from pathlib import Path
from typing import Callable
from typing import TYPE_CHECKING

from hydrogram.enums import ChatType
from hydrogram.types import CallbackQuery, InlineQuery, Message

from eduu.database.localization import get_db_lang
from eduu.utils.utils import get_caller_context

if TYPE_CHECKING:
from collections.abc import Callable

enabled_locales: list[str] = [
"en-GB", # English (United Kingdom)
"en-US", # English (United States)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"yarl",
"yt-dlp==2024.5.27",
]
requires-python = ">=3.9"
requires-python = ">=3.10"

authors = [{ name = "Amano LLC", email = "contact@amanoteam.com" }]
license = { text = "MIT" }
Expand All @@ -38,7 +38,7 @@ homepage = "https://github.com/AmanoTeam/EduuRobot"

[tool.ruff]
line-length = 99
target-version = "py39"
target-version = "py310"
preview = true

[tool.ruff.lint]
Expand Down

0 comments on commit 9b7cfa8

Please sign in to comment.