diff --git a/0001-Allow-httpx-0.24.x-for-testing.patch b/0001-Allow-httpx-0.24.x-for-testing.patch new file mode 100644 index 0000000..43f0a27 --- /dev/null +++ b/0001-Allow-httpx-0.24.x-for-testing.patch @@ -0,0 +1,25 @@ +From fb9c7b8b1093f6614966f656ce7e7ef14d991399 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Sat, 27 May 2023 12:00:26 -0400 +Subject: [PATCH] Allow httpx 0.24.x for testing + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index a5b3347a..a48f9ceb 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -58,7 +58,7 @@ test = [ + "ruff ==0.0.138", + "black == 23.1.0", + "isort >=5.0.6,<6.0.0", +- "httpx >=0.23.0,<0.24.0", ++ "httpx >=0.23.0,<0.25.0", + "email_validator >=1.1.1,<2.0.0", + "sqlalchemy >=1.4.42,<1.5", + "peewee >=3.13.3,<4.0.0", +-- +2.40.1 + diff --git a/python-fastapi.spec b/python-fastapi.spec index 95c1369..9b1d8d5 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -36,6 +36,10 @@ Patch: %{url}/pull/4409.patch # Upgrade databases and SQLAlchemy # https://github.com/tiangolo/fastapi/pull/5799 Patch: %{url}/pull/5799.patch +# Allow httpx 0.24.x for testing +# https://github.com/tiangolo/fastapi/pull/9578 +# Rebased on top of PR#5799 +Patch: 0001-Allow-httpx-0.24.x-for-testing.patch BuildRequires: python3-devel