Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
a989c99817 |
@@ -1,43 +0,0 @@
|
|||||||
From 8dcde7134573acb506c7f34746573cbaeccf9b4d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Johannes Kastl <kastl@b1-systems.de>
|
|
||||||
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 <kastl@b1-systems.de>
|
|
||||||
---
|
|
||||||
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
|
|
||||||
|
|
@@ -1,3 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 29 09:49:40 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- Use %autosetup macro: allows us to eliminate usage of deprecated
|
||||||
|
%patchN syntax.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 17 07:05:58 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Jul 17 07:05:58 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-subprocess-tee
|
# spec file for package python-subprocess-tee
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,13 +18,12 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-subprocess-tee
|
Name: python-subprocess-tee
|
||||||
Version: 0.4.1
|
Version: 0.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Captures the output of subprocesses in real-time
|
Summary: Captures the output of subprocesses in real-time
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pycontribs/subprocess-tee
|
URL: https://github.com/pycontribs/subprocess-tee
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/subprocess-tee/subprocess-tee-%{version}.tar.gz
|
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
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module rich}
|
BuildRequires: %{python_module rich}
|
||||||
@@ -49,8 +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.
|
to provide instant feedback (progress) related to what is happening.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n subprocess-tee-%{version}
|
%autosetup -p1 -n subprocess_tee-%{version}
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
BIN
subprocess-tee-0.4.1.tar.gz
(Stored with Git LFS)
BIN
subprocess-tee-0.4.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
subprocess_tee-0.4.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
subprocess_tee-0.4.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user