diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec index df489b0..cee2749 100644 --- a/python-setuptools_scm.spec +++ b/python-setuptools_scm.spec @@ -74,12 +74,12 @@ rm tox.ini %if %{with test} %check -%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not rpmfail_github_connect' +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (rpmfail_github_connect or test_mercurial or hg)' %endif +%if !%{with test} %files %{python_files} %license LICENSE -%if !%{with test} %doc README.rst CHANGELOG.rst %{python_sitelib}/setuptools_scm* %endif