Blame SPECS/python-pycodestyle.spec

cc2142
%global module_name pycodestyle
cc2142
cc2142
Name:           python-%{module_name}
cc2142
# WARNING: When updating pycodestyle, check not to break flake8!
cc2142
Version:        2.12.1
cc2142
Release:        3%{?dist}
cc2142
Summary:        Python style guide checker
cc2142
License:        MIT
cc2142
URL:            https://pypi.python.org/pypi/%{module_name}
cc2142
# pypi source missing docs - https://github.com/PyCQA/pycodestyle/issues/1231
cc2142
Source0:        https://github.com/PyCQA/pycodestyle/archive/%{version}/%{module_name}-%{version}.tar.gz
cc2142
cc2142
BuildArch:      noarch
cc2142
cc2142
%description
cc2142
pycodestyle is a tool to check your Python code against some of the style
cc2142
conventions in PEP 8. It has a plugin architecture, making new checks easy, and
cc2142
its output is parseable, making it easy to jump to an error location in your
cc2142
editor.
cc2142
cc2142
cc2142
%package -n python%{python3_pkgversion}-pycodestyle
cc2142
Summary:    Python style guide checker
cc2142
%{?python_provide:%python_provide python%{python3_pkgversion}-%{module_name}}
cc2142
Conflicts:      python-pycodestyle < %{version}-%{release}
cc2142
cc2142
BuildRequires:  python%{python3_pkgversion}-devel
cc2142
BuildRequires:  python%{python3_pkgversion}-setuptools
cc2142
BuildRequires:  python%{python3_pkgversion}-sphinx
cc2142
BuildRequires:  python%{python3_pkgversion}-sphinx_rtd_theme
cc2142
BuildRequires:  python%{python3_pkgversion}-pytest
cc2142
BuildRequires:  make
cc2142
cc2142
%description -n python%{python3_pkgversion}-pycodestyle
cc2142
pycodestyle is a tool to check your Python code against some of the style
cc2142
conventions in PEP 8. It has a plugin architecture, making new checks easy, and
cc2142
its output is parseable, making it easy to jump to an error location in your
cc2142
editor.
cc2142
cc2142
This is a version for Python %{python3_pkgversion}.
cc2142
cc2142
cc2142
%prep
cc2142
%autosetup -n %{module_name}-%{version} -p1
cc2142
cc2142
# Remove #! from pycodestyle.py
cc2142
sed --in-place "s:#!\s*/usr.*::" pycodestyle.py
cc2142
cc2142
cc2142
%build
cc2142
%py3_build
cc2142
cc2142
make -C docs man SPHINXBUILD=sphinx-build-%{python3_version}
cc2142
cc2142
cc2142
%install
cc2142
%py3_install
cc2142
mv %{buildroot}%{_bindir}/pycodestyle %{buildroot}%{_bindir}/pycodestyle-%{python3_version}
cc2142
ln -s ./pycodestyle-%{python3_version} %{buildroot}%{_bindir}/pycodestyle-3
cc2142
ln -s ./pycodestyle-3 %{buildroot}%{_bindir}/pycodestyle
cc2142
cc2142
cc2142
install -D docs/_build/man/%{module_name}.1 %{buildroot}%{_mandir}/man1/%{module_name}.1
cc2142
cc2142
cc2142
%check
cc2142
%pytest -v
cc2142
cc2142
cc2142
%files -n python%{python3_pkgversion}-pycodestyle
cc2142
%doc README.rst CHANGES.txt
cc2142
%license LICENSE
cc2142
%{_mandir}/man1/%{module_name}.1.gz
cc2142
%{_bindir}/pycodestyle
cc2142
%{_bindir}/pycodestyle-3
cc2142
%{_bindir}/pycodestyle-%{python3_version}
cc2142
%pycached %{python3_sitelib}/%{module_name}.py
cc2142
%{python3_sitelib}/%{module_name}-%{version}-*.egg-info/
cc2142
cc2142
%changelog
cc2142
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
cc2142
cc2142
* Sat Nov 09 2024 Orion Poplawski <orion@nwra.com> - 2.12.1-2
cc2142
- Upload source
cc2142
cc2142
* Sat Nov 09 2024 Orion Poplawski <orion@nwra.com> - 2.12.1-1
cc2142
- Update to 2.12.1
cc2142
cc2142
* Sat Nov 09 2024 Orion Poplawski <orion@nwra.com> - 2.11.1-5
cc2142
- Drop python2 support
cc2142
cc2142
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.1-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
cc2142
cc2142
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.11.1-3
cc2142
- Rebuilt for Python 3.13
cc2142
cc2142
* Sat Feb 17 2024 Orion Poplawski <orion@nwra.com> - 2.11.1-2
cc2142
- github
cc2142
cc2142
* Sat Feb 17 2024 Orion Poplawski <orion@nwra.com> - 2.11.1-1
cc2142
- Update to 2.11.1
cc2142
cc2142
* Sat Feb 17 2024 Ali Erdinc Koroglu <aekoroglu@linux.intel.com> - 2.11.0-1
cc2142
- update to 2.11.0
cc2142
cc2142
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cc2142
cc2142
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cc2142
cc2142
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
cc2142
cc2142
* Thu Jul 13 2023 Adam Williamson <awilliam@redhat.com> - 2.10.0-1
cc2142
- Update to 2.10.0
cc2142
- Backport Python 3.12 fixes from upstream
cc2142
cc2142
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 2.9.1-3
cc2142
- Rebuilt for Python 3.12
cc2142
cc2142
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
cc2142
cc2142
* Thu Aug 04 2022 Orion Poplawski <orion@nwra.com> - 2.9.1-1
cc2142
- Update to 2.9.1
cc2142
cc2142
* Tue Aug 02 2022 Ali Erdinc Koroglu <aekoroglu@fedoraproject.org> - 2.9.0-1
cc2142
- Update to 2.9.0 (RHBZ #2112577)
cc2142
cc2142
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cc2142
cc2142
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.8.0-3
cc2142
- Rebuilt for Python 3.11
cc2142
cc2142
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cc2142
cc2142
* Tue Oct 12 2021 Orion Poplawski <orion@nwra.com> - 2.8.0-1
cc2142
- Update to 2.8.0
cc2142
cc2142
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
cc2142
cc2142
* Mon Jul 05 2021 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.7.0-1
cc2142
- Update to 2.7.0
cc2142
cc2142
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.6.0-5
cc2142
- Rebuilt for Python 3.10
cc2142
cc2142
* Thu Feb 18 2021 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-4
cc2142
- Properly BuildRequire make
cc2142
cc2142
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cc2142
cc2142
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cc2142
cc2142
* Sun May 31 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6.0-1
cc2142
- Update to 2.6.0 (#1827430)
cc2142
cc2142
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-8
cc2142
- Rebuilt for Python 3.9
cc2142
cc2142
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-7
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cc2142
cc2142
* Fri Nov 15 2019 Orion Poplawski <orion@nwra.com> - 2.5.0-6
cc2142
- Drop python2 for Fedora 32+
cc2142
cc2142
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-5
cc2142
- Rebuilt for Python 3.8.0rc1 (#1748018)
cc2142
cc2142
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-4
cc2142
- Rebuilt for Python 3.8
cc2142
cc2142
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cc2142
cc2142
* Wed Jul 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2
cc2142
- Make /usr/bin/pycodestyle Python 3
cc2142
cc2142
* Wed Feb 20 2019 Matthias Runge <mrunge@redhat.com> - 2.5.0-1
cc2142
- update to 2.5.0 and fix FTBFS
cc2142
cc2142
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cc2142
cc2142
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cc2142
cc2142
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-2
cc2142
- Rebuilt for Python 3.7
cc2142
cc2142
* Sat Jun 02 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-1
cc2142
- Update to 2.4.0 (#1565613)
cc2142
cc2142
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cc2142
cc2142
* Thu Aug 24 2017 Lumír Balhar <lbalhar@redhat.com> 2.3.1-1
cc2142
- New upstream version 2.3.1
cc2142
- Use 'python2' instead of just 'python' in the names of dependencies
cc2142
cc2142
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-6
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cc2142
cc2142
* Fri Mar 10 2017 Orion Poplawski <orion@cora.nwra.com> - 2.0.0-5
cc2142
- Fix python3 builds for EPEL
cc2142
- Cleanup spec
cc2142
cc2142
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cc2142
cc2142
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.0.0-3
cc2142
- Rebuild for Python 3.6
cc2142
cc2142
* Thu Aug  4 2016 Luke Macken <lmacken@redhat.com> - 2.0.0-2
cc2142
- Use the new python setup/build/install macros
cc2142
- Remove Obsoletes/Provides for pep8, since it is currently not a drop-in replacement.
cc2142
  https://bugzilla.redhat.com/show_bug.cgi?id=1342839#c10
cc2142
cc2142
* Sun Jun 05 2016 Luke Macken <lmacken@redhat.com> - 2.0.0-1
cc2142
- The pep8 project has been renamed to pycodestyle
cc2142
- Create python2 subpackage
cc2142
- Update the source url to use pypi.io
cc2142
- Build a man page instead of html docs
cc2142
cc2142
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cc2142
cc2142
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cc2142
cc2142
* Wed Nov 11 2015 Robert Kuska <rkuska@redhat.com> - 1.6.2-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
cc2142
cc2142
* Wed Nov 11 2015 Matthias Runge <mrunge@redhat.com> - 1.6.2-1
cc2142
- update to 1.6.2
cc2142
cc2142
* Fri Nov 06 2015 Robert Kuska <rkuska@redhat.com> - 1.5.7-3
cc2142
- Rebuilt for Python3.5 rebuild
cc2142
cc2142
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.7-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cc2142
cc2142
* Mon Oct 20 2014 Matthias Runge <mrunge@redhat.com> - 1.5.7-1
cc2142
- update to 1.5.7
cc2142
cc2142
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cc2142
cc2142
* Thu May 15 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5.6-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
cc2142
cc2142
* Wed May 14 2014 Matthias Runge <mrunge@redhat.com> - 1.5.6-1
cc2142
- update to 1.5.6 (rhbz#1087351)
cc2142
cc2142
* Tue Apr 08 2014 Matthias Runge <mrunge@redhat.com> - 1.5.4-1
cc2142
- require python3-setuptools (rhbz#1084756)
cc2142
- update to 1.5.4 (rhbz#1081516)
cc2142
cc2142
* Wed Feb 26 2014 Matthias Runge <mrunge@redhat.com> -1.4.6-2
cc2142
- rename py3 version of pep8 to python3-pep8 (rhbz#1060408)
cc2142
cc2142
* Tue Aug 13 2013 Ian Weller <iweller@redhat.com> - 1.4.6-1
cc2142
- update to 1.4.6
cc2142
cc2142
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cc2142
cc2142
* Fri Jun 14 2013 Matthias Runge <mrunge@redhat.com> - 1.4.5-1
cc2142
- update to 1.4.5 (rhbz#918924)
cc2142
- introduce py3 package (rhbz#971941)
cc2142
cc2142
* Tue Feb 26 2013 Ian Weller <iweller@redhat.com> - 1.4.4-1
cc2142
- Update to 1.4.4
cc2142
cc2142
* Mon Feb 11 2013 Ian Weller <iweller@redhat.com> - 1.4.2-1
cc2142
- Update to 1.4.2
cc2142
cc2142
* Tue Jan 29 2013 Ian Weller <iweller@redhat.com> - 1.4.1-1
cc2142
- Update to 1.4.1
cc2142
- Add Sphinx docs
cc2142
cc2142
* Fri Sep 07 2012 Ian Weller <iweller@redhat.com> - 1.3.3-3
cc2142
- Run test suite using the pep8.py that has been installed
cc2142
cc2142
* Fri Sep 07 2012 Ian Weller <iweller@redhat.com> - 1.3.3-2
cc2142
- Add test suite
cc2142
cc2142
* Thu Sep 06 2012 Ian Weller <iweller@redhat.com> - 1.3.3-1
cc2142
- Update to 1.3.3
cc2142
cc2142
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cc2142
cc2142
* Sat Jun 16 2012 Ian Weller <iweller@redhat.com> - 1.3-1
cc2142
- Update to 1.3
cc2142
cc2142
* Sat Apr 07 2012 Ian Weller <iweller@redhat.com> - 1.0.1-1
cc2142
- Update to 1.0.1
cc2142
cc2142
* Fri Jan 27 2012 Ian Weller <iweller@redhat.com> - 0.6.1-1
cc2142
- Update to 0.6.1
cc2142
cc2142
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-4
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cc2142
cc2142
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cc2142
cc2142
* Fri Jan 21 2011 Ian Weller <iweller@redhat.com> - 0.6.0-2
cc2142
- RHBZ 633102: Requires: python-setuptools
cc2142
cc2142
* Tue Nov 16 2010 Ian Weller <iweller@redhat.com> - 0.6.0-1
cc2142
- Changed upstream (same code, new maintainer, new URL)
cc2142
- New release
cc2142
cc2142
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.2-3
cc2142
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
cc2142
cc2142
* Mon Nov  9 2009 Ian Weller <ian@ianweller.org> - 0.4.2-2
cc2142
- Add BR: python-setuptools
cc2142
- Change URL to the correct upstream
cc2142
cc2142
* Sun Nov  8 2009 Ian Weller <ian@ianweller.org> - 0.4.2-1
cc2142
- Initial package build