From d5add20c0464853e436fd684d14477ed2b11624cc87c33ebb0fa9dcb3846f283 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 28 Jan 2021 13:57:09 +0000 Subject: [PATCH] Accepting request 867437 from home:bnavigator:branches:devel:languages:python - Only test the primary python3 flavor, because only python3 has stestr (OpenStack package) OBS-URL: https://build.opensuse.org/request/show/867437 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bashate?expand=0&rev=13 --- python-bashate.changes | 6 ++++++ python-bashate.spec | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-bashate.changes b/python-bashate.changes index 63c5ee5..36b3441 100644 --- a/python-bashate.changes +++ b/python-bashate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 27 22:56:22 UTC 2021 - Benjamin Greiner + +- Only test the primary python3 flavor, because only python3 has + stestr (OpenStack package) + ------------------------------------------------------------------- Tue Jun 23 15:25:40 UTC 2020 - Dirk Mueller diff --git a/python-bashate.spec b/python-bashate.spec index 0c919b3..203da59 100644 --- a/python-bashate.spec +++ b/python-bashate.spec @@ -30,10 +30,11 @@ BuildRequires: %{python_module Babel >= 0.9.6} BuildRequires: %{python_module mock} BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module stestr} BuildRequires: %{python_module testtools} BuildRequires: fdupes BuildRequires: python-argparse +# OpenStack package: stestr is only available for primary python3, only test on this flavor +BuildRequires: python3-stestr Requires: python-Babel >= 0.9.6 Requires: python-pbr Requires(post): update-alternatives @@ -69,10 +70,11 @@ and will continue to evolve over time. rm -rf %{buildroot}%{$python_sitelib}/bashate/tests sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py } +%python_compileall %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m stestr.cli run +python3 -m stestr.cli run %post %python_install_alternative bashate