From 55f5f08b65e74e3604409990bd8911c1c372d45cf1b7c2e87724043a0376483f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 7 Aug 2018 07:29:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=32 --- python-setuptools_scm.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-setuptools_scm.spec b/python-setuptools_scm.spec index 692f145..899e0e8 100644 --- a/python-setuptools_scm.spec +++ b/python-setuptools_scm.spec @@ -45,6 +45,7 @@ BuildArch: noarch # Testing requirements BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm = %{version}} BuildRequires: git BuildRequires: mercurial %endif @@ -72,7 +73,7 @@ in scm metadata. It also handles file finders for the supperted scm's. %if %{with test} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (test_pip_download or test_old_setuptools_fails or test_old_setuptools_allows_with_warnings or test_distlib_setuptools_works)' +%python_expand PYTHONPATH=%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (test_pip_download or test_old_setuptools_fails or test_old_setuptools_allows_with_warnings or test_distlib_setuptools_works)' %endif %files %{python_files}