14
0
forked from pool/python-mocket

Accepting request 1281446 from devel:languages:python

- only use python311 on suse platforms

OBS-URL: https://build.opensuse.org/request/show/1281446
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mocket?expand=0&rev=42
This commit is contained in:
2025-05-31 17:14:44 +00:00
committed by Git OBS Bridge
2 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed May 28 07:06:51 UTC 2025 - Dirk Müller <dmueller@suse.com>
- only use python311 on suse platforms
-------------------------------------------------------------------
Tue May 27 07:38:10 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Use python3-httpx in pkg_vcmp for Tumbleweed to do not have a fixed
python version in that check.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 19 09:09:53 UTC 2025 - Sebastian Wagner <sebix@sebix.at> Mon May 19 09:09:53 UTC 2025 - Sebastian Wagner <sebix@sebix.at>

View File

@@ -20,6 +20,15 @@
%if "%{flavor}" == "test" %if "%{flavor}" == "test"
%define psuffix -test %define psuffix -test
%bcond_without test %bcond_without test
%if 0%{?suse_version} && 0%{?suse_version} < 1600
# Modern stack for Leap 15
%global mypython python311
%else
# primary python for Tumbleweed and Leap 16
%global mypython python3
%endif
%else %else
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
@@ -104,7 +113,7 @@ sleep 2
# Checks the ability to record a real request and response. Not available inside obs. # Checks the ability to record a real request and response. Not available inside obs.
donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recording or test_no_dangling_fds" donttest="test_asyncio_record_replay or test_truesendall_with_dump_from_recording or test_no_dangling_fds"
# The reference recording has different headers in this case # The reference recording has different headers in this case
%if %{pkg_vcmp python311-httpx < 0.23} %if %{pkg_vcmp %{mypython}-httpx < 0.23}
donttest="$donttest or test_truesendall_with_dump_from_recording" donttest="$donttest or test_truesendall_with_dump_from_recording"
%endif %endif
# fails with new incompatible aiohttp version https://github.com/mindflayer/python-mocket/issues/247 # fails with new incompatible aiohttp version https://github.com/mindflayer/python-mocket/issues/247