Accepting request 596722 from home:sebix:branches:devel:languages:python

- add fix_pycodestyle_240.patch to fix compatibility with pycodestyle
  version 2.4.0. fixes boo#1089438
- use %license macro for license file

OBS-URL: https://build.opensuse.org/request/show/596722
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=34
This commit is contained in:
Tomáš Chvátal 2018-04-15 13:59:22 +00:00 committed by Git OBS Bridge
parent 205223e3ab
commit f1e28beae6
3 changed files with 44 additions and 3 deletions

32
fix_pycodestyle_240.patch Normal file
View File

@ -0,0 +1,32 @@
--- flake8-3.5.0/setup.py 2017-08-08 02:31:43.000000000 +0200
+++ flake8-3.5.0/setup.py 2018-04-15 15:08:31.063294441 +0200
@@ -22,7 +22,7 @@
# And in which releases we will update those ranges here:
# http://flake8.pycqa.org/en/latest/internal/releases.html#releasing-flake8
"pyflakes >= 1.5.0, < 1.7.0",
- "pycodestyle >= 2.0.0, < 2.4.0",
+ "pycodestyle >= 2.0.0, < 2.5.0",
"mccabe >= 0.6.0, < 0.7.0",
"setuptools >= 30",
]
@@ -108,7 +108,8 @@
PEP8_PLUGIN('module_imports_on_top_of_file'),
PEP8_PLUGIN('compound_statements'),
PEP8_PLUGIN('explicit_line_join'),
- PEP8_PLUGIN('break_around_binary_operator'),
+ PEP8_PLUGIN('break_after_binary_operator'),
+ PEP8_PLUGIN('break_before_binary_operator'),
PEP8_PLUGIN('comparison_to_singleton'),
PEP8_PLUGIN('comparison_negative'),
PEP8_PLUGIN('comparison_type'),
--- flake8-3.5.0/setup2.cfg 2017-10-23 13:16:02.000000000 +0200
+++ flake8-3.5.0/setup.cfg 2018-04-15 15:04:03.198239064 +0200
@@ -9,7 +9,7 @@
enum34; python_version<"3.4"
configparser; python_version<"3.2"
pyflakes >= 1.5.0, < 1.7.0
- pycodestyle >= 2.0.0, < 2.4.0
+ pycodestyle >= 2.0.0, < 2.5.0
mccabe >= 0.6.0, < 0.7.0
[egg_info]

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Apr 15 10:20:40 UTC 2018 - sebix+novell.com@sebix.at
- add fix_pycodestyle_240.patch to fix compatibility with pycodestyle
version 2.4.0. fixes boo#1089438
- use %license macro for license file
-------------------------------------------------------------------
Thu Jan 11 12:11:06 UTC 2018 - tchvatal@suse.com

View File

@ -26,6 +26,8 @@ License: MIT
Group: Development/Languages/Python
Url: https://gitlab.com/pycqa/flake8
Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz
#PATCH-FIX-UPSTREAM fix_pycodestyle_240.patch
Patch0: fix_pycodestyle_240.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@ -51,7 +53,6 @@ Requires: python-enum34
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@ -66,6 +67,7 @@ Flake8 runs all the tools by launching the single ``flake8`` script.
%prep
%setup -q -n flake8-%{version}
%patch0 -p1
%build
%python_build
@ -85,8 +87,8 @@ Flake8 runs all the tools by launching the single ``flake8`` script.
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/flake8
%{python_sitelib}/*