That package is needed as a dependency for other projects (e.g. FreeIPA) OBS-URL: https://build.opensuse.org/request/show/1298504 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-multihost?expand=0&rev=1
56 lines
1.5 KiB
RPMSpec
56 lines
1.5 KiB
RPMSpec
%global srcname pytest-multihost
|
|
%global modulename pytest_multihost
|
|
%global srcversion 3.0
|
|
%global versionedname %{srcname}-%{srcversion}
|
|
|
|
Name: python-%{srcname}
|
|
Version: %{srcversion}
|
|
Release: 1%{?dist}
|
|
BuildArch: noarch
|
|
Group: Development/Libraries/Python
|
|
Summary: Utility for writing multi-host tests for pytest
|
|
License: GPL-3.0-or-later+
|
|
Source: https://releases.pagure.org/python-pytest-multihost/%{versionedname}.tar.gz
|
|
URL: https://github.com/encukou/%{srcname}
|
|
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: %{pythons}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: fdupes
|
|
BuildRequires: openssh
|
|
Requires: python-pytest >= 2.4.0
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Allows pytest tests to run commands on several machines.
|
|
The machines to run on are described on the command line, the tests
|
|
specify how many machines they need and commands/checks to run on them.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{versionedname}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%check
|
|
ssh-keygen -t rsa -f $HOME/.ssh/id_rsa -N ''
|
|
cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
|
|
%pytest -k "not paramiko and not openssh"
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %python_files
|
|
%license COPYING
|
|
%doc README.rst
|
|
%{python_sitelib}/%{modulename}/
|
|
%{python_sitelib}/%{modulename}-%{srcversion}.dist-info/
|
|
|
|
%changelog
|