From 957ab3d329ef3b0d56ad316d2f7ac716649ba184 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 21 Jul 2024 19:24:05 +0000 Subject: [PATCH 1/3] Update cachetools requirement from ~=5.3.3 to >=5.3.3,<5.5.0 Updates the requirements on [cachetools](https://github.com/tkem/cachetools) to permit the latest version. - [Changelog](https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst) - [Commits](https://github.com/tkem/cachetools/compare/v5.3.3...v5.4.0) --- updated-dependencies: - dependency-name: cachetools dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2484250c3d5..551c10b1dcc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,7 @@ all = [ ] callback-data = [ # Cachetools doesn't have a strict stability policy. Let's be cautious for now. - "cachetools~=5.3.3", + "cachetools>=5.3.3,<5.5.0", ] ext = [ "python-telegram-bot[callback-data,job-queue,rate-limiter,webhooks]", From 7ae5f5e2d266c68de92848c9237cf371bcd39ff4 Mon Sep 17 00:00:00 2001 From: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com> Date: Mon, 22 Jul 2024 21:58:59 +0200 Subject: [PATCH 2/3] Update README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 09b01d923a8..7bf24728b3d 100644 --- a/README.rst +++ b/README.rst @@ -157,7 +157,7 @@ PTB can be installed with optional dependencies: * ``pip install "python-telegram-bot[http2]"`` installs `httpx[http2] `_. Use this, if you want to use HTTP/2. * ``pip install "python-telegram-bot[rate-limiter]"`` installs `aiolimiter~=1.1.0 `_. Use this, if you want to use ``telegram.ext.AIORateLimiter``. * ``pip install "python-telegram-bot[webhooks]"`` installs the `tornado~=6.4 `_ library. Use this, if you want to use ``telegram.ext.Updater.start_webhook``/``telegram.ext.Application.run_webhook``. -* ``pip install "python-telegram-bot[callback-data]"`` installs the `cachetools~=5.3.3 `_ library. Use this, if you want to use `arbitrary callback_data `_. +* ``pip install "python-telegram-bot[callback-data]"`` installs the `cachetools>=5.3.3,<5.5.0 `_ library. Use this, if you want to use `arbitrary callback_data `_. * ``pip install "python-telegram-bot[job-queue]"`` installs the `APScheduler~=3.10.4 `_ library and enforces `pytz>=2018.6 `_, where ``pytz`` is a dependency of ``APScheduler``. Use this, if you want to use the ``telegram.ext.JobQueue``. To install multiple optional dependencies, separate them by commas, e.g. ``pip install "python-telegram-bot[socks,webhooks]"``. @@ -232,4 +232,4 @@ License You may copy, distribute and modify the software provided that modifications are described and licensed for free under `LGPL-3 `_. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be. -.. _`GitHub releases page`: https://github.com/python-telegram-bot/python-telegram-bot/releases> \ No newline at end of file +.. _`GitHub releases page`: https://github.com/python-telegram-bot/python-telegram-bot/releases> From f7516540495b695f8254a0b349264d0882fc33af Mon Sep 17 00:00:00 2001 From: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:00:06 +0200 Subject: [PATCH 3/3] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0d933ea11c..0aa5f1a15bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - httpx~=0.27 - tornado~=6.4 - APScheduler~=3.10.4 - - cachetools~=5.3.3 + - cachetools>=5.3.3,<5.5.0 - aiolimiter~=1.1.0 - repo: https://github.com/psf/black-pre-commit-mirror rev: 24.4.2 @@ -37,7 +37,7 @@ repos: - httpx~=0.27 - tornado~=6.4 - APScheduler~=3.10.4 - - cachetools~=5.3.3 + - cachetools>=5.3.3,<5.5.0 - aiolimiter~=1.1.0 - . # this basically does `pip install -e .` - repo: https://github.com/pre-commit/mirrors-mypy @@ -53,7 +53,7 @@ repos: - httpx~=0.27 - tornado~=6.4 - APScheduler~=3.10.4 - - cachetools~=5.3.3 + - cachetools>=5.3.3,<5.5.0 - aiolimiter~=1.1.0 - . # this basically does `pip install -e .` - id: mypy @@ -65,7 +65,7 @@ repos: additional_dependencies: - tornado~=6.4 - APScheduler~=3.10.4 - - cachetools~=5.3.3 + - cachetools>=5.3.3,<5.5.0 - . # this basically does `pip install -e .` - repo: https://github.com/asottile/pyupgrade rev: v3.16.0