SHA256
1
0
forked from pool/python-tox

- Version update to 3.1.2:

* Many changes in the code, dropped support for py <2.7 and <3.3
  * See CHANGELOG.rst
- Do not build sphinx documentation, additional dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=40
This commit is contained in:
Tomáš Chvátal 2018-07-17 13:13:11 +00:00 committed by Git OBS Bridge
parent c337ba35f8
commit 1781399e33
4 changed files with 27 additions and 28 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jul 17 12:44:06 UTC 2018 - tchvatal@suse.com
- Version update to 3.1.2:
* Many changes in the code, dropped support for py <2.7 and <3.3
* See CHANGELOG.rst
- Do not build sphinx documentation, additional dependencies
-------------------------------------------------------------------
Fri Dec 22 13:02:40 UTC 2017 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package python-tox
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@ -18,34 +18,37 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tox
Version: 2.9.1
Version: 3.1.2
Release: 0
Summary: Virtualenv-based automation of test activities
License: MIT
Group: Development/Languages/Python
Url: http://tox.testrun.org/
URL: https://github.com/tox-dev/tox
Source: https://files.pythonhosted.org/packages/source/t/tox/tox-%{version}.tar.gz
# Test requirements:
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pluggy >= 0.3.0}
BuildRequires: %{python_module py >= 1.4.17}
BuildRequires: %{python_module pytest >= 2.3.5}
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}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module virtualenv >= 1.11.2}
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRequires: unzip
Requires: python-pluggy >= 0.3.0
Requires: python-py >= 1.4.17
Requires: python-virtualenv >= 1.11.2
Requires(post): update-alternatives
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython3
Provides: tox = %{version}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@ -89,7 +92,6 @@ This is the HTML documentation for tox package.
%build
%python_build
python3 setup.py build_sphinx && rm -r doc/build/html/.buildinfo # Generate HTML documentation
%install
%python_install
@ -98,16 +100,8 @@ for B in tox tox-quickstart ; do
done
%check
%{python_expand # okay
$python -m virtualenv env-%{$python_bin_suffix} --system-site-packages
. env-%{$python_bin_suffix}/bin/activate
$python setup.py install
# run test_config separately because it does something to other tests
$python -m pytest tests/test_config.py
# skip also cmdline tests, they are slow and mostly broken in our environment
$python -m pytest tests -k "not test_config and not test_z_cmdline"
deactivate
}
export PYTHONDONTWRITEBYTECODE=1
%python_exec setup.py test
%post
%python_install_alternative tox tox-quickstart
@ -116,14 +110,11 @@ deactivate
%python_uninstall_alternative tox
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst CHANGELOG.rst
%license LICENSE
%doc README.rst CHANGELOG.rst
%python_alternative %{_bindir}/tox
%python_alternative %{_bindir}/tox-quickstart
%{python_sitelib}/tox-%{version}-py%{python_version}.egg-info
%{python_sitelib}/tox
%files -n %{name}-doc
%doc LICENSE README.rst doc/build/html
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:752f5ec561c6c08c5ecb167d3b20f4f4ffc158c0ab78855701a75f5cef05f4b8
size 1855982

3
tox-3.1.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f0cbcc36e08c2c4ae90d02d3d1f9a62231f974bcbc1df85e8045946d8261059
size 231166