525025c
%global srcname pep8-naming
24e63fe
%global srcname_ pep8ext_naming
525025c
%global _description \
525025c
Check the PEP-8 naming conventions. \
525025c
This module provides a plugin for flake8, the Python code checker. \
525025c
(It replaces the plugin flint-naming for the flint checker.)
525025c
525025c
525025c
Name:           python-%{srcname}
b7792ff
Version:        0.13.2
e1bac61
Release:        %autorelease
525025c
Summary:        Check PEP-8 naming conventions, a plugin for flake8
525025c
525025c
License:        MIT
525025c
URL:            https://pypi.python.org/pypi/%{srcname}
9baf13e
Source0:        %pypi_source %{srcname}
525025c
525025c
BuildArch:      noarch
525025c
9bf78f3
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
9bf78f3
ExcludeArch: %{ix86}
9bf78f3
525025c
BuildRequires:  python3-devel
525025c
525025c
%description %{_description}
525025c
525025c
%package -n python3-%{srcname}
525025c
Summary:        %{summary}
525025c
525025c
%description -n python3-%{srcname} %{_description}
525025c
24e63fe
%generate_buildrequires
24e63fe
%pyproject_buildrequires -r
24e63fe
525025c
%prep
10bd11a
%autosetup -n %{srcname}-%{version} -p1
525025c
525025c
%build
24e63fe
%pyproject_wheel
525025c
525025c
%install
24e63fe
%pyproject_install
24e63fe
%pyproject_save_files %{srcname_}
525025c
525025c
%check
85998a3
PYTHONPATH=%{buildroot}%{python3_sitelib} %{python3} run_tests.py
525025c
24e63fe
%files -n python3-%{srcname} -f %{pyproject_files}
525025c
%doc README.rst
2a81764
%license LICENSE
525025c
525025c
%changelog
e1bac61
%autochangelog