diff --git a/python-wheel.spec b/python-wheel.spec index 3d73880..8241157 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -34,6 +34,9 @@ Requires: python-argparse %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-keyring +BuildRequires: python3-jsonschema %endif # if with_python3 @@ -102,7 +105,7 @@ popd rm setup.cfg PYTHONPATH=$(pwd) py.test --ignore build %{?rhel6:-k 'not test_keygen'} # no test for Python 3, no python3-jsonschema yet -%if 0 +%if %{with python3} pushd %{py3dir} rm setup.cfg PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore build