Skip to content

Commit fedc38b

Browse files
committed
Bump minimum Python to 3.11
1 parent 3d3ca02 commit fedc38b

File tree

5 files changed

+5
-328
lines changed

5 files changed

+5
-328
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ uv run run-bot --config-file your-config-file.toml
8787
## Development Setup
8888

8989
NOTE: This project uses [uv](https://docs.astral.sh/uv/) to manage Python versions and dependencies.
90-
If you don't plan to add/remove/update dependencies, you can also use [pip](https://pip.pypa.io/en/stable/), and any Python version >= 3.9.
90+
If you don't plan to add/remove/update dependencies, you can also use [pip](https://pip.pypa.io/en/stable/), and any Python version >= 3.11.
9191

9292
### Discord Server and Bot Setup
9393

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ description = "All Discord-related things for the EuroPython conference"
99
license = "MIT"
1010
license-files = ["LICENSE"]
1111
readme = "README.md"
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.11"
1313
dependencies = [
1414
"discord-py>=2.3.1",
1515
"aiofiles>=24.1.0",
1616
"aiohttp>=3.11.16",
1717
"pydantic>=2.8.2",
1818
"unidecode>=1.3.8",
19-
"tomli>=2.2.1; python_version < '3.11'",
20-
"typing_extensions>=4.13.2; python_version < '3.11'",
21-
"eval-type-backport>=0.2.2; python_version < '3.10'",
2219
]
2320

2421
[dependency-groups]

src/europython_discord/bot.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import logging
66
import os
77
import sys
8+
import tomllib
89
from pathlib import Path
910
from typing import Literal
1011

@@ -19,11 +20,6 @@
1920
from europython_discord.registration.cog import RegistrationCog
2021
from europython_discord.registration.config import RegistrationConfig
2122

22-
if sys.version_info >= (3, 11):
23-
import tomllib
24-
else:
25-
import tomli as tomllib
26-
2723
# silence warning about missing discord voice support
2824
# https://github.com/Rapptz/discord.py/issues/1719#issuecomment-437703581
2925
discord.VoiceClient.warn_nacl = False

src/europython_discord/program_notifications/livestream_connector.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22

33
import asyncio
44
import logging
5-
import sys
5+
import tomllib
66
from datetime import date
77
from pathlib import Path
88

9-
if sys.version_info >= (3, 11):
10-
import tomllib
11-
else:
12-
import tomli as tomllib
13-
149
import aiofiles
1510

1611
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)