Hello community, here is the log from the commit of package python3-flake8 for openSUSE:Factory checked in at 2016-07-14 09:45:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-flake8 (Old) and /work/SRC/openSUSE:Factory/.python3-flake8.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-flake8" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-flake8/python3-flake8.changes 2016-05-25 21:28:11.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-flake8.new/python3-flake8.changes 2016-07-14 09:45:31.000000000 +0200 @@ -1,0 +2,24 @@ +Thu Jul 7 15:23:09 UTC 2016 - [email protected] + +- Update to 2.6.2 + * Bug: Fix packaging error during release process. +- Update to 2.6.1 + * Bug: Update the config files to search for to include setup.cfg and + tox.ini. This was broken in 2.5.5 when we stopped passing + config_file to our Style Guide +- Update to 2.6.0 + * Requirements Change: Switch to pycodestyle as all future pep8 releases + will use that package name + * Improvement: Allow for Windows users on select versions of Python to + use --jobs and multiprocessing + * Improvement: Update bounds on McCabe + * Improvement: Update bounds on PyFlakes and blacklist known broken + versions + * Improvement: Handle new PyFlakes warning with a new error code: F405 +- Update to version 2.5.5 + * Bug: Fix setuptools integration when parsing config files + * Bug: Don't pass the user's config path as the config_file when creating a + StyleGuide +- Remove obsolete allow_pyflakes_1.1.patch + +------------------------------------------------------------------- Old: ---- allow_pyflakes_1.1.patch flake8-2.5.4.tar.gz New: ---- flake8-2.6.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-flake8.spec ++++++ --- /var/tmp/diff_new_pack.m5tGea/_old 2016-07-14 09:45:32.000000000 +0200 +++ /var/tmp/diff_new_pack.m5tGea/_new 2016-07-14 09:45:32.000000000 +0200 @@ -17,25 +17,23 @@ Name: python3-flake8 -Version: 2.5.4 +Version: 2.6.2 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co 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 allow_pyflakes_1.1.patch - support for python3-pyflakes 1.1 - https://gitlab.com/pycqa/flake8/merge_requests/55 -Patch0: allow_pyflakes_1.1.patch BuildRequires: python3-devel BuildRequires: python3-distribute BuildRequires: python3-mccabe >= 0.2 -BuildRequires: python3-pep8 >= 1.4.3 +BuildRequires: python3-pycodestyle >= 1.4.3 BuildRequires: python3-pyflakes >= 0.6.1 # Test requirements: BuildRequires: python3-mock BuildRequires: python3-nose Requires: python3-mccabe >= 0.2 -Requires: python3-pep8 >= 1.4.3 +Requires: python3-pycodestyle >= 1.4.3 Requires: python3-pyflakes >= 0.6.1 Requires(post): update-alternatives Requires(postun): update-alternatives @@ -53,7 +51,6 @@ %prep %setup -q -n flake8-%{version} -%patch0 -p1 %build python3 setup.py build ++++++ flake8-2.5.4.tar.gz -> flake8-2.6.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/CHANGES.rst new/flake8-2.6.2/CHANGES.rst --- old/flake8-2.5.4/CHANGES.rst 2016-02-11 18:53:24.000000000 +0100 +++ new/flake8-2.6.2/CHANGES.rst 2016-06-25 19:10:57.000000000 +0200 @@ -1,6 +1,42 @@ CHANGES ======= +2.6.2 - 2016-06-25 +------------------ + +- **Bug** Fix packaging error during release process. + +2.6.1 - 2016-06-25 +------------------ + +- **Bug** Update the config files to search for to include ``setup.cfg`` and + ``tox.ini``. This was broken in 2.5.5 when we stopped passing + ``config_file`` to our Style Guide + +2.6.0 - 2016-06-15 +------------------ + +- **Requirements Change** Switch to pycodestyle as all future pep8 releases + will use that package name + +- **Improvement** Allow for Windows users on *select* versions of Python to + use ``--jobs`` and multiprocessing + +- **Improvement** Update bounds on McCabe + +- **Improvement** Update bounds on PyFlakes and blacklist known broken + versions + +- **Improvement** Handle new PyFlakes warning with a new error code: F405 + +2.5.5 - 2016-06-14 +------------------ + +- **Bug** Fix setuptools integration when parsing config files + +- **Bug** Don't pass the user's config path as the config_file when creating a + StyleGuide + 2.5.4 - 2016-02-11 ------------------ @@ -105,7 +141,7 @@ .. _GitLab#35: https://gitlab.com/pycqa/flake8/issues/35 .. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18 .. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20 -.. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html +.. _VCS hooks docs: https://flake8.readthedocs.io/en/latest/vcs.html 2.3.0 - 2015-01-04 ------------------ @@ -198,7 +234,7 @@ - McCabe complexity warnings are prefixed by a ``C`` instead of a ``W`` - Flake8 supports extensions through entry points - Due to the above support, we **require** setuptools -- We publish the `documentation <https://flake8.readthedocs.org/>`_ +- We publish the `documentation <https://flake8.readthedocs.io/>`_ - Fixes #13: pep8, pyflakes and mccabe become external dependencies - Split run.py into main.py, engine.py and hooks.py for better logic - Expose our parser for our users diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/CONTRIBUTORS.txt new/flake8-2.6.2/CONTRIBUTORS.txt --- old/flake8-2.5.4/CONTRIBUTORS.txt 2015-04-30 23:19:51.000000000 +0200 +++ new/flake8-2.6.2/CONTRIBUTORS.txt 2016-06-25 18:56:16.000000000 +0200 @@ -24,3 +24,4 @@ - Christian Long - Tyrel Souza - Corey Farwell +- Michael Penkov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/PKG-INFO new/flake8-2.6.2/PKG-INFO --- old/flake8-2.5.4/PKG-INFO 2016-02-11 18:54:20.000000000 +0100 +++ new/flake8-2.6.2/PKG-INFO 2016-06-25 19:11:45.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: flake8 -Version: 2.5.4 +Version: 2.6.2 Summary: the modular source code checker: pep8, pyflakes and co Home-page: https://gitlab.com/pycqa/flake8 Author: Ian Cordasco @@ -100,14 +100,50 @@ Links ===== - * `flake8 documentation <http://flake8.readthedocs.org/en/latest/>`_ + * `flake8 documentation <https://flake8.readthedocs.io/en/latest/>`_ - * `pep8 documentation <http://pep8.readthedocs.org/en/latest/>`_ + * `pep8 documentation <https://pep8.readthedocs.io/en/latest/>`_ CHANGES ======= + 2.6.2 - 2016-06-25 + ------------------ + + - **Bug** Fix packaging error during release process. + + 2.6.1 - 2016-06-25 + ------------------ + + - **Bug** Update the config files to search for to include ``setup.cfg`` and + ``tox.ini``. This was broken in 2.5.5 when we stopped passing + ``config_file`` to our Style Guide + + 2.6.0 - 2016-06-15 + ------------------ + + - **Requirements Change** Switch to pycodestyle as all future pep8 releases + will use that package name + + - **Improvement** Allow for Windows users on *select* versions of Python to + use ``--jobs`` and multiprocessing + + - **Improvement** Update bounds on McCabe + + - **Improvement** Update bounds on PyFlakes and blacklist known broken + versions + + - **Improvement** Handle new PyFlakes warning with a new error code: F405 + + 2.5.5 - 2016-06-14 + ------------------ + + - **Bug** Fix setuptools integration when parsing config files + + - **Bug** Don't pass the user's config path as the config_file when creating a + StyleGuide + 2.5.4 - 2016-02-11 ------------------ @@ -212,7 +248,7 @@ .. _GitLab#35: https://gitlab.com/pycqa/flake8/issues/35 .. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18 .. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20 - .. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html + .. _VCS hooks docs: https://flake8.readthedocs.io/en/latest/vcs.html 2.3.0 - 2015-01-04 ------------------ @@ -305,7 +341,7 @@ - McCabe complexity warnings are prefixed by a ``C`` instead of a ``W`` - Flake8 supports extensions through entry points - Due to the above support, we **require** setuptools - - We publish the `documentation <https://flake8.readthedocs.org/>`_ + - We publish the `documentation <https://flake8.readthedocs.io/>`_ - Fixes #13: pep8, pyflakes and mccabe become external dependencies - Split run.py into main.py, engine.py and hooks.py for better logic - Expose our parser for our users diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/README.rst new/flake8-2.6.2/README.rst --- old/flake8-2.5.4/README.rst 2015-12-14 20:12:41.000000000 +0100 +++ new/flake8-2.6.2/README.rst 2016-06-25 18:56:16.000000000 +0200 @@ -92,6 +92,6 @@ Links ===== -* `flake8 documentation <http://flake8.readthedocs.org/en/latest/>`_ +* `flake8 documentation <https://flake8.readthedocs.io/en/latest/>`_ -* `pep8 documentation <http://pep8.readthedocs.org/en/latest/>`_ +* `pep8 documentation <https://pep8.readthedocs.io/en/latest/>`_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/__init__.py new/flake8-2.6.2/flake8/__init__.py --- old/flake8-2.5.4/flake8/__init__.py 2016-02-11 18:53:31.000000000 +0100 +++ new/flake8-2.6.2/flake8/__init__.py 2016-06-25 19:10:36.000000000 +0200 @@ -1 +1 @@ -__version__ = '2.5.4' +__version__ = '2.6.2' Files old/flake8-2.5.4/flake8/__init__.pyc and new/flake8-2.6.2/flake8/__init__.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/__init__.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/__init__.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/_pyflakes.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/_pyflakes.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/callbacks.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/callbacks.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/compat.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/compat.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/engine.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/engine.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/hooks.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/hooks.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/main.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/main.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/reporter.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/reporter.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/__pycache__/util.cpython-34.pyc and new/flake8-2.6.2/flake8/__pycache__/util.cpython-34.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/_pyflakes.py new/flake8-2.6.2/flake8/_pyflakes.py --- old/flake8-2.5.4/flake8/_pyflakes.py 2016-01-15 17:59:13.000000000 +0100 +++ new/flake8-2.6.2/flake8/_pyflakes.py 2016-06-25 19:05:20.000000000 +0200 @@ -8,7 +8,7 @@ demandimport.disable() import os -import pep8 +import pycodestyle as pep8 import pyflakes import pyflakes.checker @@ -20,6 +20,7 @@ 'F402 ImportShadowedByLoopVar', 'F403 ImportStarUsed', 'F404 LateFutureImport', + 'F405 ImportStarUsage', 'F810 Redefined', # XXX Obsolete? 'F811 RedefinedWhileUnused', 'F812 RedefinedInListComp', Files old/flake8-2.5.4/flake8/_pyflakes.pyc and new/flake8-2.6.2/flake8/_pyflakes.pyc differ Files old/flake8-2.5.4/flake8/callbacks.pyc and new/flake8-2.6.2/flake8/callbacks.pyc differ Files old/flake8-2.5.4/flake8/compat.pyc and new/flake8-2.6.2/flake8/compat.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/engine.py new/flake8-2.6.2/flake8/engine.py --- old/flake8-2.5.4/flake8/engine.py 2016-02-11 18:52:42.000000000 +0100 +++ new/flake8-2.6.2/flake8/engine.py 2016-06-25 19:05:20.000000000 +0200 @@ -6,7 +6,7 @@ import sys import warnings -import pep8 +import pycodestyle as pep8 from flake8 import __version__ from flake8 import callbacks @@ -18,7 +18,7 @@ EXTRA_EXCLUDE = ['.tox', '.eggs', '*.egg'] -pep8.PROJECT_CONFIG += ('.flake8',) +pep8.PROJECT_CONFIG = ('.flake8',) + pep8.PROJECT_CONFIG def _load_entry_point(entry_point, verify_requirements): @@ -44,7 +44,7 @@ def _register_extensions(): """Register all the extensions.""" extensions = util.OrderedSet() - extensions.add(('pep8', pep8.__version__)) + extensions.add(('pycodestyle', pep8.__version__)) parser_hooks = [] options_hooks = [] ignored_hooks = [] Files old/flake8-2.5.4/flake8/engine.pyc and new/flake8-2.6.2/flake8/engine.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/hooks.py new/flake8-2.6.2/flake8/hooks.py --- old/flake8-2.5.4/flake8/hooks.py 2015-12-30 18:00:24.000000000 +0100 +++ new/flake8-2.6.2/flake8/hooks.py 2016-06-25 19:05:20.000000000 +0200 @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import with_statement import os -import pep8 +import pycodestyle as pep8 import sys import stat from subprocess import Popen, PIPE @@ -14,7 +14,6 @@ from flake8 import compat from flake8.engine import get_parser, get_style_guide -from flake8.main import DEFAULT_CONFIG def git_hook(complexity=-1, strict=False, ignore=None, lazy=False): @@ -51,8 +50,7 @@ tmpdir = tempfile.mkdtemp() - flake8_style = get_style_guide(config_file=DEFAULT_CONFIG, paths=['.'], - **options) + flake8_style = get_style_guide(paths=['.'], **options) filepatterns = flake8_style.options.filename # Copy staged versions to temporary directory @@ -102,7 +100,7 @@ complexity = ui.config('flake8', 'complexity', default=-1) strict = ui.configbool('flake8', 'strict', default=True) ignore = ui.config('flake8', 'ignore', default=None) - config = ui.config('flake8', 'config', default=DEFAULT_CONFIG) + config = ui.config('flake8', 'config', default=None) paths = _get_files(repo, **kwargs) Files old/flake8-2.5.4/flake8/hooks.pyc and new/flake8-2.6.2/flake8/hooks.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/main.py new/flake8-2.6.2/flake8/main.py --- old/flake8-2.5.4/flake8/main.py 2015-12-14 20:12:41.000000000 +0100 +++ new/flake8-2.6.2/flake8/main.py 2016-06-25 19:05:20.000000000 +0200 @@ -3,26 +3,29 @@ import re import sys +import pycodestyle as pep8 import setuptools from flake8.engine import get_parser, get_style_guide from flake8.util import option_normalizer if sys.platform.startswith('win'): - DEFAULT_CONFIG = os.path.expanduser(r'~\.flake8') + USER_CONFIG = os.path.expanduser(r'~\.flake8') else: - DEFAULT_CONFIG = os.path.join( + USER_CONFIG = os.path.join( os.getenv('XDG_CONFIG_HOME') or os.path.expanduser('~/.config'), 'flake8' ) +pep8.USER_CONFIG = USER_CONFIG + EXTRA_IGNORE = [] def main(): """Parse options and run checks on Python source.""" # Prepare - flake8_style = get_style_guide(parse_argv=True, config_file=DEFAULT_CONFIG) + flake8_style = get_style_guide(parse_argv=True) options = flake8_style.options if options.install_hook: @@ -61,8 +64,7 @@ :param int complexity: (optional), enables the mccabe check for values > 0 """ ignore = set(ignore).union(EXTRA_IGNORE) - flake8_style = get_style_guide( - config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity) + flake8_style = get_style_guide(ignore=ignore, max_complexity=complexity) return flake8_style.input_file(path) @@ -74,8 +76,7 @@ :param int complexity: (optional), enables the mccabe check for values > 0 """ ignore = set(ignore).union(EXTRA_IGNORE) - flake8_style = get_style_guide( - config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity) + flake8_style = get_style_guide(ignore=ignore, max_complexity=complexity) return flake8_style.input_file(None, lines=code.splitlines(True)) @@ -93,18 +94,18 @@ for opt in parser.option_list: cmd_name = opt._long_opts[0][2:] option_name = cmd_name.replace('-', '_') - self.option_to_cmds[option_name] = cmd_name + self.option_to_cmds[option_name] = opt setattr(self, option_name, None) def finalize_options(self): self.options_dict = {} - for (option_name, cmd_name) in self.option_to_cmds.items(): + for (option_name, opt) in self.option_to_cmds.items(): if option_name in ['help', 'verbose']: continue value = getattr(self, option_name) if value is None: continue - value = option_normalizer(value) + value = option_normalizer(value, opt, option_name) # Check if there's any values that need to be fixed. if option_name == "include" and isinstance(value, str): value = re.findall('[^,;\s]+', value) @@ -131,9 +132,7 @@ def run(self): # Prepare paths = list(self.distribution_files()) - flake8_style = get_style_guide(config_file=DEFAULT_CONFIG, - paths=paths, - **self.options_dict) + flake8_style = get_style_guide(paths=paths, **self.options_dict) # Run the checkers report = flake8_style.check_files() Files old/flake8-2.5.4/flake8/main.pyc and new/flake8-2.6.2/flake8/main.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/reporter.py new/flake8-2.6.2/flake8/reporter.py --- old/flake8-2.5.4/flake8/reporter.py 2015-12-14 20:12:41.000000000 +0100 +++ new/flake8-2.6.2/flake8/reporter.py 2016-06-25 19:05:20.000000000 +0200 @@ -10,7 +10,7 @@ except ImportError: # Python 2.5 multiprocessing = None -import pep8 +import pycodestyle as pep8 __all__ = ['multiprocessing', 'BaseQReport', 'QueueReport'] @@ -59,8 +59,8 @@ def _process_main(self): if not self._loaded: # Windows needs to parse again the configuration - from flake8.main import get_style_guide, DEFAULT_CONFIG - get_style_guide(parse_argv=True, config_file=DEFAULT_CONFIG) + from flake8.main import get_style_guide + get_style_guide(parse_argv=True) for filename in iter(self.task_queue.get, 'DONE'): self.input_file(filename) Files old/flake8-2.5.4/flake8/reporter.pyc and new/flake8-2.6.2/flake8/reporter.pyc differ Files old/flake8-2.5.4/flake8/tests/__init__.pyc and new/flake8-2.6.2/flake8/tests/__init__.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/__init__.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/__init__.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/_test_warnings.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/_test_warnings.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_engine.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_engine.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_hooks.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_hooks.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_integration.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_integration.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_main.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_main.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_pyflakes.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_pyflakes.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_reporter.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_reporter.cpython-34.pyc differ Files old/flake8-2.5.4/flake8/tests/__pycache__/test_util.cpython-34.pyc and new/flake8-2.6.2/flake8/tests/__pycache__/test_util.cpython-34.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/tests/_test_warnings.py new/flake8-2.6.2/flake8/tests/_test_warnings.py --- old/flake8-2.5.4/flake8/tests/_test_warnings.py 2015-04-30 23:18:26.000000000 +0200 +++ new/flake8-2.6.2/flake8/tests/_test_warnings.py 2016-06-25 19:05:20.000000000 +0200 @@ -280,7 +280,7 @@ with open(self.this_file(), "r") as f: return f.read() - with mock.patch("pep8.stdin_get_value", fake_stdin): + with mock.patch("pycodestyle.stdin_get_value", fake_stdin): (style_guide, report, collected_warnings, Files old/flake8-2.5.4/flake8/tests/_test_warnings.pyc and new/flake8-2.6.2/flake8/tests/_test_warnings.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/tests/test_engine.py new/flake8-2.6.2/flake8/tests/test_engine.py --- old/flake8-2.5.4/flake8/tests/test_engine.py 2016-02-10 23:08:46.000000000 +0100 +++ new/flake8-2.6.2/flake8/tests/test_engine.py 2016-06-25 19:05:20.000000000 +0200 @@ -8,7 +8,7 @@ import mock # < PY33 from flake8 import engine, util, __version__, reporter -import pep8 +import pycodestyle as pep8 class TestEngine(unittest.TestCase): @@ -48,7 +48,7 @@ StyleGuide.assert_called_once_with(**{'parser': m, 'foo': 'bar'}) def test_register_extensions(self): - with mock.patch('pep8.register_check') as register_check: + with mock.patch('pycodestyle.register_check') as register_check: registered_exts = engine._register_extensions() self.assertTrue(isinstance(registered_exts[0], util.OrderedSet)) self.assertTrue(len(registered_exts[0]) > 0) @@ -72,7 +72,7 @@ # setup re = self.start_patch('flake8.engine._register_extensions') gpv = self.start_patch('flake8.engine.get_python_version') - pgp = self.start_patch('pep8.get_parser') + pgp = self.start_patch('pycodestyle.get_parser') m = mock.Mock() re.return_value = ([('pyflakes', '0.7'), ('mccabe', '0.2')], [], [], []) Files old/flake8-2.5.4/flake8/tests/test_engine.pyc and new/flake8-2.6.2/flake8/tests/test_engine.pyc differ Files old/flake8-2.5.4/flake8/tests/test_git_hook.pyc and new/flake8-2.6.2/flake8/tests/test_git_hook.pyc differ Files old/flake8-2.5.4/flake8/tests/test_hooks.pyc and new/flake8-2.6.2/flake8/tests/test_hooks.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/tests/test_integration.py new/flake8-2.6.2/flake8/tests/test_integration.py --- old/flake8-2.5.4/flake8/tests/test_integration.py 2015-03-09 15:26:16.000000000 +0100 +++ new/flake8-2.6.2/flake8/tests/test_integration.py 2016-06-25 19:05:20.000000000 +0200 @@ -64,7 +64,7 @@ with open(self.this_file(), "r") as f: return f.read() - with mock.patch("pep8.stdin_get_value", fake_stdin): + with mock.patch("pycodestyle.stdin_get_value", fake_stdin): guide, report = self.check_files(arglist=['--jobs=4'], explicit_stdin=True) self.assertEqual(self.count, 1) @@ -72,7 +72,7 @@ def test_stdin_fail(self): def fake_stdin(): return "notathing\n" - with mock.patch("pep8.stdin_get_value", fake_stdin): + with mock.patch("pycodestyle.stdin_get_value", fake_stdin): # only assert needed is in check_files guide, report = self.check_files(arglist=['--jobs=4'], explicit_stdin=True, Files old/flake8-2.5.4/flake8/tests/test_integration.pyc and new/flake8-2.6.2/flake8/tests/test_integration.pyc differ Files old/flake8-2.5.4/flake8/tests/test_main.pyc and new/flake8-2.6.2/flake8/tests/test_main.pyc differ Files old/flake8-2.5.4/flake8/tests/test_pyflakes.pyc and new/flake8-2.6.2/flake8/tests/test_pyflakes.pyc differ Files old/flake8-2.5.4/flake8/tests/test_reporter.pyc and new/flake8-2.6.2/flake8/tests/test_reporter.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/tests/test_util.py new/flake8-2.6.2/flake8/tests/test_util.py --- old/flake8-2.5.4/flake8/tests/test_util.py 2015-12-14 20:12:41.000000000 +0100 +++ new/flake8-2.6.2/flake8/tests/test_util.py 2016-06-25 19:05:20.000000000 +0200 @@ -1,85 +1,120 @@ +import optparse import unittest from flake8.util import option_normalizer -class TestOptionSerializer(unittest.TestCase): +class TestOptionSerializerParsesTrue(unittest.TestCase): + + def setUp(self): + self.option = optparse.Option('--foo', action='store_true') + self.option_name = 'fake_option' def test_1_is_true(self): - option = option_normalizer('1') - self.assertTrue(option) + value = option_normalizer('1', self.option, self.option_name) + self.assertTrue(value) def test_T_is_true(self): - option = option_normalizer('T') - self.assertTrue(option) + value = option_normalizer('T', self.option, self.option_name) + self.assertTrue(value) def test_TRUE_is_true(self): - option = option_normalizer('TRUE') - self.assertTrue(option, True) + value = option_normalizer('TRUE', self.option, self.option_name) + self.assertTrue(value, True) def test_ON_is_true(self): - option = option_normalizer('ON') - self.assertTrue(option) + value = option_normalizer('ON', self.option, self.option_name) + self.assertTrue(value) def test_t_is_true(self): - option = option_normalizer('t') - self.assertTrue(option) + value = option_normalizer('t', self.option, self.option_name) + self.assertTrue(value) def test_true_is_true(self): - option = option_normalizer('true') - self.assertTrue(option) + value = option_normalizer('true', self.option, self.option_name) + self.assertTrue(value) def test_on_is_true(self): - option = option_normalizer('on') - self.assertTrue(option) + value = option_normalizer('on', self.option, self.option_name) + self.assertTrue(value) + + +class TestOptionSerializerParsesFalse(unittest.TestCase): + + def setUp(self): + self.option = optparse.Option('--foo', action='store_true') + self.option_name = 'fake_option' def test_0_is_false(self): - option = option_normalizer('0') - self.assertFalse(option) + value = option_normalizer('0', self.option, self.option_name) + self.assertFalse(value) def test_F_is_false(self): - option = option_normalizer('F') - self.assertFalse(option) + value = option_normalizer('F', self.option, self.option_name) + self.assertFalse(value) def test_FALSE_is_false(self): - option = option_normalizer('FALSE') - self.assertFalse(option) + value = option_normalizer('FALSE', self.option, self.option_name) + self.assertFalse(value) def test_OFF_is_false(self): - option = option_normalizer('OFF') - self.assertFalse(option) + value = option_normalizer('OFF', self.option, self.option_name) + self.assertFalse(value) def test_f_is_false(self): - option = option_normalizer('f') - self.assertFalse(option) + value = option_normalizer('f', self.option, self.option_name) + self.assertFalse(value) def test_false_is_false(self): - option = option_normalizer('false') - self.assertFalse(option) + value = option_normalizer('false', self.option, self.option_name) + self.assertFalse(value) def test_off_is_false(self): - option = option_normalizer('off') - self.assertFalse(option) + value = option_normalizer('off', self.option, self.option_name) + self.assertFalse(value) + - def test_parses_lists(self): - answer = ['F401', 'F402', 'F403', 'F404'] +class TestOptionSerializerParsesLists(unittest.TestCase): - option = option_normalizer('F401,F402,F403,F404') - self.assertEqual(option, answer) + def setUp(self): + self.option = optparse.Option('--select') + self.option_name = 'select' + self.answer = ['F401', 'F402', 'F403', 'F404', 'F405'] - option = option_normalizer('F401 ,F402 ,F403 ,F404') - self.assertEqual(option, answer) + def test_parses_simple_comma_separated_lists(self): + value = option_normalizer('F401,F402,F403,F404,F405', self.option, + self.option_name) + self.assertEqual(value, self.answer) - option = option_normalizer('F401, F402, F403, F404') - self.assertEqual(option, answer) + def test_parses_less_simple_comma_separated_lists(self): + value = option_normalizer('F401 ,F402 ,F403 ,F404, F405', self.option, + self.option_name) + self.assertEqual(value, self.answer) - option = option_normalizer('''\ + value = option_normalizer('F401, F402, F403, F404, F405', self.option, + self.option_name) + self.assertEqual(value, self.answer) + + def test_parses_comma_separated_lists_with_newlines(self): + value = option_normalizer('''\ F401, F402, F403, F404, - ''') - self.assertEqual(option, answer) + F405, + ''', self.option, self.option_name) + self.assertEqual(value, self.answer) + + +class TestOptionSerializerParsesInts(unittest.TestCase): + + def setUp(self): + self.option = optparse.Option('--max-complexity', type='int') + self.option_name = 'max_complexity' + + def test_parses_an_int(self): + value = option_normalizer('2', self.option, self.option_name) + self.assertEqual(value, 2) if __name__ == '__main__': Files old/flake8-2.5.4/flake8/tests/test_util.pyc and new/flake8-2.6.2/flake8/tests/test_util.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8/util.py new/flake8-2.6.2/flake8/util.py --- old/flake8-2.5.4/flake8/util.py 2015-12-14 20:12:41.000000000 +0100 +++ new/flake8-2.6.2/flake8/util.py 2016-06-25 19:05:20.000000000 +0200 @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- import os +import sys try: import ast @@ -54,16 +55,27 @@ def force_disable_jobs(styleguide): - return is_windows() or is_using_stdin(styleguide.paths) - - -def option_normalizer(value): - if str(value).upper() in ('1', 'T', 'TRUE', 'ON'): - value = True - if str(value).upper() in ('0', 'F', 'FALSE', 'OFF'): - value = False - - if isinstance(value, str): - value = [opt.strip() for opt in value.split(',') if opt.strip()] + affected_mp_version = (sys.version_info <= (2, 7, 11) or + (3, 0) <= sys.version_info < (3, 2)) + return (is_windows() and affected_mp_version or + is_using_stdin(styleguide.paths)) + + +INT_TYPES = ('int', 'count') +BOOL_TYPES = ('store_true', 'store_false') +LIST_OPTIONS = ('select', 'ignore', 'exclude', 'enable_extensions') + + +def option_normalizer(value, option, option_name): + if option.action in BOOL_TYPES: + if str(value).upper() in ('1', 'T', 'TRUE', 'ON'): + value = True + if str(value).upper() in ('0', 'F', 'FALSE', 'OFF'): + value = False + elif option.type in INT_TYPES: + value = int(value) + elif option_name in LIST_OPTIONS: + if isinstance(value, str): + value = [opt.strip() for opt in value.split(',') if opt.strip()] return value Files old/flake8-2.5.4/flake8/util.pyc and new/flake8-2.6.2/flake8/util.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8.egg-info/PKG-INFO new/flake8-2.6.2/flake8.egg-info/PKG-INFO --- old/flake8-2.5.4/flake8.egg-info/PKG-INFO 2016-02-11 18:54:19.000000000 +0100 +++ new/flake8-2.6.2/flake8.egg-info/PKG-INFO 2016-06-25 19:11:44.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: flake8 -Version: 2.5.4 +Version: 2.6.2 Summary: the modular source code checker: pep8, pyflakes and co Home-page: https://gitlab.com/pycqa/flake8 Author: Ian Cordasco @@ -100,14 +100,50 @@ Links ===== - * `flake8 documentation <http://flake8.readthedocs.org/en/latest/>`_ + * `flake8 documentation <https://flake8.readthedocs.io/en/latest/>`_ - * `pep8 documentation <http://pep8.readthedocs.org/en/latest/>`_ + * `pep8 documentation <https://pep8.readthedocs.io/en/latest/>`_ CHANGES ======= + 2.6.2 - 2016-06-25 + ------------------ + + - **Bug** Fix packaging error during release process. + + 2.6.1 - 2016-06-25 + ------------------ + + - **Bug** Update the config files to search for to include ``setup.cfg`` and + ``tox.ini``. This was broken in 2.5.5 when we stopped passing + ``config_file`` to our Style Guide + + 2.6.0 - 2016-06-15 + ------------------ + + - **Requirements Change** Switch to pycodestyle as all future pep8 releases + will use that package name + + - **Improvement** Allow for Windows users on *select* versions of Python to + use ``--jobs`` and multiprocessing + + - **Improvement** Update bounds on McCabe + + - **Improvement** Update bounds on PyFlakes and blacklist known broken + versions + + - **Improvement** Handle new PyFlakes warning with a new error code: F405 + + 2.5.5 - 2016-06-14 + ------------------ + + - **Bug** Fix setuptools integration when parsing config files + + - **Bug** Don't pass the user's config path as the config_file when creating a + StyleGuide + 2.5.4 - 2016-02-11 ------------------ @@ -212,7 +248,7 @@ .. _GitLab#35: https://gitlab.com/pycqa/flake8/issues/35 .. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18 .. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20 - .. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html + .. _VCS hooks docs: https://flake8.readthedocs.io/en/latest/vcs.html 2.3.0 - 2015-01-04 ------------------ @@ -305,7 +341,7 @@ - McCabe complexity warnings are prefixed by a ``C`` instead of a ``W`` - Flake8 supports extensions through entry points - Due to the above support, we **require** setuptools - - We publish the `documentation <https://flake8.readthedocs.org/>`_ + - We publish the `documentation <https://flake8.readthedocs.io/>`_ - Fixes #13: pep8, pyflakes and mccabe become external dependencies - Split run.py into main.py, engine.py and hooks.py for better logic - Expose our parser for our users diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8.egg-info/SOURCES.txt new/flake8-2.6.2/flake8.egg-info/SOURCES.txt --- old/flake8-2.5.4/flake8.egg-info/SOURCES.txt 2016-02-11 18:54:20.000000000 +0100 +++ new/flake8-2.6.2/flake8.egg-info/SOURCES.txt 2016-06-25 19:11:45.000000000 +0200 @@ -6,66 +6,28 @@ setup.cfg setup.py flake8/__init__.py -flake8/__init__.pyc flake8/__main__.py flake8/_pyflakes.py -flake8/_pyflakes.pyc flake8/callbacks.py -flake8/callbacks.pyc flake8/compat.py -flake8/compat.pyc flake8/engine.py -flake8/engine.pyc flake8/hooks.py -flake8/hooks.pyc flake8/main.py -flake8/main.pyc flake8/reporter.py -flake8/reporter.pyc flake8/run.py flake8/util.py -flake8/util.pyc flake8.egg-info/PKG-INFO flake8.egg-info/SOURCES.txt flake8.egg-info/dependency_links.txt flake8.egg-info/entry_points.txt -flake8.egg-info/pbr.json flake8.egg-info/requires.txt flake8.egg-info/top_level.txt -flake8/__pycache__/__init__.cpython-34.pyc -flake8/__pycache__/_pyflakes.cpython-34.pyc -flake8/__pycache__/callbacks.cpython-34.pyc -flake8/__pycache__/compat.cpython-34.pyc -flake8/__pycache__/engine.cpython-34.pyc -flake8/__pycache__/hooks.cpython-34.pyc -flake8/__pycache__/main.cpython-34.pyc -flake8/__pycache__/reporter.cpython-34.pyc -flake8/__pycache__/util.cpython-34.pyc flake8/tests/__init__.py -flake8/tests/__init__.pyc flake8/tests/_test_warnings.py -flake8/tests/_test_warnings.pyc flake8/tests/test_engine.py -flake8/tests/test_engine.pyc -flake8/tests/test_git_hook.pyc flake8/tests/test_hooks.py -flake8/tests/test_hooks.pyc flake8/tests/test_integration.py -flake8/tests/test_integration.pyc flake8/tests/test_main.py -flake8/tests/test_main.pyc flake8/tests/test_pyflakes.py -flake8/tests/test_pyflakes.pyc flake8/tests/test_reporter.py -flake8/tests/test_reporter.pyc -flake8/tests/test_util.py -flake8/tests/test_util.pyc -flake8/tests/__pycache__/__init__.cpython-34.pyc -flake8/tests/__pycache__/_test_warnings.cpython-34.pyc -flake8/tests/__pycache__/test_engine.cpython-34.pyc -flake8/tests/__pycache__/test_hooks.cpython-34.pyc -flake8/tests/__pycache__/test_integration.cpython-34.pyc -flake8/tests/__pycache__/test_main.cpython-34.pyc -flake8/tests/__pycache__/test_pyflakes.cpython-34.pyc -flake8/tests/__pycache__/test_reporter.cpython-34.pyc -flake8/tests/__pycache__/test_util.cpython-34.pyc \ No newline at end of file +flake8/tests/test_util.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8.egg-info/pbr.json new/flake8-2.6.2/flake8.egg-info/pbr.json --- old/flake8-2.5.4/flake8.egg-info/pbr.json 2015-07-10 16:34:24.000000000 +0200 +++ new/flake8-2.6.2/flake8.egg-info/pbr.json 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -{"is_release": false, "git_version": "b827629"} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/flake8.egg-info/requires.txt new/flake8-2.6.2/flake8.egg-info/requires.txt --- old/flake8-2.5.4/flake8.egg-info/requires.txt 2016-02-11 18:54:19.000000000 +0100 +++ new/flake8-2.6.2/flake8.egg-info/requires.txt 2016-06-25 19:11:44.000000000 +0200 @@ -1,3 +1,3 @@ -pyflakes >= 0.8.1, < 1.1 -pep8 >= 1.5.7, != 1.6.0, != 1.6.1, != 1.6.2 -mccabe >= 0.2.1, < 0.5 +pyflakes >= 0.8.1, < 1.3, != 1.2.0, != 1.2.1, != 1.2.2 +pycodestyle >= 2.0, < 2.1 +mccabe >= 0.2.1, < 0.6 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/setup.cfg new/flake8-2.6.2/setup.cfg --- old/flake8-2.5.4/setup.cfg 2016-02-11 18:54:20.000000000 +0100 +++ new/flake8-2.6.2/setup.cfg 2016-06-25 19:11:45.000000000 +0200 @@ -2,7 +2,7 @@ universal = 1 [egg_info] -tag_svn_revision = 0 -tag_date = 0 tag_build = +tag_date = 0 +tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.5.4/setup.py new/flake8-2.6.2/setup.py --- old/flake8-2.5.4/setup.py 2016-02-10 23:07:13.000000000 +0100 +++ new/flake8-2.6.2/setup.py 2016-06-25 19:05:20.000000000 +0200 @@ -49,9 +49,9 @@ url="https://gitlab.com/pycqa/flake8", packages=["flake8", "flake8.tests"], install_requires=[ - "pyflakes >= 0.8.1, < 1.1", - "pep8 >= 1.5.7, != 1.6.0, != 1.6.1, != 1.6.2", - "mccabe >= 0.2.1, < 0.5", + "pyflakes >= 0.8.1, < 1.3, != 1.2.0, != 1.2.1, != 1.2.2", + "pycodestyle >= 2.0, < 2.1", + "mccabe >= 0.2.1, < 0.6", ], entry_points={ 'distutils.commands': ['flake8 = flake8.main:Flake8Command'],
