2e1d20d
%global srcname  subprocess-tee
2e1d20d
%global slugname subprocess_tee
fbe8e10
%global forgeurl https://github.com/pycontribs/subprocess-tee
5d835a8
2e1d20d
%global common_description %{expand:
2e1d20d
This package provides an drop-in alternative to subprocess.run that captures
2e1d20d
the output while still printing it in real time, just the way tee does.
2e1d20d
}
5d835a8
2e1d20d
%bcond_without tests
5d835a8
2e1d20d
Name:           python-%{srcname}
13f2f72
Version:        0.4.1
2e1d20d
%forgemeta
2e1d20d
Release:        %autorelease
2e1d20d
Summary:        A subprocess.run that works like tee, being able to display output in real time while still capturing it
2e1d20d
URL:            %{forgeurl}
2e1d20d
Source:         %{pypi_source}
c3588d9
Patch:          0001-Remove-unnecessary-test-deps.patch
2e1d20d
License:        MIT
2e1d20d
BuildArch:      noarch
e3d0832
5d835a8
BuildRequires: python3-devel
5d835a8
fbe8e10
%description %{common_description}
5d835a8
5d835a8
%package -n python3-%{srcname}
fbe8e10
Summary: %summary
5d835a8
fbe8e10
%description -n python3-%{srcname} %{common_description}
5d835a8
5d835a8
%prep
2e1d20d
%forgeautosetup -p1
5d835a8
fbe8e10
%generate_buildrequires
2e1d20d
%pyproject_buildrequires -r %{?with_tests:-x test}
5d835a8
5d835a8
%build
fbe8e10
%pyproject_wheel
5d835a8
5d835a8
%install
fbe8e10
%pyproject_install
2e1d20d
%pyproject_save_files %{slugname}
5d835a8
fbe8e10
%if %{with tests}
5d835a8
%check
2e1d20d
%pytest test -k "not test_molecule"
fbe8e10
%endif
5d835a8
2e1d20d
%files -n python3-%{srcname} -f %{pyproject_files}
5d835a8
%license LICENSE
3ab0e31
%doc README.md
5d835a8
5d835a8
%changelog
2e1d20d
%autochangelog