Skip to content

Commit

Permalink
Remove uvloop (no available with python3.13 with hikari)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Oct 8, 2024
1 parent f798e49 commit c5135fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-slim-bookworm AS base
FROM python:3.13.0-slim-bookworm AS base
RUN apt-get update -y \
&& apt-get install -y gcc \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"hikari[speedups]>=2.0.0",
"peewee>=3.17.6",
"pytz>=2024.1",
'uvloop>=0.20.0 ; platform_system != "Windows"',
#'uvloop>=0.21.0 ; platform_system != "Windows"',
]

[tool.basedpyright]
Expand Down
18 changes: 0 additions & 18 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions worldtimezone/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
from lightbulb.ext import tasks

if os.name != "nt":
import uvloop

asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
try:
import uvloop
except ModuleNotFoundError:
pass
else:
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())

INTENTS = Intents.GUILD_MEMBERS | Intents.GUILDS

Expand Down

0 comments on commit c5135fa

Please sign in to comment.