2013-04-23 14:59:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-mccabe
|
|
|
|
#
|
2019-07-03 11:11:11 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-04-23 14:59:34 +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.
|
|
|
|
|
2019-07-03 11:11:11 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-05-02 16:27:25 +02:00
|
|
|
#
|
2013-04-23 14:59:34 +02:00
|
|
|
|
|
|
|
|
2017-03-15 16:14:45 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-04-23 14:59:34 +02:00
|
|
|
Name: python-mccabe
|
2017-02-16 15:12:22 +01:00
|
|
|
Version: 0.6.1
|
2013-04-23 14:59:34 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: McCabe checker, plugin for flake8
|
2013-05-02 16:27:25 +02:00
|
|
|
License: MIT
|
2013-04-23 14:59:34 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-07-03 11:11:11 +02:00
|
|
|
URL: https://github.com/flintwork/mccabe
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/m/mccabe/mccabe-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-03-15 16:14:45 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-07-03 11:11:11 +02:00
|
|
|
BuildRequires: fdupes
|
2017-03-15 16:14:45 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-04-23 14:59:34 +02:00
|
|
|
BuildArch: noarch
|
2017-03-15 16:14:45 +01:00
|
|
|
%python_subpackages
|
2013-04-23 14:59:34 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ned's script to check McCabe complexity.
|
2013-04-24 10:51:28 +02:00
|
|
|
This module provides a plugin for flake8, the Python code checker.
|
2013-04-23 14:59:34 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n mccabe-%{version}
|
2019-07-03 11:11:11 +02:00
|
|
|
# do not require pytest-runner for setup
|
|
|
|
sed -i 's:pytest-runner::' setup.py
|
2013-04-23 14:59:34 +02:00
|
|
|
|
|
|
|
%build
|
2017-03-15 16:14:45 +01:00
|
|
|
%python_build
|
2013-04-23 14:59:34 +02:00
|
|
|
|
|
|
|
%install
|
2017-03-15 16:14:45 +01:00
|
|
|
%python_install
|
2019-07-03 11:11:11 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-04-23 14:59:34 +02:00
|
|
|
|
2017-03-15 16:14:45 +01:00
|
|
|
%check
|
2019-07-03 11:11:11 +02:00
|
|
|
%pytest
|
2017-03-15 16:14:45 +01:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-07-03 11:11:11 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2013-04-23 14:59:34 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|