Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
1aea712fd0
!19 修复由python-urllib3引起的构建失败
From: @caodongxia 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-04-13 02:41:09 +00:00
caodongxia
ed69aef2bb add settimeout method to FakeSocket 2023-04-13 09:52:40 +08:00
openeuler-ci-bot
dd18638903
!13 update to version 1.24.7
From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-14 09:06:24 +00:00
wang--ge
569c8eff22 update to version 1.24.7 2022-10-14 16:22:59 +08:00
openeuler-ci-bot
5fd424c008
!7 Upgrade python-botocore to 1.23.4
Merge pull request !7 from starlet_dx/openEuler-22.03-LTS-Next
2022-01-11 01:47:27 +00:00
starlet-dx
c45ccb6995 Upgrade python-botocore to 1.23.4 2022-01-10 20:51:00 +08:00
starlet-dx
560449b9c4 Solve the problem of python-botocore compilation dependencies. 2022-01-10 12:57:50 +08:00
openeuler-ci-bot
82f52ae7ee !5 [sync] PR-4: update to 1.20.26
From: @openeuler-sync-bot
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-08-19 08:56:07 +00:00
lmz
c3467f3ffa update to 1.20.26
(cherry picked from commit c9b4167cfa060056fb6e87012390532ca8d4c19e)
2021-08-19 09:44:08 +08:00
openeuler-ci-bot
d9be0ec61d !3 Package init
From: @lyn1001
Reviewed-by: @hht8,@shinwell_hu
Signed-off-by: @shinwell_hu
2020-11-16 17:59:15 +08:00
lyn1001
2f0914faf8 Package init 2020-11-16 16:40:50 +08:00
4 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,24 @@
From e2b9b3779ad48be0e261f617b301db77a8257343 Mon Sep 17 00:00:00 2001
From: Seth Michael Larson <sethmichaellarson@gmail.com>
Date: Thu, 10 Nov 2022 16:38:25 -0600
Subject: [PATCH] Add a settimeout() method to FakeSocket (#2810)
Reference: https://github.com/boto/botocore/commit/e2b9b3779ad48be0e261f617b301db77a8257343
---
tests/unit/test_awsrequest.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/unit/test_awsrequest.py b/tests/unit/test_awsrequest.py
index 22bd9a746d..5370f5f80e 100644
--- a/tests/unit/test_awsrequest.py
+++ b/tests/unit/test_awsrequest.py
@@ -58,6 +58,9 @@ def makefile(self, mode, bufsize=None):
def close(self):
pass
+ def settimeout(self, value):
+ pass
+
class BytesIOWithLen(six.BytesIO):
def __len__(self):

BIN
botocore-1.24.7.tar.gz Normal file

Binary file not shown.

100
python-botocore.spec Normal file
View File

@ -0,0 +1,100 @@
%global pypi_name botocore
%global _empty_manifest_terminate_build 0
Name: python-%{pypi_name}
Version: 1.24.7
Release: 2
Summary: Low-level, data-driven core of boto 3
License: Apache-2.0
URL: https://github.com/boto/botocore
Source0: https://files.pythonhosted.org/packages/b6/27/82dcaa46588c3071b195f75ec1c3ce5d6ce8aad26701dcc661cbca4961be/botocore-1.24.7.tar.gz
Patch0: add-settimeout-method-to-FakeSocket.patch
BuildArch: noarch
%description
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
%package -n python3-%{pypi_name}
Summary: Low-level, data-driven core of boto 3
Provides: python-botocore
BuildRequires: python3-devel python3-setuptools
BuildRequires: python3-urllib3
BuildRequires: python3-dateutil
BuildRequires: python3-jmespath
BuildRequires: python3-pytest
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-jmespath
Requires: python3-dateutil
Requires: python3-urllib3
%description -n python3-%{pypi_name}
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
%package help
Summary: Low-level, data-driven core of boto 3.
Provides: python3-botocore-doc
%description help
A low-level interface to a growing number of Amazon Web Services. The
botocore package is the foundation for the AWS CLI as well as boto3.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} -m pytest tests/unit
%files -n python3-%{pypi_name} -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Apr 13 2023 caodongxia <caodongxia@h-partners.com> - 1.24.7-2
- Add settimeout method to FakeSocket
* Fri Oct 14 2022 Ge Wang <wangge20@h-partners.com> - 1.24.7-1
- Upgrade to version 1.24.7
* Mon Jan 10 2022 yaoxin <yaoxin30@huawei.com> - 1.23.4-1
- Upgrade python-botocore to 1.23.4
* Mon Jul 26 2021 OpenStack_SIG <openstack@openeuler.org> - 1.20.26-1
- update to 1.20.26
* Mon Nov 16 2020 yanan li <liyanan32@huawei.com> - 1.19.17-1
- Package init

5
python-botocore.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/boto/botocore.git
version_control: github
src_repo: boto/botocore
tag_prefix: ""
separator: "."