From 57796eeefd2713996a1c78962b56beec00b430004283c9b0e7eec321ea423912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Mar 2020 10:45:00 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tox?expand=0&rev=67 --- python-tox.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/python-tox.spec b/python-tox.spec index b116440..a7e9101 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-tox Version: 3.14.5 Release: 0 Summary: Virtualenv-based automation of test activities License: MIT -Group: Development/Languages/Python URL: https://github.com/tox-dev/tox Source: https://files.pythonhosted.org/packages/source/t/tox/tox-%{version}.tar.gz BuildRequires: %{python_module filelock} @@ -44,6 +44,9 @@ BuildRequires: %{python_module toml} BuildRequires: %{python_module virtualenv >= 16.0.0} BuildRequires: %{python_module wheel >= 0.29.0} BuildRequires: fdupes +# we need python2 interpreter in tests for venv calls checks +# even on python3 variant +BuildRequires: python-base BuildRequires: python-rpm-macros BuildRequires: unzip Requires: python-filelock @@ -80,7 +83,6 @@ use for: %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}} @@ -121,7 +123,8 @@ done export PYTHONDONTWRITEBYTECODE=1 export PATH=%{buildroot}%{_bindir}:$PATH # Ignores for gh#tox-dev/tox#1293 -%pytest -k 'not (network or parallel or test_provision_missing or test_provision_interrupt_child or test_workdir_gets_resolved or test_provision_cli_args_ignore or test_provision_non_canonical_dep or test_create_KeyboardInterrupt or test_provision_from_pyvenv)' +# test_dist_exists_version_change test_verbose_isolated_build: need python2* deps even on python3 +%pytest -k 'not (network or parallel or test_provision_missing or test_provision_interrupt_child or test_workdir_gets_resolved or test_provision_cli_args_ignore or test_provision_non_canonical_dep or test_create_KeyboardInterrupt or test_provision_from_pyvenv or test_verbose_isolated_build or test_dist_exists_version_change)' %post %python_install_alternative tox tox-quickstart