File python3-flake8.spec of Package python3-flake8

# spec file for package python3-flake8
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

Name:           python3-flake8
Version:        2.3.0
Release:        0
Summary:        Modular source code checker: pep8, pyflakes and co
License:        MIT
Group:          Development/Languages/Python
BuildRequires:  python3-devel
BuildRequires:  python3-distribute
# Test requirements:
BuildRequires:  python3-mccabe >= 0.2
BuildRequires:  python3-mock
BuildRequires:  python3-nose
BuildRequires:  python3-pep8 >= 1.4.3
BuildRequires:  python3-pyflakes >= 0.6.1
Requires:       python3-mccabe >= 0.2
Requires:       python3-pep8 >= 1.4.3
Requires:       python3-pyflakes >= 0.6.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Flake8 is a wrapper around these tools:

- PyFlakes
- pep8
- Ned Batchelder's McCabe script

Flake8 runs all the tools by launching the single ``flake8`` script.

%setup -q -n flake8-%{version}

python3 build

python3 install --prefix=%{_prefix} --root=%{buildroot}
# Avoid file conflict with Python-2.x version:
mv %{buildroot}%{_bindir}/flake8{,-%{py3_ver}}

python3 test