From 0f0b35ccca9bcb1e0b1416f983ba5c2c3c8d83c75a8bf1710dff09aa2414debb Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 2 Jan 2019 14:46:42 +0000 Subject: [PATCH] - Do not run tests on old distributions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:avocado/python-inspektor?expand=0&rev=10 --- python-inspektor.changes | 2 +- python-inspektor.spec | 17 ++++++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-inspektor.changes b/python-inspektor.changes index 7be1c37..a97ea3a 100644 --- a/python-inspektor.changes +++ b/python-inspektor.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Wed Jan 2 08:47:15 UTC 2019 - Martin Pluskal -- Only python3 version of astroid and pylint is required +- Do not run tests on old distributions ------------------------------------------------------------------- Tue Oct 9 08:21:56 UTC 2018 - Martin Pluskal diff --git a/python-inspektor.spec b/python-inspektor.spec index 5ec86b0..d9bf264 100644 --- a/python-inspektor.spec +++ b/python-inspektor.spec @@ -26,26 +26,26 @@ License: GPL-2.0-only Group: Development/Languages/Python URL: https://github.com/avocado-framework/inspektor Source: https://github.com/avocado-framework/inspektor/archive/%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz +BuildRequires: %{python_module astroid >= 1.2.1} BuildRequires: %{python_module cliff} BuildRequires: %{python_module cmd2} BuildRequires: %{python_module devel} -BuildRequires: %{python_module logutils} >= 0.3.3 -BuildRequires: %{python_module pbr} >= 1.4 -BuildRequires: %{python_module pycodestyle} >= 2.0.0 +BuildRequires: %{python_module logutils >= 0.3.3} +BuildRequires: %{python_module pbr >= 1.4} +BuildRequires: %{python_module pycodestyle >= 2.0.0} +BuildRequires: %{python_module pylint >= 1.3.1} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module stevedore} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python3-astroid >= 1.2.1 -BuildRequires: python3-pylint >= 1.3.1 +Requires: python-astroid >= 1.2.1 Requires: python-cliff Requires: python-cmd2 Requires: python-logutils >= 0.3.3 Requires: python-pbr >= 1.4 Requires: python-pycodestyle >= 2.0.0 +Requires: python-pylint >= 1.3.1 Requires: python-stevedore -Requires: python3-astroid >= 1.2.1 -Requires: python3-pylint >= 1.3.1 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -69,7 +69,10 @@ Inspektor can work with Git and SVN checkouts. %python_build %check +# No worky on SLE +%if 0%{?suse_version} >= 1500 %python_exec setup.py test +%endif %install %python_install