forked from pool/python-flake8
Accepting request 596728 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/596728 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-flake8?expand=0&rev=17
This commit is contained in:
commit
ca97041da6
32
fix_pycodestyle_240.patch
Normal file
32
fix_pycodestyle_240.patch
Normal 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]
|
@ -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
|
Thu Jan 11 12:11:06 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://gitlab.com/pycqa/flake8
|
Url: https://gitlab.com/pycqa/flake8
|
||||||
Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz
|
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 devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -51,7 +53,6 @@ Requires: python-enum34
|
|||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -66,6 +67,7 @@ Flake8 runs all the tools by launching the single ``flake8`` script.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n flake8-%{version}
|
%setup -q -n flake8-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -85,8 +87,8 @@ Flake8 runs all the tools by launching the single ``flake8`` script.
|
|||||||
%python_exec setup.py test
|
%python_exec setup.py test
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%doc README.rst
|
||||||
%doc LICENSE README.rst
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/flake8
|
%python_alternative %{_bindir}/flake8
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user