From 53018691709813217da3e203152090fb2be6ad06 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 13 Apr 2023 09:52:40 +0800 Subject: [PATCH] add settimeout method to FakeSocket (cherry picked from commit ed69aef2bbe74d63e30e118a1f10b9831d6cd8a6) --- add-settimeout-method-to-FakeSocket.patch | 24 +++++++++++++++++++++++ python-botocore.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 add-settimeout-method-to-FakeSocket.patch diff --git a/add-settimeout-method-to-FakeSocket.patch b/add-settimeout-method-to-FakeSocket.patch new file mode 100644 index 0000000..698ec52 --- /dev/null +++ b/add-settimeout-method-to-FakeSocket.patch @@ -0,0 +1,24 @@ +From e2b9b3779ad48be0e261f617b301db77a8257343 Mon Sep 17 00:00:00 2001 +From: Seth Michael Larson +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): + \ No newline at end of file diff --git a/python-botocore.spec b/python-botocore.spec index f7a2ff0..9d41936 100644 --- a/python-botocore.spec +++ b/python-botocore.spec @@ -2,11 +2,12 @@ %global _empty_manifest_terminate_build 0 Name: python-%{pypi_name} Version: 1.24.7 -Release: 1 +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 @@ -83,6 +84,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Apr 13 2023 caodongxia - 1.24.7-2 +- Add settimeout method to FakeSocket + * Fri Oct 14 2022 Ge Wang - 1.24.7-1 - Upgrade to version 1.24.7 -- Gitee