!5 [同步pr] python-connexion:更新install_requires中对PyYAML的版本限制
From: @njlzk Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
70068c0893
25
huawei-update-pyyaml-version.patch
Normal file
25
huawei-update-pyyaml-version.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 4ae76e15a8f5bf3b4223b554cecc93537f4511ae Mon Sep 17 00:00:00 2001
|
||||
From: liuzhikang <liuzhikang3@huawei.com>
|
||||
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
|
||||
|
||||
@ -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 <liuzhikang3@huawei.com> - 2.9.0-2
|
||||
- Update the version of PyYAML from 6 to 7 in install_requires.
|
||||
|
||||
* Mon Aug 30 2021 Python_Bot <Python_Bot@openeuler.org> - 2.9.0-1
|
||||
- Package Spec generated
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user