From 8eca207be5e2f41f84511e3c4578afe137929b0b Mon Sep 17 00:00:00 2001 From: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:55:27 +0100 Subject: [PATCH] Relax Upper Bound for `httpx` --- .pre-commit-config.yaml | 6 +++--- README.rst | 2 +- README_RAW.rst | 2 +- requirements.txt | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ee1a16d6f3..b5acb00b026 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: ruff name: ruff additional_dependencies: - - httpx~=0.27.0 + - httpx~=0.27 - tornado~=6.4 - APScheduler~=3.10.4 - cachetools~=5.3.3 @@ -33,7 +33,7 @@ repos: - id: pylint files: ^(?!(tests|docs)).*\.py$ additional_dependencies: - - httpx~=0.27.0 + - httpx~=0.27 - tornado~=6.4 - APScheduler~=3.10.4 - cachetools~=5.3.3 @@ -49,7 +49,7 @@ repos: - types-pytz - types-cryptography - types-cachetools - - httpx~=0.27.0 + - httpx~=0.27 - tornado~=6.4 - APScheduler~=3.10.4 - cachetools~=5.3.3 diff --git a/README.rst b/README.rst index ed85b062695..c71b3eb4ea4 100644 --- a/README.rst +++ b/README.rst @@ -135,7 +135,7 @@ As these features are *optional*, the corresponding 3rd party dependencies are n Instead, they are listed as optional dependencies. This allows to avoid unnecessary dependency conflicts for users who don't need the optional features. -The only required dependency is `httpx ~= 0.27.0 `_ for +The only required dependency is `httpx ~= 0.27 `_ for ``telegram.request.HTTPXRequest``, the default networking backend. ``python-telegram-bot`` is most useful when used along with additional libraries. diff --git a/README_RAW.rst b/README_RAW.rst index 75dec821cba..0f5810f59ec 100644 --- a/README_RAW.rst +++ b/README_RAW.rst @@ -136,7 +136,7 @@ As these features are *optional*, the corresponding 3rd party dependencies are n Instead, they are listed as optional dependencies. This allows to avoid unnecessary dependency conflicts for users who don't need the optional features. -The only required dependency is `httpx ~= 0.27.0 `_ for +The only required dependency is `httpx ~= 0.27 `_ for ``telegram.request.HTTPXRequest``, the default networking backend. ``python-telegram-bot`` is most useful when used along with additional libraries. diff --git a/requirements.txt b/requirements.txt index 7c24fc990f1..90203e49733 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,6 @@ # When dependencies release new versions and tests succeed, we should try to expand the allowed # versions and only increase the lower bound if necessary -# httpx has no stable release yet, so let's be cautious for now -httpx ~= 0.27.0 +# httpx has no stable release yet, but we've had no stability problems since v20.0a0 either +# Since there have been requests to relax the bound a bit, we allow versions < 1.0.0 +httpx ~= 0.27