diff --git a/0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch b/0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch deleted file mode 100644 index ed1d93e..0000000 --- a/0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch +++ /dev/null @@ -1,43 +0,0 @@ -From 8dcde7134573acb506c7f34746573cbaeccf9b4d Mon Sep 17 00:00:00 2001 -From: Johannes Kastl -Date: Fri, 5 May 2023 20:11:37 +0200 -Subject: [PATCH] test/test_unit.py: do not use python3, rather use - sys.executable to use the same python version this test is running with - -Signed-off-by: Johannes Kastl ---- - test/test_unit.py | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/test/test_unit.py b/test/test_unit.py -index 1dd4d2f..652fce9 100644 ---- a/test/test_unit.py -+++ b/test/test_unit.py -@@ -1,5 +1,6 @@ - """Unittests.""" - import subprocess -+import sys - from typing import Dict - - import pytest -@@ -30,7 +31,7 @@ def test_run_list() -> None: - # NOTICE: subprocess.run() does fail to capture any output when cmd is - # a list and you specific shell=True. Still, when not mentioning shell, - # it does work. -- cmd = ["python3", "--version"] -+ cmd = [sys.executable, "--version"] - old_result = subprocess.run( - cmd, - # shell=True, -@@ -47,7 +48,7 @@ def test_run_list() -> None: - - def test_run_echo(capsys: CaptureFixture[str]) -> None: - """Validate run call with echo dumps command.""" -- cmd = ["python3", "--version"] -+ cmd = [sys.executable, "--version"] - old_result = subprocess.run( - cmd, - # shell=True, --- -2.40.1 - diff --git a/python-subprocess-tee.changes b/python-subprocess-tee.changes index c213283..a5c768b 100644 --- a/python-subprocess-tee.changes +++ b/python-subprocess-tee.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sat Mar 29 09:49:40 UTC 2025 - Dirk Müller + +- update to 0.4.2: + * Use exec mode when passed a list of strings (#101) +- drop 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch: + merged upstream + ------------------------------------------------------------------- Thu May 16 15:09:42 UTC 2024 - Dominique Leuenberger diff --git a/python-subprocess-tee.spec b/python-subprocess-tee.spec index dafc1d1..4288675 100644 --- a/python-subprocess-tee.spec +++ b/python-subprocess-tee.spec @@ -1,7 +1,7 @@ # # spec file for package python-subprocess-tee # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,12 @@ %{?sle15_python_module_pythons} Name: python-subprocess-tee -Version: 0.4.1 +Version: 0.4.2 Release: 0 Summary: Captures the output of subprocesses in real-time License: MIT URL: https://github.com/pycontribs/subprocess-tee -Source: https://files.pythonhosted.org/packages/source/s/subprocess-tee/subprocess-tee-%{version}.tar.gz -Patch1: 0001-test-test_unit.py-do-not-use-python3-rather-use-sys..patch +Source: https://files.pythonhosted.org/packages/source/s/subprocess-tee/subprocess_tee-%{version}.tar.gz BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module rich} @@ -49,7 +48,7 @@ any tool that executes long-running child processes. For those, you do want to provide instant feedback (progress) related to what is happening. %prep -%autosetup -p1 -n subprocess-tee-%{version} +%autosetup -p1 -n subprocess_tee-%{version} %build %pyproject_wheel diff --git a/subprocess-tee-0.4.1.tar.gz b/subprocess-tee-0.4.1.tar.gz deleted file mode 100644 index 85f18a4..0000000 --- a/subprocess-tee-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b3c124993f8b88d1eb1c2fde0bc2069787eac720ba88771cba17e8c93324825d -size 13599 diff --git a/subprocess_tee-0.4.2.tar.gz b/subprocess_tee-0.4.2.tar.gz new file mode 100644 index 0000000..1136727 --- /dev/null +++ b/subprocess_tee-0.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91b2b4da3aae9a7088d84acaf2ea0abee3f4fd9c0d2eae69a9b9122a71476590 +size 14951