diff --git a/0001-Allow-PyYAML-6.x.patch b/0001-Allow-PyYAML-6.x.patch new file mode 100644 index 0000000..b23edb5 --- /dev/null +++ b/0001-Allow-PyYAML-6.x.patch @@ -0,0 +1,34 @@ +From 254f10e3c23f8e22c4ac834c5f04d762155a4a24 Mon Sep 17 00:00:00 2001 +From: "Benjamin A. Beasley" +Date: Fri, 15 Oct 2021 14:20:08 -0400 +Subject: [PATCH] Allow PyYAML 6.x + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 50e0afe..fca6db2 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -73,7 +73,7 @@ doc = [ + "mdx-include >=1.4.1,<2.0.0", + "mkdocs-markdownextradata-plugin >=0.1.7,<0.3.0", + "typer-cli >=0.0.12,<0.0.13", +- "pyyaml >=5.3.1,<6.0.0" ++ "pyyaml >=5.3.1,<7.0.0" + ] + dev = [ + "python-jose[cryptography] >=3.3.0,<4.0.0", +@@ -87,7 +87,7 @@ all = [ + "jinja2 >=2.11.2,<4.0.0", + "python-multipart >=0.0.5,<0.0.6", + "itsdangerous >=1.1.0,<3.0.0", +- "pyyaml >=5.3.1,<6.0.0", ++ "pyyaml >=5.3.1,<7.0.0", + "ujson >=4.0.1,<5.0.0", + "orjson >=3.2.1,<4.0.0", + "email_validator >=1.1.1,<2.0.0", +-- +2.31.1 + diff --git a/python-fastapi.spec b/python-fastapi.spec index a499833..12a98ca 100644 --- a/python-fastapi.spec +++ b/python-fastapi.spec @@ -39,6 +39,9 @@ BuildArch: noarch # now, we just patch the expected schema downstream. The difference is # trivial—just an added default value. Patch0: fastapi-0.67.0-openapi-schema.patch +# Allow PyYAML 6.x +# https://github.com/tiangolo/fastapi/pull/4054 +Patch1: 0001-Allow-PyYAML-6.x.patch BuildRequires: python3-devel