File saltbundlepy-pytest-shell-utilities.spec of Package saltbundlepy-pytest-shell-utilities

#
# spec file for package saltbundlepy-pytest-shell-utilities
#
# Copyright (c) 2023 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/
#


%{?!saltbundlepy_module:%define saltbundlepy_module() saltbundlepy-%{**}}
%define pythons saltbundlepy

Name:           saltbundlepy-pytest-shell-utilities
Version:        1.6.0
Release:        0
Summary:        Pytest plugin to simplify running shell commands against the system
License:        Apache-2.0
URL:            https://github.com/saltstack/pytest-shell-utilities
Source:         https://files.pythonhosted.org/packages/source/p/pytest-shell-utilities/pytest-shell-utilities-%{version}.tar.gz
BuildRequires:  saltbundlepy-rpm-macros
BuildRequires:  %{saltbundlepy_module setuptools}
BuildRequires:  %{saltbundlepy_module setuptools >= 50.3.2}
BuildRequires:  %{saltbundlepy_module setuptools-declarative-requirements}
BuildRequires:  %{saltbundlepy_module setuptools-scm >= 3.4}
BuildRequires:  %{saltbundlepy_module pip}
BuildRequires:  %{saltbundlepy_module wheel}
# SECTION test requirements
%if %{with test}
BuildRequires:  %{saltbundlepy_module attrs >= 19.2.0}
BuildRequires:  %{saltbundlepy_module psutil >= 5.0.0}
BuildRequires:  %{saltbundlepy_module pytest >= 6.0.0}
BuildRequires:  %{saltbundlepy_module pytest-helpers-namespace}
BuildRequires:  %{saltbundlepy_module pytest-skip-markers}
BuildRequires:  %{saltbundlepy_module typing-extensions}
%endif
# /SECTION
BuildRequires:  fdupes
Requires:       saltbundlepy-attrs >= 19.2.0
Requires:       saltbundlepy-psutil >= 5.0.0
Requires:       saltbundlepy-pytest >= 6.0.0
Requires:       saltbundlepy-pytest-helpers-namespace
Requires:       saltbundlepy-pytest-skip-markers
Requires:       saltbundlepy-typing-extensions
BuildArch:      noarch
%python_subpackages

%description
Pytest plugin to simplify running shell commands against the system

%prep
%setup -q -n pytest-shell-utilities-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%doc CHANGELOG.rst README.rst changelog changelog/.gitkeep
%license LICENSE
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by