[packages/python-pycodestyle] Revert "- updated to 2.4.0"

qboosh qboosh at pld-linux.org
Sun Jul 22 09:36:36 CEST 2018


commit 9b2fd2cf5d0d71bb4c95e7c3fa6a8325aec20191
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 22 09:37:49 2018 +0200

    Revert "- updated to 2.4.0"
    
    There is no stable flake8 ready for pycodestyle 2.4.0.
    
    This reverts commit 15f5bdc732ce133bed07b295f9205266834f5998.

 python-pycodestyle.spec | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/python-pycodestyle.spec b/python-pycodestyle.spec
index ed14922..4e5ae6a 100644
--- a/python-pycodestyle.spec
+++ b/python-pycodestyle.spec
@@ -1,33 +1,31 @@
 #
 # Conditional build:
+%bcond_without	tests	# test target
 %bcond_without	doc	# API documentation
-%bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
 Summary:	Python style guide checker
 Summary(pl.UTF-8):	Sprawdzanie zgodności z poradnikiem stylu kodowania w Pythonie
 Name:		python-pycodestyle
-Version:	2.4.0
-Release:	1
+Version:	2.3.1
+Release:	2
 License:	MIT
 Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pycodestyle/
+#Source0Download: https://pypi.python.org/simple/pycodestyle/
 Source0:	https://files.pythonhosted.org/packages/source/p/pycodestyle/pycodestyle-%{version}.tar.gz
-# Source0-md5:	85bbebd2c90d2f833c1db467d4d0e9a3
+# Source0-md5:	240e342756af30cae0983b16303a2055
 URL:		https://pycodestyle.readthedocs.io/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires:	python-modules >= 1:2.6
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.3
 BuildRequires:	python3-setuptools
 %endif
 %{?with_doc:BuildRequires:	sphinx-pdg}
-Requires:	python-modules >= 1:2.6
+Requires:	python-modules
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,7 +42,7 @@ wcześniej nazywał się pep8.
 Summary:	Python style guide checker
 Summary(pl.UTF-8):	Sprawdzanie zgodności z poradnikiem stylu kodowania w Pythonie
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
+Requires:	python3-modules
 
 %description -n python3-pycodestyle
 pycodestyle is a tool to check your Python code against some of the
@@ -106,17 +104,19 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc CHANGES.txt LICENSE README.rst
+%doc CHANGES.txt README.rst
 %attr(755,root,root) %{_bindir}/pycodestyle
 %attr(755,root,root) %{_bindir}/pycodestyle-2
 %{py_sitescriptdir}/pycodestyle.py[co]
+%if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/pycodestyle-%{version}-py*.egg-info
 %endif
+%endif
 
 %if %{with python3}
 %files -n python3-pycodestyle
 %defattr(644,root,root,755)
-%doc CHANGES.txt LICENSE README.rst
+%doc CHANGES.txt README.rst
 %attr(755,root,root) %{_bindir}/pycodestyle-3
 %{py3_sitescriptdir}/pycodestyle.py
 %{py3_sitescriptdir}/__pycache__/pycodestyle.cpython-*.py[co]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pycodestyle.git/commitdiff/9b2fd2cf5d0d71bb4c95e7c3fa6a8325aec20191



More information about the pld-cvs-commit mailing list