diff --git a/add-settimeout-method-to-FakeSocket.patch b/add-settimeout-method-to-FakeSocket.patch new file mode 100644 index 0000000000000000000000000000000000000000..698ec52ec2a41f455e97b923316f19b1f2bf5367 --- /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 97d6494f7bb56d70cac2db790eaffc6d22a973c4..9ee58afad884480ee0514dd6ffccf545eb35a71b 100644 --- a/python-botocore.spec +++ b/python-botocore.spec @@ -1,11 +1,12 @@ %global pypi_name botocore Name: python-%{pypi_name} Version: 1.23.4 -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/b1/25/2da6559083f9dc3f9863c1dc0c18ec18098fd06990f71693c3b63777ce57/botocore-1.23.4.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 @@ -49,6 +50,9 @@ rm -vr tests/functional/leak %{python3_sitelib}/%{pypi_name}-*.egg-info/ %changelog +* Thu Apr 13 2023 caodongxia - 1.23.4-2 +- Add settimeout method to FakeSocket + * Mon Jan 10 2022 yaoxin - 1.23.4-1 - Upgrade python-botocore to 1.23.4