From c9ac2161064306e4de4dc04ee78d0ac74a0e3d13c1e06c7baae969e6b460d8cc Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 23 Jul 2025 10:53:38 +0000 Subject: [PATCH] Accepting request 1295272 from home:glaubitz:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/1295272 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hunter?expand=0&rev=15 --- hunter-3.7.0.tar.gz | 3 --- hunter-3.8.0.tar.gz | 3 +++ python-hunter.changes | 15 ++++++++++++ python-hunter.spec | 6 +---- support-python-313.patch | 12 ---------- use-sys.executable.patch | 52 ---------------------------------------- 6 files changed, 19 insertions(+), 72 deletions(-) delete mode 100644 hunter-3.7.0.tar.gz create mode 100644 hunter-3.8.0.tar.gz delete mode 100644 support-python-313.patch delete mode 100644 use-sys.executable.patch diff --git a/hunter-3.7.0.tar.gz b/hunter-3.7.0.tar.gz deleted file mode 100644 index 5e6ea45..0000000 --- a/hunter-3.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:16f4fb4dbde366bac61ebf235bc4d075bfd8748009c8a4e0327d2fbca6f611d6 -size 672577 diff --git a/hunter-3.8.0.tar.gz b/hunter-3.8.0.tar.gz new file mode 100644 index 0000000..2fb50f0 --- /dev/null +++ b/hunter-3.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea027d75655694c9e99e5a6c4fa62b673511f85f4076773d7c4ba3fd04047d85 +size 656248 diff --git a/python-hunter.changes b/python-hunter.changes index e43e9b2..74fa80c 100644 --- a/python-hunter.changes +++ b/python-hunter.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Jul 23 10:35:27 UTC 2025 - John Paul Adrian Glaubitz + +- 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 diff --git a/python-hunter.spec b/python-hunter.spec index b05f547..1e93233 100644 --- a/python-hunter.spec +++ b/python-hunter.spec @@ -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} diff --git a/support-python-313.patch b/support-python-313.patch deleted file mode 100644 index f6d3440..0000000 --- a/support-python-313.patch +++ /dev/null @@ -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 - """ diff --git a/use-sys.executable.patch b/use-sys.executable.patch deleted file mode 100644 index 44873b9..0000000 --- a/use-sys.executable.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 5c1c453e19fce6cc1486db4e63a120d2646af97d Mon Sep 17 00:00:00 2001 -From: Steve Kowalik -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,