diff --git a/python-ptrace-0.9.8.tar.gz b/python-ptrace-0.9.8.tar.gz deleted file mode 100644 index 45895d7..0000000 --- a/python-ptrace-0.9.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b54c43e87caf02d1452d6400649822c99e8f7ca31fa3f655ea88caf85369e3d4 -size 104079 diff --git a/python-ptrace-0.9.9.tar.gz b/python-ptrace-0.9.9.tar.gz new file mode 100644 index 0000000..abdc01f --- /dev/null +++ b/python-ptrace-0.9.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e643a7199fdef9ee35cb3afda293951dff0b1a628fa891856fd36b1482f1d2c +size 106526 diff --git a/python-ptrace-pr81-importlib.patch b/python-ptrace-pr81-importlib.patch deleted file mode 100644 index c3a9186..0000000 --- a/python-ptrace-pr81-importlib.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 80e0c97a84eccb8b82737cf40b9c5581c20c245f Mon Sep 17 00:00:00 2001 -From: Mario Haustein -Date: Sat, 16 Sep 2023 13:49:43 +0200 -Subject: [PATCH] Remove deprecated `imp` module - ---- - setup.py | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/setup.py b/setup.py -index 4d6ba36..ad54f9a 100755 ---- a/setup.py -+++ b/setup.py -@@ -28,7 +28,7 @@ - # - git commit -a -m "post-release" - # - git push - --from imp import load_source -+import importlib.util - from os import path - try: - # setuptools supports bdist_wheel -@@ -55,7 +55,10 @@ - with open('README.rst') as fp: - LONG_DESCRIPTION = fp.read() - --ptrace = load_source("version", path.join("ptrace", "version.py")) -+ptrace_spec = importlib.util.spec_from_file_location("version", path.join("ptrace", "version.py")) -+ptrace = importlib.util.module_from_spec(ptrace_spec) -+ptrace_spec.loader.exec_module(ptrace) -+ - PACKAGES = {} - for name in MODULES: - PACKAGES[name] = name.replace(".", "/") diff --git a/python-ptrace-pr83-importlib.patch b/python-ptrace-pr83-importlib.patch deleted file mode 100644 index bc0a351..0000000 --- a/python-ptrace-pr83-importlib.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 41f5378bbf4bfa75970d5cc3f6615411cff61a6c Mon Sep 17 00:00:00 2001 -From: Stephen Kitt -Date: Sun, 10 Dec 2023 19:07:27 +0100 -Subject: [PATCH] Use importlib instead of imp in setup_cptrace.py - -Signed-off-by: Stephen Kitt ---- - setup_cptrace.py | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/setup_cptrace.py b/setup_cptrace.py -index 8de9d01..f06b792 100755 ---- a/setup_cptrace.py -+++ b/setup_cptrace.py -@@ -1,5 +1,7 @@ - #!/usr/bin/env python - -+import importlib.util -+ - SOURCES = ['cptrace/cptrace.c'] - - CLASSIFIERS = [ -@@ -17,7 +19,6 @@ - - - def main(): -- from imp import load_source - from os import path - from sys import argv - -@@ -29,7 +30,10 @@ def main(): - - cptrace_ext = Extension('cptrace', sources=SOURCES) - -- cptrace = load_source("version", path.join("cptrace", "version.py")) -+ cptrace_spec = importlib.util.spec_from_file_location("version", -+ path.join("cptrace", "version.py")) -+ cptrace = importlib.util.module_from_spec(cptrace_spec) -+ cptrace_spec.loader.exec_module(cptrace) - - install_options = { - "name": cptrace.PACKAGE, diff --git a/python-python-ptrace.changes b/python-python-ptrace.changes index a97d71f..434dbcf 100644 --- a/python-python-ptrace.changes +++ b/python-python-ptrace.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Dec 11 05:53:43 UTC 2025 - Steve Kowalik + +- Update to 0.9.9: + * Fix PROC_MAP_REGEX for three digit minor device id by @fab1ano in #73 + * Add support for RISC-V by @yuzibo in #76 + * Fix arguments of pipe/pipe2 system calls. by @jopereira in #78 + * do not raise an exception for a valid process status by @duanev in #80 + * Remove deprecated imp module by @hamarituc in #81 + * Use importlib instead of imp in setup_cptrace.py by @skitt in #83 +- Drop patches, included upstream: + * python-ptrace-pr81-importlib.patch + * python-ptrace-pr83-importlib.patch + ------------------------------------------------------------------- Sun Mar 3 19:17:50 UTC 2024 - Ben Greiner diff --git a/python-python-ptrace.spec b/python-python-ptrace.spec index b783042..b79e17b 100644 --- a/python-python-ptrace.spec +++ b/python-python-ptrace.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-ptrace # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ %global flavor @BUILD_FLAVOR@%{nil} -%define pyversion 0.9.8 +%define pyversion 0.9.9 %define cversion 0.6.1 %if "%{flavor}" == "" %define pkgname python-ptrace @@ -41,13 +41,8 @@ Version: %{pkgversion} Release: 0 Summary: Python binding for ptrace License: GPL-2.0-only -Group: Development/Languages/Python URL: https://github.com/vstinner/python-ptrace Source: https://github.com/haypo/python-ptrace/archive/%{pyversion}.tar.gz#/python-ptrace-%{pyversion}.tar.gz -# PATCH-FIX-UPSTREAM - Add python-ptrace-pr81-importlib.patch gh#vstinner/python-ptrace#81 -Patch0: https://github.com/vstinner/python-ptrace/pull/81.patch#/python-ptrace-pr81-importlib.patch -# PATCH-FIX-UPSTREAM - Add python-ptrace-pr83-importlib.patch gh#vstinner/python-ptrace#83 -Patch1: https://github.com/vstinner/python-ptrace/pull/83.patch#/python-ptrace-pr83-importlib.patch %if "%{flavor}" == "cptrace" BuildRequires: %{python_module devel} %else