2017-10-09 19:47:09 +02:00
|
|
|
#
|
2018-07-28 12:44:59 +02:00
|
|
|
# spec file for package python-inspektor
|
2017-10-09 19:47:09 +02:00
|
|
|
#
|
2021-04-14 06:52:27 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-10-09 19:47:09 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-09 10:22:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-10-09 19:47:09 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-04-16 09:41:33 +02:00
|
|
|
# cliff and stevedore are only built for 3.8
|
2021-04-14 06:52:27 +02:00
|
|
|
%define skip_python36 1
|
2021-04-16 09:41:33 +02:00
|
|
|
%define skip_python39 1
|
2017-10-09 19:47:09 +02:00
|
|
|
%global pkgname inspektor
|
|
|
|
Name: python-%{pkgname}
|
2019-04-16 12:01:18 +02:00
|
|
|
Version: 0.5.2
|
2017-10-09 19:47:09 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Program used to verify the code of your python project
|
2018-07-28 12:44:59 +02:00
|
|
|
License: GPL-2.0-only
|
|
|
|
URL: https://github.com/avocado-framework/inspektor
|
2019-04-16 12:01:18 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/42/8a/9e375ac0bb498760fe2408a2e0f1fe09808933e593d1b6f04193492b9048/inspektor-%{version}.tar.gz
|
2019-01-02 15:46:42 +01:00
|
|
|
BuildRequires: %{python_module astroid >= 1.2.1}
|
2018-07-28 12:44:59 +02:00
|
|
|
BuildRequires: %{python_module cmd2}
|
2017-10-09 19:47:09 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2019-01-02 15:46:42 +01:00
|
|
|
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}
|
2017-10-09 19:47:09 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2021-04-14 06:52:27 +02:00
|
|
|
BuildRequires: python3-cliff
|
|
|
|
BuildRequires: python3-stevedore
|
2019-01-02 15:46:42 +01:00
|
|
|
Requires: python-astroid >= 1.2.1
|
2018-07-28 12:44:59 +02:00
|
|
|
Requires: python-cliff
|
|
|
|
Requires: python-cmd2
|
|
|
|
Requires: python-logutils >= 0.3.3
|
|
|
|
Requires: python-pbr >= 1.4
|
|
|
|
Requires: python-pycodestyle >= 2.0.0
|
2019-01-02 15:46:42 +01:00
|
|
|
Requires: python-pylint >= 1.3.1
|
2018-07-28 12:44:59 +02:00
|
|
|
Requires: python-stevedore
|
2017-10-09 19:47:09 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-04-14 06:52:27 +02:00
|
|
|
Requires(postun):update-alternatives
|
2017-10-09 19:47:09 +02:00
|
|
|
BuildArch: noarch
|
2018-10-09 10:22:23 +02:00
|
|
|
BuildRequires: python3-typed-ast
|
|
|
|
Requires: python3-typed-ast
|
2017-10-09 19:47:09 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Inspektor is a program used to verify the code of a Python project.
|
|
|
|
It checks code with the help of pylint, checks indentation with
|
|
|
|
pycodestyle, and checks for PEP8 compliance.
|
|
|
|
|
|
|
|
Inspektor can work with Git and SVN checkouts.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkgname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
2018-07-28 12:44:59 +02:00
|
|
|
%check
|
2021-04-14 06:52:27 +02:00
|
|
|
# No test suite
|
2018-07-28 12:44:59 +02:00
|
|
|
|
2017-10-09 19:47:09 +02:00
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/inspekt
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative inspekt
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative inspekt
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-07-28 12:44:59 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2017-10-09 19:47:09 +02:00
|
|
|
%python_alternative %{_bindir}/inspekt
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|