Hello community, here is the log from the commit of package python-flake8 for openSUSE:Factory checked in at 2019-02-02 21:45:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flake8 (Old) and /work/SRC/openSUSE:Factory/.python-flake8.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8" Sat Feb 2 21:45:29 2019 rev:21 rq:669479 version:3.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flake8/python-flake8.changes 2018-11-09 07:50:33.647977443 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8.new.28833/python-flake8.changes 2019-02-02 21:45:30.560175193 +0100 @@ -1,0 +2,6 @@ +Tue Jan 29 09:19:47 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Add patch to build with pyflakes-2.1.0: + * pyflakes21.patch + +------------------------------------------------------------------- New: ---- pyflakes21.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flake8.spec ++++++ --- /var/tmp/diff_new_pack.9h57kX/_old 2019-02-02 21:45:31.336174522 +0100 +++ /var/tmp/diff_new_pack.9h57kX/_new 2019-02-02 21:45:31.344174514 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-flake8 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,7 @@ URL: https://gitlab.com/pycqa/flake8 Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz Patch0: remove_mock_dependency.patch +Patch1: pyflakes21.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros ++++++ pyflakes21.patch ++++++ >From 03ea38df168036a38aff7af916c07c05fe1f2eb2 Mon Sep 17 00:00:00 2001 From: Anthony Sottile <[email protected]> Date: Sat, 19 Jan 2019 11:59:38 -0800 Subject: [PATCH] WIP: use latest pyflakes --- setup.py | 2 +- src/flake8/plugins/pyflakes.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) Index: flake8-3.6.0/setup.py =================================================================== --- flake8-3.6.0.orig/setup.py +++ flake8-3.6.0/setup.py @@ -25,7 +25,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 >= 2.0.0, < 2.1.0", + "pyflakes >= 2.1.0, < 2.2.0", "pycodestyle >= 2.4.0, < 2.5.0", "mccabe >= 0.6.0, < 0.7.0", "setuptools >= 30", Index: flake8-3.6.0/src/flake8/plugins/pyflakes.py =================================================================== --- flake8-3.6.0.orig/src/flake8/plugins/pyflakes.py +++ flake8-3.6.0/src/flake8/plugins/pyflakes.py @@ -30,6 +30,8 @@ FLAKE8_PYFLAKES_CODES = { "TooManyExpressionsInStarredAssignment": "F621", "TwoStarredExpressions": "F622", "AssertTuple": "F631", + "IsLiteral": "F632", + "InvalidPrintSyntax": "F633", "BreakOutsideLoop": "F701", "ContinueOutsideLoop": "F702", "ContinueInFinally": "F703", @@ -39,6 +41,7 @@ FLAKE8_PYFLAKES_CODES = { "DefaultExceptNotLast": "F707", "DoctestSyntaxError": "F721", "ForwardAnnotationSyntaxError": "F722", + "CommentAnnotationSyntaxError": "F723", "RedefinedWhileUnused": "F811", "RedefinedInListComp": "F812", "UndefinedName": "F821", @@ -72,7 +75,7 @@ class FlakesChecker(pyflakes.checker.Che include_in_doctest = [] exclude_from_doctest = [] - def __init__(self, tree, filename): + def __init__(self, tree, file_tokens, filename): """Initialize the PyFlakes plugin with an AST tree and filename.""" filename = utils.normalize_paths(filename)[0] with_doctest = self.with_doctest @@ -97,7 +100,10 @@ class FlakesChecker(pyflakes.checker.Che with_doctest = True super(FlakesChecker, self).__init__( - tree, filename, withDoctest=with_doctest + tree, + filename=filename, + withDoctest=with_doctest, + file_tokens=file_tokens, ) @classmethod
