From 4ba30691763454533de15790da9b05540ab3dc60 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Jul 14 2018 11:06:55 +0000 Subject: Initial package --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e0ed990 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pytest-flake8-1.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0349f08..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-pytest-flake8 - -The python-pytest-flake8 package \ No newline at end of file diff --git a/python-pytest-flake8.spec b/python-pytest-flake8.spec new file mode 100644 index 0000000..15b06dd --- /dev/null +++ b/python-pytest-flake8.spec @@ -0,0 +1,78 @@ +# Enable Python dependency generation +%{?python_enable_dependency_generator} + +# Created by pyp2rpm-3.3.2 +%global pypi_name pytest-flake8 + +%global desc \ +%{name} is a plugin for pytest to leverage flake8 to automatically\ +and efficiently checking for PEP8 compliance of a project. + +Name: python-%{pypi_name} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Plugin for pytest to check PEP8 compliance with Flake8 + +License: BSD +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: python2-devel +BuildRequires: python2dist(flake8) >= 3.5 +BuildRequires: python2dist(pytest) >= 3.5 +BuildRequires: python2dist(setuptools) + +BuildRequires: python3-devel +BuildRequires: python3dist(flake8) >= 3.5 +BuildRequires: python3dist(pytest) >= 3.5 +BuildRequires: python3dist(setuptools) + +%description %{desc} + +%package -n python2-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} %{desc} + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %{desc} + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%files -n python2-%{pypi_name} +%license LICENSE +%doc README.rst +%{python2_sitelib}/pytest_flake8.py* +%{python2_sitelib}/pytest_flake8-%{version}-py?.?.egg-info + + +%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 + +%changelog +* Wed Jul 11 2018 Neal Gompa - 1.0.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..1850656 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pytest-flake8-1.0.1.tar.gz) = 68d61ee1a51bec92a85cea8e878f9c4263f4006b51b71a110247bae538b3ea29fc1da59d54639f2a53edb53cde34adbaceace3896b4ddfc719b2e75f8fdaa459