build: migrate dependency management to uv

This commit is contained in:
Azimkin
2026-09-14 13:27:35 +02:00
parent 4421c9cd31
commit 3f0cce6732
8 changed files with 1157 additions and 14 deletions

10
main.py
View File

@@ -10,6 +10,11 @@ from app.config import load_app_config
from app.manager import AccountManager
from app.pyrogram_compat import install_kurigram_compat
try:
import uvloop
except ImportError: # uvloop does not support Windows.
uvloop = None
LOG_FORMAT = "%(asctime)s | %(levelname)s | %(name)s | %(message)s"
@@ -46,4 +51,7 @@ async def main() -> None:
if __name__ == "__main__":
configure_logging(_ROOT)
asyncio.run(main())
if uvloop is None:
asyncio.run(main())
else:
uvloop.run(main())