# Created by pyp2rpm-3.2.2 %global pypi_name pytest-flake8 Name: python-%{pypi_name} Version: 0.8.1 Release: 1%{?dist} Summary: pytest plugin to check FLAKE8 requirements License: BSD License URL: https://github.com/tholo/pytest-flake8 Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python2-devel BuildRequires: python-setuptools %description py.test plugin for efficiently checking PEP8 compliance Usage Install by running the command:: pip install pytestflake8After installing it, when you run tests with the option:: py.test flake8every file ending in .py will be discovered and checked with .. note:: If optional flake8 plugins are installed, those will be used automatically. No provisions have been made for configuring these via ... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-flake8 >= 3.0 Requires: python3-pytest >= 2.8 Requires: python3-setuptools %description -n python3-%{pypi_name} py.test plugin for efficiently checking PEP8 compliance Usage Install by running the command:: pip install pytestflake8After installing it, when you run tests with the option:: py.test flake8every file ending in .py will be discovered and checked with .. note:: If optional flake8 plugins are installed, those will be used automatically. No provisions have been made for configuring these via ... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-flake8 >= 3.0 Requires: python-pytest >= 2.8 Requires: python-setuptools %description -n python2-%{pypi_name} py.test plugin for efficiently checking PEP8 compliance Usage Install by running the command:: pip install pytestflake8After installing it, when you run tests with the option:: py.test flake8every file ending in .py will be discovered and checked with .. note:: If optional flake8 plugins are installed, those will be used automatically. No provisions have been made for configuring these via ... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %py2_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py2_install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/__pycache__/* %{python3_sitelib}/pytest_flake8.py %{python3_sitelib}/pytest_flake8-%{version}-py?.?.egg-info %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/pytest_flake8.py* %{python2_sitelib}/pytest_flake8-%{version}-py?.?.egg-info %changelog * Wed Aug 30 2017 Copr dist git - 0.8.1-1 - Initial package.