[packages/python3-pytest-flake8] Up to 1.3.0

arekm arekm at pld-linux.org
Wed Apr 30 15:18:56 CEST 2025


commit 35eede7f11d01093317a9f3b1cab36d5a1afaf20
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Apr 30 14:37:25 2025 +0200

    Up to 1.3.0

 python-pytest-flake8.spec  | 116 ---------------------------------------------
 python3-pytest-flake8.spec |  62 ++++++++++++++++++++++++
 2 files changed, 62 insertions(+), 116 deletions(-)
---
diff --git a/python-pytest-flake8.spec b/python-pytest-flake8.spec
deleted file mode 100644
index 264c658..0000000
--- a/python-pytest-flake8.spec
+++ /dev/null
@@ -1,116 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# py.test tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	py.test plugin to check FLAKE8 requirements
-Summary(pl.UTF-8):	Wtyczka py.test do sprawdzania wymagań FLAKE8
-Name:		python-pytest-flake8
-# keep 1.0.x here for python2 support
-Version:	1.0.7
-Release:	6
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pytest-flake8/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest-flake8-%{version}.tar.gz
-# Source0-md5:	e50df912c25866bfcb1a7266d6e266ef
-URL:		https://github.com/tholo/pytest-flake8
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-flake8 >= 3.5
-BuildRequires:	python-pytest >= 3.5
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-flake8 >= 3.5
-BuildRequires:	python3-pytest >= 3.5
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-py.test plugin for efficiently checking PEP8 compliance.
-
-%description -l pl.UTF-8
-Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
-
-%package -n python3-pytest-flake8
-Summary:	py.test plugin to check FLAKE8 requirements
-Summary(pl.UTF-8):	Wtyczka py.test do sprawdzania wymagań FLAKE8
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-pytest-flake8
-py.test plugin for efficiently checking PEP8 compliance.
-
-%description -n python3-pytest-flake8 -l pl.UTF-8
-Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
-
-%prep
-%setup -q -n pytest-flake8-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="pytest_flake8" \
-%{__python} -m pytest
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="pytest_flake8" \
-%{__python3} -m pytest
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG LICENSE README.rst
-%{py_sitescriptdir}/pytest_flake8.py[co]
-%{py_sitescriptdir}/pytest_flake8-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-flake8
-%defattr(644,root,root,755)
-%doc CHANGELOG LICENSE README.rst
-%{py3_sitescriptdir}/pytest_flake8.py
-%{py3_sitescriptdir}/__pycache__/pytest_flake8.cpython-*.py[co]
-%{py3_sitescriptdir}/pytest_flake8-%{version}-py*.egg-info
-%endif
diff --git a/python3-pytest-flake8.spec b/python3-pytest-flake8.spec
new file mode 100644
index 0000000..5543f10
--- /dev/null
+++ b/python3-pytest-flake8.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without	tests	# py.test tests
+
+Summary:	py.test plugin to check FLAKE8 requirements
+Summary(pl.UTF-8):	Wtyczka py.test do sprawdzania wymagań FLAKE8
+Name:		python3-pytest-flake8
+Version:	1.3.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-flake8/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-flake8/pytest_flake8-%{version}.tar.gz
+# Source0-md5:	0f8b276a4ff9955c23f77997652cb0db
+URL:		https://github.com/tholo/pytest-flake8
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-flake8 >= 3.5
+BuildRequires:	python3-pytest >= 3.5
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+py.test plugin for efficiently checking PEP8 compliance.
+
+%description -l pl.UTF-8
+Wtyczka py.test do efektywnego sprawdzania zgodności z PEP8.
+
+%prep
+%setup -q -n pytest_flake8-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_flake8" \
+%{__python3} -m pytest
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE NEWS.rst README.rst
+%{py3_sitescriptdir}/pytest_flake8.py
+%{py3_sitescriptdir}/__pycache__/pytest_flake8.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_flake8-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-flake8.git/commitdiff/35eede7f11d01093317a9f3b1cab36d5a1afaf20



More information about the pld-cvs-commit mailing list