2017-02-07 08:53:40 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-nose2
|
|
|
|
#
|
2019-04-08 11:22:28 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-02-07 08:53:40 +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.
|
|
|
|
|
2019-04-08 11:22:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-24 14:57:26 +00:00
|
|
|
#
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
|
2017-04-24 14:57:26 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-02-07 08:53:40 +00:00
|
|
|
Name: python-nose2
|
2019-04-08 11:22:28 +00:00
|
|
|
Version: 0.9.1
|
2017-02-07 08:53:40 +00:00
|
|
|
Release: 0
|
2018-08-16 10:37:11 +00:00
|
|
|
Summary: Second generation of the "nose" Python testing framework
|
2018-08-13 12:18:01 +00:00
|
|
|
License: BSD-2-Clause AND Python-2.0
|
2017-02-07 08:53:40 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-13 12:18:01 +00:00
|
|
|
URL: https://github.com/nose-devs/nose2
|
2017-02-07 08:53:40 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
2018-08-13 12:18:01 +00:00
|
|
|
Patch0: remove_unittest2.patch
|
2017-04-24 14:57:26 +00:00
|
|
|
BuildRequires: %{python_module cov-core >= 1.12}
|
2018-08-13 12:18:01 +00:00
|
|
|
BuildRequires: %{python_module mock}
|
2017-04-24 14:57:26 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six >= 1.1}
|
2018-08-13 12:18:01 +00:00
|
|
|
BuildRequires: fdupes
|
2017-04-24 14:57:26 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-02-07 08:53:40 +00:00
|
|
|
Requires: python-six >= 1.1
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
Suggests: python-cov-core >= 1.12
|
|
|
|
BuildArch: noarch
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2017-02-07 08:53:40 +00:00
|
|
|
%description
|
2017-06-30 00:32:52 +00:00
|
|
|
nose2 is a new version of the nose unit testing framework,
|
|
|
|
supporting Python 2.6+ and 3.x, but not 2.4.
|
|
|
|
nose2 does not need a custom importer anymore and instead imports
|
|
|
|
modules with __import__. nose2 does not support all of the
|
|
|
|
test project layouts that nose did, and also does not
|
|
|
|
support package-level fixtures. Almost all configuration for nose2
|
|
|
|
is to be done through config files, not command-line options.
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n nose2-%{version}
|
2018-08-13 12:18:01 +00:00
|
|
|
%autopatch -p1
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
%build
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_build
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_install
|
2018-08-13 12:18:01 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-02-07 08:53:40 +00:00
|
|
|
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/nose2
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
%check
|
2018-08-13 12:18:01 +00:00
|
|
|
export LC_CTYPE=C.UTF8
|
|
|
|
%python_exec setup.py test
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
%post
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_install_alternative nose2
|
2017-02-07 08:53:40 +00:00
|
|
|
|
|
|
|
%postun
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_uninstall_alternative nose2
|
2017-02-07 08:53:40 +00:00
|
|
|
|
2017-04-24 14:57:26 +00:00
|
|
|
%files %{python_files}
|
2018-08-13 12:18:01 +00:00
|
|
|
%license license.txt
|
|
|
|
%doc AUTHORS README.rst
|
2017-04-24 14:57:26 +00:00
|
|
|
%python_alternative %{_bindir}/nose2
|
2017-02-07 08:53:40 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|