1
0

Accepting request 889351 from devel:languages:python:avocado

OBS-URL: https://build.opensuse.org/request/show/889351
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-inspektor?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2021-04-29 20:46:05 +00:00 committed by Git OBS Bridge
commit 6dcc5a7923
2 changed files with 21 additions and 12 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Apr 29 13:20:53 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
- Only build for primary python3
-------------------------------------------------------------------
Wed Apr 14 04:51:13 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Only build for 3.8, some depends only built there.
- There is no test suite, remove trying to run it.
- Remove broken %ifpython3 macro.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 16 09:59:52 UTC 2019 - Martin Pluskal <mpluskal@suse.com> Tue Apr 16 09:59:52 UTC 2019 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-inspektor # spec file for package python-inspektor
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,18 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if 0%{suse_version} >= 1550
# cliff and stevedore are only built for primary python3
%define pythons python3
%endif
%global pkgname inspektor %global pkgname inspektor
Name: python-%{pkgname} Name: python-%{pkgname}
Version: 0.5.2 Version: 0.5.2
Release: 0 Release: 0
Summary: Program used to verify the code of your python project Summary: Program used to verify the code of your python project
License: GPL-2.0-only License: GPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/avocado-framework/inspektor URL: https://github.com/avocado-framework/inspektor
#Source: https://github.com/avocado-framework/inspektor/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz
Source: https://files.pythonhosted.org/packages/42/8a/9e375ac0bb498760fe2408a2e0f1fe09808933e593d1b6f04193492b9048/inspektor-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/42/8a/9e375ac0bb498760fe2408a2e0f1fe09808933e593d1b6f04193492b9048/inspektor-%{version}.tar.gz
BuildRequires: %{python_module astroid >= 1.2.1} BuildRequires: %{python_module astroid >= 1.2.1}
BuildRequires: %{python_module cliff}
BuildRequires: %{python_module cmd2} BuildRequires: %{python_module cmd2}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module logutils >= 0.3.3} BuildRequires: %{python_module logutils >= 0.3.3}
@ -36,9 +37,10 @@ BuildRequires: %{python_module pbr >= 1.4}
BuildRequires: %{python_module pycodestyle >= 2.0.0} BuildRequires: %{python_module pycodestyle >= 2.0.0}
BuildRequires: %{python_module pylint >= 1.3.1} BuildRequires: %{python_module pylint >= 1.3.1}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module stevedore}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-cliff
BuildRequires: python3-stevedore
Requires: python-astroid >= 1.2.1 Requires: python-astroid >= 1.2.1
Requires: python-cliff Requires: python-cliff
Requires: python-cmd2 Requires: python-cmd2
@ -50,10 +52,8 @@ Requires: python-stevedore
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
%ifpython3
BuildRequires: python3-typed-ast BuildRequires: python3-typed-ast
Requires: python3-typed-ast Requires: python3-typed-ast
%endif
%python_subpackages %python_subpackages
%description %description
@ -70,10 +70,7 @@ Inspektor can work with Git and SVN checkouts.
%python_build %python_build
%check %check
# No worky on SLE # No test suite
%if 0%{?suse_version} >= 1500
%python_exec setup.py test
%endif
%install %install
%python_install %python_install