commit af4113a7b217bddf9b6dbbad2eeadd7364f219b44821fe03ed0564ea0d18b5bc Author: Matej Cepl Date: Thu Mar 17 07:53:23 2022 +0000 Accepting request 962276 from home:sebix is required for ansible-compat, which is required for the newest ansible-lint version fixed summary comment on skipped test. IMO the test is not needed. Otherwise we would need to package molecule first. OBS-URL: https://build.opensuse.org/request/show/962276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subprocess-tee?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-subprocess-tee.changes b/python-subprocess-tee.changes new file mode 100644 index 0000000..6e8e6bc --- /dev/null +++ b/python-subprocess-tee.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Mar 15 20:31:36 UTC 2022 - Sebastian Wagner + +- Initial package for version 0.3.5. diff --git a/python-subprocess-tee.spec b/python-subprocess-tee.spec new file mode 100644 index 0000000..69e3323 --- /dev/null +++ b/python-subprocess-tee.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-subprocess-tee +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-subprocess-tee +Version: 0.3.5 +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 +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module pytest} +# SECTION test +BuildRequires: %{python_module enrich} +# /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-generators +%{?python_enable_dependency_generator} +BuildArch: noarch +%python_subpackages + +%description +This package provides a drop-in alternative to `subprocess.run` that +captures the output while still printing it in real-time, just the way +`tee` does. + +Printing output in real-time while still capturing is valuable for +any tool that executes long-running child processes. For those, you do want +to provide instant feedback (progress) related to what is happening. + +%prep +%setup -q -n subprocess-tee-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# program "molecule" is no available in openSUSE. But this test is platform-independent, so not required +%pytest -k 'not test_molecule' + +%files %{python_files} +%{python_sitelib}/subprocess_tee* +%doc README.md +%license LICENSE + +%changelog diff --git a/subprocess-tee-0.3.5.tar.gz b/subprocess-tee-0.3.5.tar.gz new file mode 100644 index 0000000..cd51157 --- /dev/null +++ b/subprocess-tee-0.3.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577 +size 16887