File python-zope.testrunner.spec of Package python-zope.testrunner

# spec file for package python-zope.testrunner
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-zope.testrunner
Version:        4.7.0
Release:        0
Summary:        Zope testrunner script
License:        ZPL-2.1
Group:          Development/Languages/Python
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
# runtime requirements:
BuildRequires:  %{python_module six}
BuildRequires:  %{python_module zope.exceptions}
BuildRequires:  %{python_module zope.interface}
# Test requirements:
BuildRequires:  %{python_module zope.testing}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  unzip
Requires:       python-six
Requires:       python-zope.exceptions
Requires:       python-zope.interface
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This package provides a flexible test runner with layer support.

%setup -q -n zope.testrunner-%{version}
find -size 0 -delete


%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

%python_clone -a %{buildroot}%{_bindir}/zope-testrunner

# Can't seem to be able to run the tests with an uninstalled zope.testrunner
#%%python_exec test

%python_install_alternative zope-testrunner

%python_uninstall_alternative zope-testrunner

%files %{python_files}
%doc LICENSE.rst README.rst
%python_alternative %{_bindir}/zope-testrunner

openSUSE Build Service is sponsored by