!7 change version to fix installed error

From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-01-20 02:12:17 +00:00 committed by Gitee
commit b27047880c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 36 additions and 2 deletions

View File

@ -0,0 +1,30 @@
diff --git a/aiohttp.egg-info/requires.txt b/aiohttp.egg-info/requires.txt
index 746f3f8..bb8fe54 100644
--- a/aiohttp.egg-info/requires.txt
+++ b/aiohttp.egg-info/requires.txt
@@ -1,7 +1,7 @@
attrs>=17.3.0
-chardet<5.0,>=2.0
+chardet<=5.0,>=2.0
multidict<7.0,>=4.5
-async_timeout<4.0,>=3.0
+async_timeout<=4.0.2,>=3.0
yarl<2.0,>=1.0
typing_extensions>=3.6.5
diff --git a/setup.py b/setup.py
index 54462ba..a792d8c 100644
--- a/setup.py
+++ b/setup.py
@@ -66,9 +66,9 @@ except IndexError:
install_requires = [
"attrs>=17.3.0",
- "chardet>=2.0,<5.0",
+ "chardet>=2.0,<=5.0",
"multidict>=4.5,<7.0",
- "async_timeout>=3.0,<4.0",
+ "async_timeout>=3.0,<=4.0.2",
"yarl>=1.0,<2.0",
'idna-ssl>=1.0; python_version<"3.7"',
"typing_extensions>=3.6.5",

View File

@ -1,11 +1,12 @@
%global _empty_manifest_terminate_build 0
Name: python-aiohttp
Version: 3.7.4
Release: 2
Release: 3
Summary: Async http client/server framework (asyncio)
License: Apache-2.0
URL: https://github.com/aio-libs/aiohttp
Source0: https://files.pythonhosted.org/packages/99/f5/90ede947a3ce2d6de1614799f5fea4e93c19b6520a59dc5d2f64123b032f/aiohttp-3.7.4.post0.tar.gz
Patch0: change-requires-package-version-to-fix-installed-error.patch
BuildRequires: python3-attrs
BuildRequires: python3-chardet
@ -36,7 +37,7 @@ Provides: python3-aiohttp-doc
Development documents and examples for aiohttp.
%prep
%autosetup -n aiohttp-3.7.4.post0
%autosetup -n aiohttp-3.7.4.post0 -p1
%build
%py3_build
@ -76,6 +77,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Fri Jan 20 2023 xu_ping <xuping33@h-partners.com> - 3.7.4-3
- fix install error
* Fri May 20 2022 liukuo <liukuo@kylinos.cn> - 3.7.4-2
- License compliance rectification