2023-10-10 09:46:31 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-pytest-salt-factories
|
|
|
|
|
#
|
2023-10-10 10:06:31 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2023-10-10 09:46:31 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
2023-10-10 10:06:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%define _version 1.0.0
|
|
|
|
|
%define _rc_version rc21
|
2023-10-10 09:46:31 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with libalternatives
|
|
|
|
|
%endif
|
|
|
|
|
Name: python-pytest-salt-factories
|
|
|
|
|
Version: %{_version}~%{_rc_version}
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: A pytest plugin for testing Salt
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://pytest-salt-factories.readthedocs.io/en/latest/
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pytest-salt-factories/pytest-salt-factories-%{_version}%{_rc_version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module devel}
|
2023-10-10 10:06:31 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-10-10 09:46:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools >= 50.3.2}
|
|
|
|
|
BuildRequires: %{python_module setuptools-declarative-requirements}
|
2023-10-10 10:06:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2023-10-10 09:46:31 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
|
BuildRequires: fdupes
|
2023-10-10 10:06:31 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-10-10 09:46:31 +00:00
|
|
|
Requires: python-attrs >= 19.2.0
|
2023-10-10 10:06:31 +00:00
|
|
|
Requires: python-msgpack
|
|
|
|
|
Requires: python-psutil
|
|
|
|
|
Requires: python-pytest >= 6.0.0
|
2023-10-10 09:46:31 +00:00
|
|
|
Requires: python-pytest-helpers-namespace >= 2021.4.29
|
2023-10-10 10:06:31 +00:00
|
|
|
Requires: python-pytest-shell-utilities >= 1.4.0
|
2023-10-10 09:46:31 +00:00
|
|
|
Requires: python-pytest-skip-markers >= 1.1.3
|
|
|
|
|
Requires: python-pytest-system-statistics >= 1.0.2
|
2023-10-10 10:06:31 +00:00
|
|
|
Requires: python-pytest-tempdir >= 2019.9.16
|
2023-10-10 09:46:31 +00:00
|
|
|
Requires: python-pyzmq
|
|
|
|
|
Requires: python-virtualenv
|
2023-10-10 10:06:31 +00:00
|
|
|
BuildArch: noarch
|
2023-10-10 09:46:31 +00:00
|
|
|
%if %{with libalternatives}
|
|
|
|
|
BuildRequires: alts
|
2023-10-10 10:06:31 +00:00
|
|
|
Requires: alts
|
2023-10-10 09:46:31 +00:00
|
|
|
%else
|
|
|
|
|
Requires(post): update-alternatives
|
2023-10-10 10:06:31 +00:00
|
|
|
Requires(postun): update-alternatives
|
2023-10-10 09:46:31 +00:00
|
|
|
%endif
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A pytest plugin for testing Salt.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n pytest-salt-factories-%{_version}%{_rc_version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/salt-factories
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative salt-factories
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative salt-factories
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst CHANGELOG.rst
|
2023-10-10 10:06:31 +00:00
|
|
|
%{python_sitelib}/saltfactories
|
|
|
|
|
%{python_sitelib}/pytest_salt_factories-%{_version}%{_rc_version}*-info
|
2023-10-10 09:46:31 +00:00
|
|
|
%python_alternative %{_bindir}/salt-factories
|
|
|
|
|
|
|
|
|
|
%changelog
|