1
0

- Add multibuild to run tests in -test package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools_scm?expand=0&rev=28
This commit is contained in:
Tomáš Chvátal 2018-07-31 10:03:39 +00:00 committed by Git OBS Bridge
parent edf8ea4ef6
commit a456184f9e
3 changed files with 16 additions and 1 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 31 10:03:17 UTC 2018 - tchvatal@suse.com
- Add multibuild to run tests in -test package
-------------------------------------------------------------------
Tue Jul 31 09:12:41 UTC 2018 - tchvatal@suse.com

View File

@ -17,7 +17,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define test 1
%bcond_without test
%else
%bcond_with test
%endif
Name: python-setuptools_scm
Version: 3.0.5
Release: 0
@ -37,6 +43,7 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: git
BuildRequires: mercurial
Requires: this-is-only-for-build-envs
%endif
%if 0%{?suse_version} || 0%{?fedora_version} >= 24
Recommends: git
@ -60,7 +67,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}
%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)'
%endif
%files %{python_files}