30354bf
%global modname flake8
30354bf
30354bf
Name:             python-%{modname}
483461e
Version:          3.8.3
8d93e13
Release:          3%{?dist}
539ae9b
Summary:          Python code checking using pyflakes, pycodestyle, and mccabe
30354bf
30354bf
License:          MIT
539ae9b
URL:              https://gitlab.com/pycqa/flake8
9ab7521
Source0:          %{pypi_source %{modname}}
8d93e13
8d93e13
# Fix compatibility with pytest 6
8d93e13
Patch1:           %{url}/merge_requests/443.patch
8d93e13
30354bf
BuildArch:        noarch
2a60911
2a60911
%description
539ae9b
Flake8 is a wrapper around PyFlakes, pycodestyle, and Ned's McCabe
539ae9b
script. It runs all the tools by launching the single flake8 script,
539ae9b
and displays the warnings in a per-file, merged output.
2a60911
2a60911
It also adds a few features: files that contain "# flake8: noqa" are
2a60911
skipped, lines that contain a "# noqa" comment at the end will not
2a60911
issue warnings, Git and Mercurial hooks are included, a McCabe
2a60911
complexity checker is included, and it is extendable through
2a60911
flake8.extension entry points.
2a60911
db4904a
%package -n python%{python3_pkgversion}-%{modname}
539ae9b
Summary:        Python code checking using pyflakes, pycodestyle, and mccabe
2a60911
db4904a
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
30354bf
db4904a
BuildRequires:    python%{python3_pkgversion}-devel
db4904a
BuildRequires:    python%{python3_pkgversion}-setuptools
db4904a
BuildRequires:    python%{python3_pkgversion}-mock
f62c86a
BuildRequires:    python%{python3_pkgversion}-pytest
db4904a
9ab7521
BuildRequires:    (python3dist(mccabe) < 0.7 with python3dist(mccabe) >= 0.6)
9ab7521
BuildRequires:    (python3dist(pycodestyle) < 2.7 with python3dist(pycodestyle) >= 2.6~a1)
9ab7521
BuildRequires:    (python3dist(pyflakes) < 2.3 with python3dist(pyflakes) >= 2.2)
9ab7521
9ab7521
db4904a
%description -n python%{python3_pkgversion}-%{modname}
539ae9b
Flake8 is a wrapper around PyFlakes, pycodestyle, and Ned's McCabe
539ae9b
script. It runs all the tools by launching the single flake8 script,
539ae9b
and displays the warnings in a per-file, merged output.
30354bf
c73f41a
It also adds a few features: files that contain "# flake8: noqa" are
c73f41a
skipped, lines that contain a "# noqa" comment at the end will not
c73f41a
issue warnings, Git and Mercurial hooks are included, a McCabe
c73f41a
complexity checker is included, and it is extendable through
c73f41a
flake8.extension entry points.
30354bf
30354bf
%prep
365114d
%autosetup -p1 -n %{modname}-%{version}
f4fd9d0
30354bf
30354bf
%build
2a60911
%py3_build
30354bf
2a60911
30354bf
%install
2a60911
%py3_install
aa80b5f
ln -s flake8 %{buildroot}%{_bindir}/flake8-3
aa80b5f
ln -s flake8 %{buildroot}%{_bindir}/flake8-%{python3_version}
aa80b5f
ln -s flake8 %{buildroot}%{_bindir}/python3-flake8
30354bf
30354bf
30354bf
%check
f62c86a
export PYTHONPATH=%{buildroot}%{python3_sitelib}
f62c86a
export PATH=%{buildroot}%{_bindir}:$PATH
f62c86a
%{__python3} -m pytest tests -v
30354bf
30354bf
db4904a
%files -n python%{python3_pkgversion}-%{modname}
30354bf
%doc README.rst CONTRIBUTORS.txt
0bb407b
%{_bindir}/flake8
227e633
%{_bindir}/flake8-3
227e633
%{_bindir}/flake8-%{python3_version}
30354bf
%{_bindir}/python3-flake8
30354bf
%{python3_sitelib}/%{modname}*
30354bf
30354bf
30354bf
%changelog
8d93e13
* Mon Aug 10 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.3-3
8d93e13
- Fix compatibility with pytest 6
8d93e13
b55e66d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.3-2
b55e66d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b55e66d
483461e
* Tue Jun 09 2020 Matthias Runge <mrunge@redhat.com> - 3.8.3-1
483461e
- update to 3.8.3 (rhbz#1845273)
483461e
9ab7521
* Sun May 31 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.2-1
9ab7521
- Update to 3.8.2 (#1727999)
9ab7521
43a63e0
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.7.7-8
43a63e0
- Rebuilt for Python 3.9
43a63e0
3dd3258
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.7-7
3dd3258
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3dd3258
907cad6
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.7-6
907cad6
- Rebuilt for Python 3.8.0rc1 (#1748018)
907cad6
4b0a28a
* Wed Oct 02 2019 Matthias Runge <mrunge@redhat.com> - 3.7.7-5
4b0a28a
- fix dropped requirements (rhbz#1757463)
4b0a28a
bd4dbbf
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.7-4
bd4dbbf
- Rebuilt for Python 3.8
bd4dbbf
0f21e8b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.7-3
0f21e8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0f21e8b
e85c2bb
* Thu Jul 18 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.7-2
e85c2bb
- Rebuilt to update automatic Python dependencies
e85c2bb
aa80b5f
* Tue Feb 26 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.7-1
aa80b5f
- Update to 3.7.7 (#1670664)
aa80b5f
- Drop python2
aa80b5f
eb43ee3
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
eb43ee3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
eb43ee3
0a360bd
* Fri Dec 21 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 3.6.0-1
0a360bd
- Update to 3.6.0.
0a360bd
- http://flake8.pycqa.org/en/latest/release-notes/3.6.0.html
0a360bd
c77122c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
c77122c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c77122c
8c1c772
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-5
8c1c772
- Rebuilt for Python 3.7
8c1c772
365114d
* Mon Jun 11 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-4
365114d
- Make this build and run with pyflakes 2.0.0 (#1582075)
365114d
1ff275e
* Mon Jun  4 2018 Tom Callaway <spot@fedoraproject.org> - 3.5.0-3
1ff275e
- apply upstream changes to use pycodestyle 2.4.0
1ff275e
6309adf
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.5.0-2
6309adf
- Update Python 2 dependency declarations to new packaging standards
6309adf
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
6309adf
c504c56
* Tue Feb 20 2018 Matthias Runge <mrunge@redhat.com> - 3.5.0-1
c504c56
- update to 3.5.0 (rhbz#1508183)
c504c56
40edefe
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-3
40edefe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
40edefe
51c259f
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 3.4.1-2
51c259f
- Cleanup spec file conditionals
51c259f
742e605
* Fri Jul 28 2017 Ville Skyttä <ville.skytta@iki.fi> - 3.4.1-1
742e605
- Update to 3.4.1
742e605
5b1f1be
* Fri Jul 28 2017 Ville Skyttä <ville.skytta@iki.fi> - 3.4.0-1
5b1f1be
- Update to 3.4.0
5b1f1be
5de4e38
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-4
5de4e38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5de4e38
e3d2e42
* Sun Jul  9 2017 Ville Skyttä <ville.skytta@iki.fi> - 3.3.0-3
0bb407b
- Point unversioned flake8 executable to Python 3 in F27+
db4904a
- Use python3_pkgversion in Python 3 package names
166db40
- Use some python2-* dependencies instead of plain python-* for Python 2
0bb407b
9f450f1
* Fri May 26 2017 Ville Skyttä <ville.skytta@iki.fi> - 3.3.0-2
9f450f1
- Run tests with -Wall
9f450f1
a457bd2
* Tue Feb  7 2017 Ville Skyttä <ville.skytta@iki.fi> - 3.3.0-1
a457bd2
- Update to 3.3.0
a457bd2
df15fff
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 3.2.1-2
df15fff
- Rebuild for Python 3.6
df15fff
226bbd2
* Tue Nov 22 2016 Ville Skyttä <ville.skytta@iki.fi> - 3.2.1-1
226bbd2
- Update to 3.2.1
226bbd2
3cbc28d
* Tue Nov 15 2016 Ville Skyttä <ville.skytta@iki.fi> - 3.2.0-1
3cbc28d
- Update to 3.2.0
3cbc28d
539ae9b
* Sat Sep 17 2016 Ville Skyttä <ville.skytta@iki.fi> - 3.0.4-1
539ae9b
- Update to 3.0.4
227e633
- Add standard versioned names for executable
227e633
8fcc4b7
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.5-2
8fcc4b7
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8fcc4b7
2f0bd58
* Wed Jun 15 2016 Ville Skyttä <ville.skytta@iki.fi> - 2.5.5-1
2f0bd58
- Update to 2.5.5 (rhbz#1346516)
2f0bd58
c736a68
* Fri Feb 12 2016 Ville Skyttä <ville.skytta@iki.fi> - 2.5.4-1
c736a68
- Update to 2.5.4 (rhbz#1306870)
c736a68
1fc067b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
1fc067b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1fc067b
6c441d6
* Sun Jan 31 2016 Ville Skyttä <ville.skytta@iki.fi> - 2.5.2-1
6c441d6
- Update to 2.5.2 (rhbz#1303383)
6c441d6
7660157
* Wed Dec 30 2015 Ville Skyttä <ville.skytta@iki.fi> - 2.5.1-1
7660157
- Update to 2.5.1 (rhbz#1289545)
2a60911
- Update to current Fedora Python packaging guidelines
7660157
04aab87
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-3
04aab87
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
04aab87
a198995
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-2
a198995
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
a198995
66c8897
* Mon Nov 02 2015 Matthias Runge <mrunge@redhat.com> - 2.5.0-1
66c8897
- update to 2.5.0 (rhbz#1275447)
66c8897
c73f41a
* Mon Oct 26 2015 Ville Skyttä <ville.skytta@iki.fi> - 2.4.1-3
c73f41a
- Update/improve description
c73f41a
e88440c
* Mon Jul 06 2015 Matthias Runge <mrunge@redhat.com> - 2.4.1-2
e88440c
- fix FTBFS (rhbz#1239837)
e88440c
6755173
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
6755173
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6755173
821dfe2
* Thu May 21 2015 Matej Cepl <mcepl@redhat.com> - 2.4.1-1
821dfe2
- update to 2.4.1 (rhbz#1178814)
821dfe2
f3c406b
* Mon Oct 20 2014 Matthias Runge <mrunge@redhat.com> - 2.2.5-1
f3c406b
- update to 2.2.5 (rhbz#1132878)
f3c406b
bb54326
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
bb54326
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bb54326
835f348
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.1.0-2
835f348
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
835f348
9676920
* Wed Apr 09 2014 Matthias Runge <mrunge@redhat.com> - 2.1.0-1
9676920
- update to 2.1.0
9676920
52ce2a8
* Thu Jan 02 2014 Matthias Runge <mrunge@redhat.com> - 2.0-5
52ce2a8
- add missing requires to pep8, python-mccabe and pyflakes (rhbz#1046955)
52ce2a8
30354bf
* Mon Nov 18 2013 Matthias Runge <mrunge@redhat.com> - 2.0-4
30354bf
- use __python2 instead of __python
30354bf
- add CONTRIBUTORS.txt to py3 docs
30354bf
30354bf
* Tue Nov 05 2013 Matthias Runge <mrunge@redhat.com> - 2.0-3
30354bf
- minimal spec cleanup, fix one rpmlint warning
30354bf
30354bf
* Sat Sep 08 2012 Matej Cepl <mcepl@redhat.com> - 1.4-2
30354bf
- Update .spec file according to ongoing packaging review.
30354bf
30354bf
* Tue Jul 10 2012 Matej Cepl <mcepl@redhat.com> - 1.4-1
30354bf
- initial package for Fedora
30354bf