15
0

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
This commit is contained in:
2021-01-28 13:57:09 +00:00
committed by Git OBS Bridge
parent 4e21556ddf
commit d5add20c04
2 changed files with 10 additions and 2 deletions

View File

@@ -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