14
0

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
This commit is contained in:
2022-03-17 07:53:23 +00:00
committed by Git OBS Bridge
commit af4113a7b2
5 changed files with 100 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue Mar 15 20:31:36 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Initial package for version 0.3.5.

View File

@@ -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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff5cced589a4b8ac973276ca1ba21bb6e3de600cde11a69947ff51f696efd577
size 16887