From 0b6fe926851c6bc4b520190256ce9f7a9d7220fce5d8c8f6aec5777db334f5fa Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 31 Dec 2023 12:33:16 +0000 Subject: [PATCH] Accepting request 1135688 from home:alarrosa:branches:devel:languages:python - Do not use python-boto3 when building in SLE where it's currently not available for python311 OBS-URL: https://build.opensuse.org/request/show/1135688 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=60 --- python-httpretty.changes | 6 ++++++ python-httpretty.spec | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/python-httpretty.changes b/python-httpretty.changes index c7ca45b..a2d8fd0 100644 --- a/python-httpretty.changes +++ b/python-httpretty.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 29 12:33:24 UTC 2023 - Antonio Larrosa + +- Do not use python-boto3 when building in SLE where it's currently + not available for python311 + ------------------------------------------------------------------- Tue Jun 13 08:37:50 UTC 2023 - ecsos diff --git a/python-httpretty.spec b/python-httpretty.spec index ad0be80..f6b565c 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -17,6 +17,11 @@ %{?sle15_python_module_pythons} +%if 0%{?suse_version} < 1550 +%bcond_with boto3 +%else +%bcond_without boto3 +%endif Name: python-httpretty Version: 1.1.4 Release: 0 @@ -35,7 +40,9 @@ Patch2: double-slash-paths.patch Patch3: 460-miliseconds_tests.patch # PATCH-FIX-OPENSUSE Relax the time for one test case from 2ms to 3ms. Patch4: relax-test-callback-response.patch +%if %{with boto3} BuildRequires: %{python_module boto3} +%endif BuildRequires: %{python_module eventlet} BuildRequires: %{python_module fakeredis} BuildRequires: %{python_module freezegun} @@ -59,6 +66,9 @@ It is similar to Ruby's FakeWeb. %prep %autosetup -p1 -n httpretty-%{version} +%if !%{with boto3} +rm tests/bugfixes/nosetests/test_416_boto3.py +%endif %build %python_build