From a427eceed4c3b33e0c94a8f2d75d0c760d9a001e Mon Sep 17 00:00:00 2001 From: njlzk Date: Thu, 17 Feb 2022 15:10:56 +0800 Subject: [PATCH] update pyyaml version --- huawei-update-pyyaml-version.patch | 25 +++++++++++++++++++++++++ python-connexion.spec | 9 +++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 huawei-update-pyyaml-version.patch diff --git a/huawei-update-pyyaml-version.patch b/huawei-update-pyyaml-version.patch new file mode 100644 index 0000000..77644a3 --- /dev/null +++ b/huawei-update-pyyaml-version.patch @@ -0,0 +1,25 @@ +From 4ae76e15a8f5bf3b4223b554cecc93537f4511ae Mon Sep 17 00:00:00 2001 +From: liuzhikang +Date: Wed, 16 Feb 2022 16:09:35 +0800 +Subject: [PATCH] update pyyaml version in install_requires. + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index adf00a5..295e5aa 100755 +--- a/setup.py ++++ b/setup.py +@@ -22,7 +22,7 @@ version = read_version('connexion') + install_requires = [ + 'clickclick>=1.2,<21', + 'jsonschema>=2.5.1,<4', +- 'PyYAML>=5.1,<6', ++ 'PyYAML>=5.1,<7', + 'requests>=2.9.1,<3', + 'inflection>=0.3.1,<0.6', + 'openapi-spec-validator>=0.2.4,<0.4', +-- +2.27.0 + diff --git a/python-connexion.spec b/python-connexion.spec index 9ff9d70..b69e5a6 100644 --- a/python-connexion.spec +++ b/python-connexion.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-connexion Version: 2.9.0 -Release: 1 +Release: 2 Summary: Connexion - API first applications with OpenAPI/Swagger and Flask License: Apache License Version 2.0 URL: https://github.com/zalando/connexion @@ -12,6 +12,8 @@ BuildRequires: python3-devel python3-setuptools python3-clickclick python3-json BuildRequires: python3-requests python3-inflection python3-werkzeug python3-flask BuildRequires: python3-PyYAML python3-swagger-ui-bundle python3-flake8 +Patch9001: huawei-update-pyyaml-version.patch + %description Connexion is a framework that automagically handles HTTP requests based on `OpenAPI Specification`_ (formerly known as Swagger Spec) of your API described in `YAML format`_. Connexion allows you to @@ -35,7 +37,7 @@ Provides: python3-connexion-doc Development documents and examples for connexion %prep -%autosetup -n connexion-2.9.0 +%autosetup -n connexion-2.9.0 -p1 %build %py3_build @@ -75,5 +77,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Feb 17 2022 liuzhikang - 2.9.0-2 +- Update the version of PyYAML from 6 to 7 in install_requires. + * Mon Aug 30 2021 Python_Bot - 2.9.0-1 - Package Spec generated -- Gitee