%global module_name pep8 Name: python-%{module_name} Version: 1.7.1 Release: 4%{?dist} Summary: Python style guide checker # License is held in the comments of pep8.py # setup.py claims license is Expat license, which is the same as MIT License: MIT URL: http://pypi.python.org/pypi/%{module_name} Source0: %{pypi_source %{module_name}} # tell users to use dnf, not pip, to get pycodestyle Patch0: pip2dnf.patch BuildArch: noarch %description pep8 is a tool to check your Python code against some of the style conventions in PEP 8. It has a plugin architecture, making new checks easy, and its output is parseable, making it easy to jump to an error location in your editor. It was renamed to python-pycodestyle and this is left for backwards compatibility only. Use python-pycodestyle instead. %package -n python%{python3_pkgversion}-%{module_name} Summary: Python style guide checker BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-setuptools %{?python_provide:%python_provide python%{python3_pkgversion}-%{module_name}} %description -n python%{python3_pkgversion}-%{module_name} pep8 is a tool to check your Python code against some of the style conventions in PEP 8. It has a plugin architecture, making new checks easy, and its output is parseable, making it easy to jump to an error location in your editor. It was renamed to python3-pycodestyle and this is left for backwards compatibility only. Use python3-pycodestyle instead. This is a version for Python 3. %prep %autosetup -p1 -n %{module_name}-%{version} # Remove #! from pep8.py sed --in-place "s:#!\s*/usr.*::" pep8.py %build %py3_build %install %py3_install mv %{buildroot}%{_bindir}/pep8 %{buildroot}%{_bindir}/pep8-%{python3_version} ln -s ./pep8-%{python3_version} %{buildroot}%{_bindir}/pep8 ln -s ./pep8-%{python3_version} %{buildroot}%{_bindir}/pep8-3 %check # pep8 doesn't work properly with Python 3.7+, use pycodestyle! rm testsuite/W29.py PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} pep8.py --testsuite testsuite %files -n python%{python3_pkgversion}-%{module_name} %doc README.rst CHANGES.txt %{_bindir}/pep8-%{python3_version} %{_bindir}/pep8-3 %{_bindir}/pep8 %{python3_sitelib}/%{module_name}.py* %{python3_sitelib}/%{module_name}-%{version}-*.egg-info/ %{python3_sitelib}/__pycache__/%{module_name}* %changelog * Fri Jul 26 2019 Fedora Release Engineering - 1.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed May 15 2019 Miro Hrončok - 1.7.1-3 - Remove python2-pep8 * Sat Feb 02 2019 Fedora Release Engineering - 1.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Jan 30 2019 Miro Hrončok - 1.7.1-1 - Update to 1.7.1 (#1298005) - Fix build failure (#1605829) - Provide a current-style executable name for python3 (pep8-3, pep8-3.7) (#1341314) - Warn about renaming to pycodestyle, this is the last release - Stop shipping docs, use pycodestyle instead * Sat Jul 14 2018 Fedora Release Engineering - 1.6.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.6.2-13 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.6.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 26 2018 Iryna Shcherbina - 1.6.2-11 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Oct 13 2017 Petr Viktorin - 1.6.2-10 - Create the python2-pep8 RPM, rather than python-pep8 * Thu Jul 27 2017 Fedora Release Engineering - 1.6.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.6.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 12 2016 Charalampos Stratakis - 1.6.2-7 - Rebuild for Python 3.6 * Mon Oct 24 2016 Orion Poplawski - 1.6.2-6 - Enable python3 builds for EPEL - Ship python2-pep8 - Modernize spec * Tue Jul 19 2016 Fedora Release Engineering - 1.6.2-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.6.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Nov 12 2015 Fedora Release Engineering - 1.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Nov 11 2015 Robert Kuska - 1.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Nov 11 2015 Matthias Runge - 1.6.2-1 - update to 1.6.2 * Fri Nov 06 2015 Robert Kuska - 1.5.7-3 - Rebuilt for Python3.5 rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.5.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Oct 20 2014 Matthias Runge - 1.5.7-1 - update to 1.5.7 * Sat Jun 07 2014 Fedora Release Engineering - 1.5.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 15 2014 Bohuslav Kabrda - 1.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Wed May 14 2014 Matthias Runge - 1.5.6-1 - update to 1.5.6 (rhbz#1087351) * Tue Apr 08 2014 Matthias Runge - 1.5.4-1 - require python3-setuptools (rhbz#1084756) - update to 1.5.4 (rhbz#1081516) * Wed Feb 26 2014 Matthias Runge -1.4.6-2 - rename py3 version of pep8 to python3-pep8 (rhbz#1060408) * Tue Aug 13 2013 Ian Weller - 1.4.6-1 - update to 1.4.6 * Sun Aug 04 2013 Fedora Release Engineering - 1.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jun 14 2013 Matthias Runge - 1.4.5-1 - update to 1.4.5 (rhbz#918924) - introduce py3 package (rhbz#971941) * Tue Feb 26 2013 Ian Weller - 1.4.4-1 - Update to 1.4.4 * Mon Feb 11 2013 Ian Weller - 1.4.2-1 - Update to 1.4.2 * Tue Jan 29 2013 Ian Weller - 1.4.1-1 - Update to 1.4.1 - Add Sphinx docs * Fri Sep 07 2012 Ian Weller - 1.3.3-3 - Run test suite using the pep8.py that has been installed * Fri Sep 07 2012 Ian Weller - 1.3.3-2 - Add test suite * Thu Sep 06 2012 Ian Weller - 1.3.3-1 - Update to 1.3.3 * Sat Jul 21 2012 Fedora Release Engineering - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jun 16 2012 Ian Weller - 1.3-1 - Update to 1.3 * Sat Apr 07 2012 Ian Weller - 1.0.1-1 - Update to 1.0.1 * Fri Jan 27 2012 Ian Weller - 0.6.1-1 - Update to 0.6.1 * Sat Jan 14 2012 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jan 21 2011 Ian Weller - 0.6.0-2 - RHBZ 633102: Requires: python-setuptools * Tue Nov 16 2010 Ian Weller - 0.6.0-1 - Changed upstream (same code, new maintainer, new URL) - New release * Thu Jul 22 2010 David Malcolm - 0.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Nov 9 2009 Ian Weller - 0.4.2-2 - Add BR: python-setuptools - Change URL to the correct upstream * Sun Nov 8 2009 Ian Weller - 0.4.2-1 - Initial package build