14
0
forked from pool/python-mocket

Accepting request 1280472 from home:dgarcia:branches:devel:languages:python

- Use python3-httpx in pkg_vcmp for Tumbleweed to do not have a fixed
  python version in that check.

OBS-URL: https://build.opensuse.org/request/show/1280472
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=99
This commit is contained in:
Sebastian Wagner
2025-05-27 08:33:03 +00:00
committed by Git OBS Bridge
parent 2c3deb3acb
commit 7bd8466df4
2 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
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>

View File

@@ -20,6 +20,15 @@
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%if 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
%define psuffix %{nil}
%bcond_with test
@@ -104,7 +113,7 @@ sleep 2
# 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"
# 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"
%endif
# fails with new incompatible aiohttp version https://github.com/mindflayer/python-mocket/issues/247