15
0

Accepting request 867491 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/867491
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bashate?expand=0&rev=6
This commit is contained in:
2021-01-28 20:29:12 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 27 22:56:22 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Only test the primary python3 flavor, because only python3 has
stestr (OpenStack package)
-------------------------------------------------------------------
Tue Jun 23 15:25:40 UTC 2020 - Dirk Mueller <dmueller@suse.com>

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