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 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> 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]",