15
0
forked from pool/python-hunter

Accepting request 1295277 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1295277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hunter?expand=0&rev=7
This commit is contained in:
2025-07-23 14:36:16 +00:00
committed by Git OBS Bridge
6 changed files with 19 additions and 72 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:16f4fb4dbde366bac61ebf235bc4d075bfd8748009c8a4e0327d2fbca6f611d6
size 672577

3
hunter-3.8.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea027d75655694c9e99e5a6c4fa62b673511f85f4076773d7c4ba3fd04047d85
size 656248

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Wed Jul 23 10:35:27 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.8.0
* Drop support for Python 3.8.
* Added support for Python 3.13, including freethreading variant
(but not really tested, as most of the test suite is singlethreaded).
* Fixed issues with latest Cython release (3.1.2).
* Simplified the `Event.__init__` so doesn't require or accept a Tracer
instance anymore to fill in some options.
* Fixed hardcoded python executable in tests.
Contributed by Steve Kowalik in (#126)
- Drop support-python-313.patch, fixed upstream
- Drop use-sys.executable.patch, merged upstream
-------------------------------------------------------------------
Fri Jul 4 02:35:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -17,16 +17,12 @@
Name: python-hunter
Version: 3.7.0
Version: 3.8.0
Release: 0
Summary: Pytest plugin for coverage reporting
License: BSD-2-Clause
URL: https://github.com/ionelmc/python-hunter
Source: https://files.pythonhosted.org/packages/source/h/hunter/hunter-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Fix the testsuite to build with Python 3.13
Patch0: support-python-313.patch
# PATCH-FIX-UPSTREAM gh#ionelmc/python-hunter#126
Patch1: use-sys.executable.patch
BuildRequires: %pythons
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module aspectlib}

View File

@@ -1,12 +0,0 @@
Index: hunter-3.7.0/tests/eviltracer.pxd
===================================================================
--- hunter-3.7.0.orig/tests/eviltracer.pxd
+++ hunter-3.7.0/tests/eviltracer.pxd
@@ -5,6 +5,7 @@ cimport cython
cdef extern from "vendor/_compat.h":
"""
#if PY_VERSION_HEX >= 0x030B00A7
+ #define Py_BUILD_CORE
#include "internal/pycore_frame.h"
#endif
"""

View File

@@ -1,52 +0,0 @@
From 5c1c453e19fce6cc1486db4e63a120d2646af97d Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Fri, 4 Jul 2025 11:45:12 +1000
Subject: [PATCH] Use sys.executable everywhere in test_remote
Not all systems use python to run the interpreter, and this also doesn't
help if the user has multiple interpreters in their path. Use
sys.executable like the other test case in this file.
---
tests/test_remote.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/test_remote.py b/tests/test_remote.py
index 6574cc8..76e2869 100644
--- a/tests/test_remote.py
+++ b/tests/test_remote.py
@@ -15,7 +15,7 @@
@pytest.mark.skipif('platform.system() == "Windows"')
def test_manhole():
- with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
+ with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
wait_for_strings(target.read, TIMEOUT, 'Oneshot activation is done by signal')
with TestProcess('hunter-trace', '-p', str(target.proc.pid), 'stdlib=False') as tracer, dump_on_error(tracer.read):
@@ -32,7 +32,7 @@ def test_manhole():
@pytest.mark.skipif('platform.system() == "Windows"')
def test_manhole_reattach():
- with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
+ with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
wait_for_strings(target.read, TIMEOUT, 'Oneshot activation is done by signal')
with TestProcess('hunter-trace', '-p', str(target.proc.pid), 'stdlib=False') as tracer, dump_on_error(tracer.read):
@@ -61,7 +61,7 @@ def test_manhole_reattach():
@pytest.mark.skipif('platform.system() == "Windows"')
def test_manhole_clean_exit():
- with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
+ with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
wait_for_strings(target.read, TIMEOUT, 'Oneshot activation is done by signal')
with TestProcess('hunter-trace', '-p', str(target.proc.pid), 'stdlib=False') as tracer, dump_on_error(tracer.read):
@@ -90,7 +90,7 @@ def test_manhole_clean_exit():
@pytest.mark.skipif('platform.python_implementation() == "PyPy"')
@pytest.mark.skipif('not which("gdb")')
def test_gdb():
- with TestProcess('python', '-msamplemanhole') as target, dump_on_error(target.read):
+ with TestProcess(sys.executable, '-msamplemanhole') as target, dump_on_error(target.read):
with TestProcess('hunter-trace', '-p', str(target.proc.pid), '--gdb', 'stdlib=False') as tracer, dump_on_error(tracer.read):
wait_for_strings(
tracer.read,