From 1c0cf5d2e701f2ebd362cee02e2bd06a38216858 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:47:44 +0000 Subject: [PATCH 1/2] Update aiolimiter requirement from ~=1.1.0 to >=1.1,<1.3 Updates the requirements on [aiolimiter](https://github.com/mjpieters/aiolimiter) to permit the latest version. - [Release notes](https://github.com/mjpieters/aiolimiter/releases) - [Changelog](https://github.com/mjpieters/aiolimiter/blob/master/CHANGELOG.md) - [Commits](https://github.com/mjpieters/aiolimiter/compare/v1.1.0...v1.2.0) --- updated-dependencies: - dependency-name: aiolimiter 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 0a63d90f45e..58752295610 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,7 +86,7 @@ passport = [ "cffi >= 1.17.0rc1; python_version > '3.12'" ] rate-limiter = [ - "aiolimiter~=1.1.0", + "aiolimiter>=1.1,<1.3", ] socks = [ "httpx[socks]", From 89001dcc63e4ed69dfecd7e6f290f0a467fd444b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Fri, 6 Dec 2024 23:48:03 +0000 Subject: [PATCH 2/2] Update version number in other files --- .pre-commit-config.yaml | 6 +++--- README.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7788fb1f797..e2cd308e78f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - tornado~=6.4 - APScheduler~=3.10.4 - cachetools>=5.3.3,<5.5.0 - - aiolimiter~=1.1.0 + - aiolimiter~=1.1,<1.3 - repo: https://github.com/psf/black-pre-commit-mirror rev: 24.4.2 hooks: @@ -38,7 +38,7 @@ repos: - tornado~=6.4 - APScheduler~=3.10.4 - cachetools>=5.3.3,<5.5.0 - - aiolimiter~=1.1.0 + - aiolimiter~=1.1,<1.3 - . # this basically does `pip install -e .` - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.10.1 @@ -54,7 +54,7 @@ repos: - tornado~=6.4 - APScheduler~=3.10.4 - cachetools>=5.3.3,<5.5.0 - - aiolimiter~=1.1.0 + - aiolimiter~=1.1,<1.3 - . # this basically does `pip install -e .` - id: mypy name: mypy-examples diff --git a/README.rst b/README.rst index 772aa757119..1412b62ef1a 100644 --- a/README.rst +++ b/README.rst @@ -155,7 +155,7 @@ PTB can be installed with optional dependencies: * ``pip install "python-telegram-bot[passport]"`` installs the `cryptography>=39.0.1 `_ library. Use this, if you want to use Telegram Passport related functionality. * ``pip install "python-telegram-bot[socks]"`` installs `httpx[socks] `_. Use this, if you want to work behind a Socks5 server. * ``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[rate-limiter]"`` installs `aiolimiter~=1.1,<1.3 `_. 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,<5.6.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``.