%global srcname pytest-pep8 Name: python-%{srcname} Version: 1.0.6 Release: 21%{?dist} Summary: Pytest plugin to check PEP8 requirements License: MIT URL: https://pypi.python.org/pypi/%{srcname} Source0: https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz Patch0: https://bitbucket.org/pytest-dev/pytest-pep8/commits/485cc05458ac180b5aa296ed149bbeb2ef69f3c5/raw/#/485cc05458.patch # https://bitbucket.org/pytest-dev/pytest-pep8/issues/8/test-failure # https://bitbucket.org/pytest-dev/pytest-pep8/issues/10/test-failure-pytest-28-regression Patch1: remove-offending-tests.patch # Add marker Patch2: python-pytest-pep8-marker.patch # Fix for pytest 4 Patch3: python-pytest-pep8-pytest4.patch # Drop requirement on pytest-cache Patch4: python-pytest-pep8-cache.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pep8 BuildRequires: python%{python3_pkgversion}-pytest >= 2.4.2 %description Pytest plugin to check PEP8 requirements. %package -n python%{python3_pkgversion}-%{srcname} Summary: Pytest plugin to check PEP8 requirements Requires: python%{python3_pkgversion}-pep8 Requires: python%{python3_pkgversion}-pytest >= 2.4.2 %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} Pytest plugin to check PEP8 requirements. %prep %autosetup -n %{srcname}-%{version} -p1 rm -rf *.egg-info %build %{py3_build} %install %{py3_install} %check PYTHONPATH=$(pwd) \ py.test-%{python3_version} -r s . %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE %doc CHANGELOG README.txt %{python3_sitelib}/pytest_pep8.py %{python3_sitelib}/pytest_pep8*.egg-info/ %{python3_sitelib}/__pycache__/* %changelog * Fri Jul 26 2019 Fedora Release Engineering - 1.0.6-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun May 12 2019 Orion Poplawski - 1.0.6-20 - Drop unneeded BR on pytest-cache * Sun May 5 2019 Orion Poplawski - 1.0.6-19 - Add patch to fix tests with pytest 4 (bugz#1706065) * Fri Mar 01 2019 Miro Hrončok - 1.0.6-18 - Remove python2 subpackage * Sat Feb 02 2019 Fedora Release Engineering - 1.0.6-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.0.6-16 - Drop explicit locale setting for python3, use C.UTF-8 for python2 See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot * Sat Jul 14 2018 Fedora Release Engineering - 1.0.6-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.0.6-14 - Rebuilt for Python 3.7 * Thu Apr 12 2018 Orion Poplawski - 1.0.6-13 - Add patch to add pep8 marker, fixes FTBFS (bug #1556258) * Mon Mar 26 2018 Iryna Shcherbina - 1.0.6-12 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 1.0.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.6-8 - Rebuild for Python 3.6 - Disable another failing test upstream doesn't seem to care about * Tue Jul 19 2016 Fedora Release Engineering - 1.0.6-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon May 23 2016 Orion Poplawski - 1.0.6-6 - Fix build for EPEL7 * Tue Feb 2 2016 Orion Poplawski - 1.0.6-5 - Modernize spec - Fix python3 package file ownership * Tue Nov 24 2015 Zbigniew Jędrzejewski-Szmek - 1.0.6-4 - Add patch for one failing test and disable another * Tue Nov 10 2015 Fedora Release Engineering - 1.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 1.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 16 2014 Orion Poplawski - 1.0.6-1 - Update to 1.0.6 - Really run tests * Sat Jun 07 2014 Fedora Release Engineering - 1.0.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 19 2014 Bohuslav Kabrda - 1.0.5-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Thu Mar 27 2014 Orion Poplawski - 1.0.5-3 - Add explicit version requirements for pytest * Mon Mar 24 2014 Orion Poplawski - 1.0.5-2 - Capitalize summary/description * Tue Feb 25 2014 Orion Poplawski - 1.0.5-1 - Initial package