From 55152a1d51cbc33c1debf2cb54503c00a211d50f Mon Sep 17 00:00:00 2001 From: Guillaume Gauvrit Date: Thu, 21 Dec 2023 18:25:11 +0100 Subject: [PATCH] Don't freeze httpx for python >= 3.7 --- poetry.lock | 47 ++++++++++++++++++++++++++++++++++++++++++++++- pyproject.toml | 5 ++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index fd81a917..c6bf776e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -889,6 +889,27 @@ sniffio = "==1.*" http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] +[[package]] +name = "httpcore" +version = "1.0.2" +description = "A minimal low-level HTTP client." +optional = false +python-versions = ">=3.8" +files = [ + {file = "httpcore-1.0.2-py3-none-any.whl", hash = "sha256:096cc05bca73b8e459a1fc3dcf585148f63e534eae4339559c9b8a8d6399acc7"}, + {file = "httpcore-1.0.2.tar.gz", hash = "sha256:9fc092e4799b26174648e54b74ed5f683132a464e95643b226e00c2ed2fa6535"}, +] + +[package.dependencies] +certifi = "*" +h11 = ">=0.13,<0.15" + +[package.extras] +asyncio = ["anyio (>=4.0,<5.0)"] +http2 = ["h2 (>=3,<5)"] +socks = ["socksio (==1.*)"] +trio = ["trio (>=0.22.0,<0.23.0)"] + [[package]] name = "httpx" version = "0.24.1" @@ -912,6 +933,30 @@ cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] http2 = ["h2 (>=3,<5)"] socks = ["socksio (==1.*)"] +[[package]] +name = "httpx" +version = "0.26.0" +description = "The next generation HTTP client." +optional = false +python-versions = ">=3.8" +files = [ + {file = "httpx-0.26.0-py3-none-any.whl", hash = "sha256:8915f5a3627c4d47b73e8202457cb28f1266982d1159bd5779d86a80c0eab1cd"}, + {file = "httpx-0.26.0.tar.gz", hash = "sha256:451b55c30d5185ea6b23c2c793abf9bb237d2a7dfb901ced6ff69ad37ec1dfaf"}, +] + +[package.dependencies] +anyio = "*" +certifi = "*" +httpcore = "==1.*" +idna = "*" +sniffio = "*" + +[package.extras] +brotli = ["brotli", "brotlicffi"] +cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] +http2 = ["h2 (>=3,<5)"] +socks = ["socksio (==1.*)"] + [[package]] name = "idna" version = "3.6" @@ -2207,4 +2252,4 @@ prometheus = ["prometheus-client"] [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "67d0c722beb359c411e15de0eeba0ad3bd0b0eb64aba6fc7d501dcf74d9b5a3b" +content-hash = "870b0db3e1c69b6c2eb13ad0082f5da58a17b504e09f72ca065b6e0690b98f9c" diff --git a/pyproject.toml b/pyproject.toml index e1415fae..aeda82e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,10 @@ version = "2.5.0" [tool.poetry.dependencies] python = "^3.7" -httpx = "^0.24.1" +httpx = [ + {python = "3.7", version = "^0.24.1"}, + {python = ">=3.8", version = ">=0.24, <1"}, +] prometheus-client = {version = "^0.17.1", optional = true} purgatory = "^1.0.3" pydantic = ">=1.10.12, <3"