2012-02-20 23:11:13 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-tox
|
|
|
|
#
|
2018-07-17 15:13:11 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-20 23:11:13 +01: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.
|
2012-06-22 15:39:17 +02:00
|
|
|
|
2012-02-20 23:11:13 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-06-17 14:15:25 +02:00
|
|
|
|
2017-04-07 19:25:54 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-02-20 23:11:13 +01:00
|
|
|
Name: python-tox
|
2018-09-11 19:01:30 +02:00
|
|
|
Version: 3.3.0
|
2012-02-20 23:11:13 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Virtualenv-based automation of test activities
|
2013-06-25 14:20:20 +02:00
|
|
|
License: MIT
|
2012-02-20 23:11:13 +01:00
|
|
|
Group: Development/Languages/Python
|
2018-07-17 15:13:11 +02:00
|
|
|
URL: https://github.com/tox-dev/tox
|
2017-04-07 19:25:54 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tox/tox-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pluggy >= 0.3.0}
|
|
|
|
BuildRequires: %{python_module py >= 1.4.17}
|
2018-07-17 15:13:11 +02:00
|
|
|
BuildRequires: %{python_module six >= 1.0.0}
|
|
|
|
Requires: python-six >= 1.0.0
|
|
|
|
BuildRequires: %{python_module pytest >= 3.0.0}
|
|
|
|
BuildRequires: %{python_module pytest-cov >= 2.5.1}
|
|
|
|
BuildRequires: %{python_module pytest-mock >= 1.10.0}
|
|
|
|
BuildRequires: %{python_module pytest-timeout >= 1.3.0}
|
|
|
|
BuildRequires: %{python_module pytest-xdist >= 1.22.2}
|
2017-10-02 14:24:19 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2017-04-07 19:25:54 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-09-11 19:01:30 +02:00
|
|
|
BuildRequires: %{python_module toml}
|
2017-04-07 19:25:54 +02:00
|
|
|
BuildRequires: %{python_module virtualenv >= 1.11.2}
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-02-20 23:11:13 +01:00
|
|
|
BuildRequires: unzip
|
2018-09-11 19:01:30 +02:00
|
|
|
Requires: python-packaging >= 17.1
|
2015-09-17 15:52:11 +02:00
|
|
|
Requires: python-pluggy >= 0.3.0
|
2014-07-03 13:22:19 +02:00
|
|
|
Requires: python-py >= 1.4.17
|
2018-09-11 19:01:30 +02:00
|
|
|
Requires: python-setuptools >= 30.0.0
|
|
|
|
Requires: python-six >= 1.0.0
|
|
|
|
Requires: python-toml >= 0.9.4
|
2014-07-03 13:22:19 +02:00
|
|
|
Requires: python-virtualenv >= 1.11.2
|
2018-07-17 15:13:11 +02:00
|
|
|
Requires(post): update-alternatives
|
2014-07-03 13:22:19 +02:00
|
|
|
Requires(postun): update-alternatives
|
2018-07-17 15:13:11 +02:00
|
|
|
BuildArch: noarch
|
2017-05-06 06:30:24 +02:00
|
|
|
%ifpython3
|
2017-04-07 19:25:54 +02:00
|
|
|
Provides: tox = %{version}
|
2017-05-06 06:29:57 +02:00
|
|
|
%endif
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_subpackages
|
2012-02-20 23:11:13 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Tox as is a generic virtualenv management and test command line tool you can
|
|
|
|
use for:
|
|
|
|
|
|
|
|
* checking your package installs correctly with different
|
|
|
|
Python versions and interpreters
|
|
|
|
|
|
|
|
* running your tests in each of the
|
|
|
|
environments, configuring your test tool of choice
|
|
|
|
|
|
|
|
* acting as a frontend to Continuous Integration
|
|
|
|
servers, greatly reducing boilerplate and merging
|
|
|
|
CI and shell-based testing.
|
|
|
|
|
2017-04-07 19:25:54 +02:00
|
|
|
%package -n %{name}-doc
|
|
|
|
Summary: Documentation for tox, a virtualenv-based test automation
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Recommends: %{python_module tox = %{version}}
|
|
|
|
Provides: %{python_module tox-doc = %{version}}
|
|
|
|
|
|
|
|
%description -n %{name}-doc
|
|
|
|
Tox as is a generic virtualenv management and test command line tool you can
|
|
|
|
use for:
|
|
|
|
|
|
|
|
* checking your package installs correctly with different
|
|
|
|
Python versions and interpreters
|
|
|
|
|
|
|
|
* running your tests in each of the
|
|
|
|
environments, configuring your test tool of choice
|
|
|
|
|
|
|
|
* acting as a frontend to Continuous Integration
|
|
|
|
servers, greatly reducing boilerplate and merging
|
|
|
|
CI and shell-based testing.
|
|
|
|
|
|
|
|
This is the HTML documentation for tox package.
|
|
|
|
|
2012-02-20 23:11:13 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n tox-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_build
|
2012-02-20 23:11:13 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_install
|
2014-07-03 13:22:19 +02:00
|
|
|
for B in tox tox-quickstart ; do
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/$B
|
2014-07-03 13:22:19 +02:00
|
|
|
done
|
2012-02-20 23:11:13 +01:00
|
|
|
|
2013-09-05 10:16:43 +02:00
|
|
|
%check
|
2018-07-17 15:13:11 +02:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
%python_exec setup.py test
|
2014-07-03 13:22:19 +02:00
|
|
|
|
|
|
|
%post
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_install_alternative tox tox-quickstart
|
2014-07-03 13:22:19 +02:00
|
|
|
|
|
|
|
%postun
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_uninstall_alternative tox
|
2012-02-20 23:11:13 +01:00
|
|
|
|
2017-04-07 19:25:54 +02:00
|
|
|
%files %{python_files}
|
2018-07-17 15:13:11 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst CHANGELOG.rst
|
2017-04-07 19:25:54 +02:00
|
|
|
%python_alternative %{_bindir}/tox
|
|
|
|
%python_alternative %{_bindir}/tox-quickstart
|
|
|
|
%{python_sitelib}/tox-%{version}-py%{python_version}.egg-info
|
2014-07-03 13:22:19 +02:00
|
|
|
%{python_sitelib}/tox
|
2012-02-20 23:11:13 +01:00
|
|
|
|
|
|
|
%changelog
|