diff --git a/python-flake8-3.5.0-fix-pycodestyle24.patch b/python-flake8-3.5.0-fix-pycodestyle24.patch deleted file mode 100644 index 60a3e71..0000000 --- a/python-flake8-3.5.0-fix-pycodestyle24.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/setup.cfg b/setup.cfg -index d1c2524..a9d4e66 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -9,7 +9,7 @@ requires-dist = - 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.4.0, < 2.5.0 - mccabe >= 0.6.0, < 0.7.0 - - [egg_info] -diff --git a/setup.py b/setup.py -index aa45e43..b156feb 100644 ---- a/setup.py -+++ b/setup.py -@@ -22,7 +22,7 @@ requires = [ - # 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.4.0, < 2.5.0", - "mccabe >= 0.6.0, < 0.7.0", - "setuptools >= 30", - ] -@@ -108,7 +108,8 @@ setuptools.setup( - 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'), -@@ -118,6 +119,8 @@ setuptools.setup( - PEP8_PLUGIN('python_3000_raise_comma'), - PEP8_PLUGIN('python_3000_not_equal'), - PEP8_PLUGIN('python_3000_backticks'), -+ PEP8_PLUGIN('python_3000_invalid_escape_sequence'), -+ PEP8_PLUGIN('python_3000_async_await_keywords'), - ], - 'flake8.report': [ - 'default = flake8.formatting.default:Default', diff --git a/python-flake8-3.5.0-pyflakes-2.0.0.patch b/python-flake8-3.5.0-pyflakes-2.0.0.patch deleted file mode 100644 index f9a17fb..0000000 --- a/python-flake8-3.5.0-pyflakes-2.0.0.patch +++ /dev/null @@ -1,85 +0,0 @@ -From 527af5c214ef0eccfde3dd58d7ea15e09c483bd3 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Sun, 3 Jun 2018 22:18:48 +0200 -Subject: [PATCH] Update to pyflakes 2.0.0 - -- Add new pyflakes codes -- Bump the required versions -- Fixes https://gitlab.com/pycqa/flake8/issues/422 ---- - docs/source/user/error-codes.rst | 6 ++++++ - setup.cfg | 2 +- - setup.py | 2 +- - src/flake8/plugins/pyflakes.py | 2 ++ - 4 files changed, 10 insertions(+), 2 deletions(-) - -diff --git a/docs/source/user/error-codes.rst b/docs/source/user/error-codes.rst -index f14c4ec..89183fa 100644 ---- a/docs/source/user/error-codes.rst -+++ b/docs/source/user/error-codes.rst -@@ -54,6 +54,9 @@ generates its own :term:`error code`\ s for ``pyflakes``: - +------+---------------------------------------------------------------------+ - | F707 | an ``except:`` block as not the last exception handler | - +------+---------------------------------------------------------------------+ -+| F721 | doctest syntax error | -+| F722 | syntax error in forward type annotation | -++------+---------------------------------------------------------------------+ - +------+---------------------------------------------------------------------+ - | F811 | redefinition of unused ``name`` from line ``N`` | - +------+---------------------------------------------------------------------+ -@@ -69,6 +72,9 @@ generates its own :term:`error code`\ s for ``pyflakes``: - +------+---------------------------------------------------------------------+ - | F841 | local variable ``name`` is assigned to but never used | - +------+---------------------------------------------------------------------+ -++------+---------------------------------------------------------------------+ -+| F901 | ``raise NotImplemented`` should be ``raise NotImplementedError`` | -++------+---------------------------------------------------------------------+ - - Note that some of these entries behave differently on Python 2 and Python 3, - for example F812 is specific to Python 2 only. -diff --git a/setup.cfg b/setup.cfg -index a9d4e66..8236435 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -8,7 +8,7 @@ universal = 1 - requires-dist = - enum34; python_version<"3.4" - configparser; python_version<"3.2" -- pyflakes >= 1.5.0, < 1.7.0 -+ pyflakes >= 2.0.0, < 2.1.0 - pycodestyle >= 2.4.0, < 2.5.0 - mccabe >= 0.6.0, < 0.7.0 - -diff --git a/setup.py b/setup.py -index b156feb..00755e7 100644 ---- a/setup.py -+++ b/setup.py -@@ -21,7 +21,7 @@ requires = [ - # http://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies - # 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", -+ "pyflakes >= 2.0.0, < 2.1.0", - "pycodestyle >= 2.4.0, < 2.5.0", - "mccabe >= 0.6.0, < 0.7.0", - "setuptools >= 30", -diff --git a/src/flake8/plugins/pyflakes.py b/src/flake8/plugins/pyflakes.py -index bc19291..9ef9e93 100644 ---- a/src/flake8/plugins/pyflakes.py -+++ b/src/flake8/plugins/pyflakes.py -@@ -38,6 +38,7 @@ FLAKE8_PYFLAKES_CODES = { - 'ReturnOutsideFunction': 'F706', - 'DefaultExceptNotLast': 'F707', - 'DoctestSyntaxError': 'F721', -+ 'ForwardAnnotationSyntaxError': 'F722', - 'RedefinedWhileUnused': 'F811', - 'RedefinedInListComp': 'F812', - 'UndefinedName': 'F821', -@@ -45,6 +46,7 @@ FLAKE8_PYFLAKES_CODES = { - 'UndefinedLocal': 'F823', - 'DuplicateArgument': 'F831', - 'UnusedVariable': 'F841', -+ 'RaiseNotImplemented': 'F901', - } - - diff --git a/python-flake8.spec b/python-flake8.spec index 0d1fdef..1f38fdd 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -17,22 +17,13 @@ %global mccabe_dep >= 0.6.0 Name: python-%{modname} -Version: 3.5.0 -Release: 6%{?dist} +Version: 3.6.0 +Release: 1%{?dist} Summary: Python code checking using pyflakes, pycodestyle, and mccabe License: MIT URL: https://gitlab.com/pycqa/flake8 Source0: https://files.pythonhosted.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz -# https://gitlab.com/pycqa/flake8/commit/0273ca561f0ad03adff41ce5d95a1ec31b10fe5a -# https://gitlab.com/pycqa/flake8/commit/85c503de32f81ed9859d902cbe20eb4d2e4e8d55 -# https://gitlab.com/pycqa/flake8/commit/68782675b7f00c5d24c24e424efd1fbcb0705224 -# https://gitlab.com/pycqa/flake8/commit/ef1d5ceefcbfacf5dfe94534c4879ca814b130f0 -Patch0: python-flake8-3.5.0-fix-pycodestyle24.patch - -# https://gitlab.com/pycqa/flake8/merge_requests/239 -Patch1: python-flake8-3.5.0-pyflakes-2.0.0.patch - BuildArch: noarch %description @@ -171,6 +162,10 @@ ln -s flake8-%{defaultpython} %{buildroot}%{_bindir}/flake8 %changelog +* Fri Dec 21 2018 Randy Barlow - 3.6.0-1 +- Update to 3.6.0. +- http://flake8.pycqa.org/en/latest/release-notes/3.6.0.html + * Sat Jul 14 2018 Fedora Release Engineering - 3.5.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild diff --git a/sources b/sources index 608404f..bf75999 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (flake8-3.5.0.tar.gz) = ac5d1bd9c44ed76c9e5cbd941b24bb552aa76e156b24ccda6cc8440ee90f3a574fdb393665adc75298e4f57111d7ab3115ef21ef9088fb327d0a9703d442450c +SHA512 (flake8-3.6.0.tar.gz) = f4377bc7806074a88f88b3652c3061583e576ee515b2b741cee9c6dc18f84f34a7807c93fda9dca3d8b006e379dcee60bb3ae20e6a2e62fd216a82a2b36f2eb5