From 7887262ec98050f6d86397fb9906aedb427994a9 Mon Sep 17 00:00:00 2001 From: nlef <52351624+nlef@users.noreply.github.com> Date: Sat, 4 Jan 2025 18:21:27 +0300 Subject: [PATCH] some deps updates --- bot/main.py | 4 ++-- scripts/requirements.dev.txt | 1 + scripts/requirements.txt | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bot/main.py b/bot/main.py index 07b75c7..d3fe163 100644 --- a/bot/main.py +++ b/bot/main.py @@ -1171,7 +1171,7 @@ def start_bot(bot_token, socks): return application -async def start_scheduller(_: ContextTypes.DEFAULT_TYPE): +async def start_scheduler(_: ContextTypes.DEFAULT_TYPE): a_scheduler.start() # bot_updater.create_task(ws_helper.run_forever_async()) loop = asyncio.get_event_loop() @@ -1250,7 +1250,7 @@ async def start_scheduller(_: ContextTypes.DEFAULT_TYPE): kwargs={"bot": bot_updater.bot}, ) - bot_updater.job_queue.run_once(start_scheduller, 1) + bot_updater.job_queue.run_once(start_scheduler, 1) bot_updater.run_polling(allowed_updates=Update.ALL_TYPES) logger.info("Shutting down the bot") diff --git a/scripts/requirements.dev.txt b/scripts/requirements.dev.txt index 7465bbf..350dfef 100644 --- a/scripts/requirements.dev.txt +++ b/scripts/requirements.dev.txt @@ -8,6 +8,7 @@ opencv-python~=4.6.0.66 pipdeptree==2.24.0 pre-commit==4.0.1 ; python_version>='3.9' pre-commit==3.5.0 ; python_version<='3.8' +psutil==6.1.1 pylint==3.2.7 pytest==7.3.1 types-cachetools==5.5.0.20240820 diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 64fb04a..bb2666f 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -3,11 +3,12 @@ anyio==4.7.0 APScheduler==3.11.0 emoji==2.14.0 ffmpegcv==0.3.15 +httpcore==1.0.7 +httpx==0.28.1 idna==3.10 orjson==3.10.13 Pillow==11.1.0 ; python_version>='3.10' Pillow==10.4.0 ; python_version<='3.9' -psutil==6.1.1 python-telegram-bot[socks,http2,rate-limiter,callback-data,job-queue]==21.10 tzlocal==5.2 uvloop==0.21.0 ; platform_system != "Windows"