Hello community, here is the log from the commit of package python-flake8 for openSUSE:Factory checked in at 2014-07-02 15:05:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flake8 (Old) and /work/SRC/openSUSE:Factory/.python-flake8.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-flake8" Changes: -------- --- /work/SRC/openSUSE:Factory/python-flake8/python-flake8.changes 2014-01-14 19:53:31.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-flake8.new/python-flake8.changes 2014-07-02 15:05:15.000000000 +0200 @@ -1,0 +2,14 @@ +Fri Jun 27 06:13:28 UTC 2014 - dmueller@suse.com + +- update to 2.2.0: + - New option ``doctests`` to run Pyflakes checks on doctests too + - New option ``jobs`` to launch multiple jobs in parallel + - Turn on using multiple jobs by default using the CPU count + - Add support for ``python -m flake8`` on Python 2.7 and Python 3 + - Fix Git and Mercurial hooks: issues #88, #133, #148 and #149 + - Fix crashes with Python 3.4 by upgrading dependencies + - Fix traceback when running tests with Python 2.6 + - Fix the setuptools command ``python setup.py flake8`` to read + the project configuration + +------------------------------------------------------------------- Old: ---- flake8-2.1.0.tar.gz New: ---- flake8-2.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flake8.spec ++++++ --- /var/tmp/diff_new_pack.tzVd1P/_old 2014-07-02 15:05:16.000000000 +0200 +++ /var/tmp/diff_new_pack.tzVd1P/_new 2014-07-02 15:05:16.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-flake8 -Version: 2.1.0 +Version: 2.2.0 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co License: MIT ++++++ flake8-2.1.0.tar.gz -> flake8-2.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/CHANGES.rst new/flake8-2.2.0/CHANGES.rst --- old/flake8-2.1.0/CHANGES.rst 2013-10-26 22:23:15.000000000 +0200 +++ new/flake8-2.2.0/CHANGES.rst 2014-06-23 04:08:31.000000000 +0200 @@ -1,6 +1,20 @@ CHANGES ======= +2.2.0 - 2014-06-22 +------------------ + +- New option ``doctests`` to run Pyflakes checks on doctests too +- New option ``jobs`` to launch multiple jobs in parallel +- Turn on using multiple jobs by default using the CPU count +- Add support for ``python -m flake8`` on Python 2.7 and Python 3 +- Fix Git and Mercurial hooks: issues #88, #133, #148 and #149 +- Fix crashes with Python 3.4 by upgrading dependencies +- Fix traceback when running tests with Python 2.6 +- Fix the setuptools command ``python setup.py flake8`` to read + the project configuration + + 2.1.0 - 2013-10-26 ------------------ @@ -14,6 +28,7 @@ - Ignore .tox directories by default - Flake8 now reports the column number for PyFlakes messages + 2.0.0 - 2013-02-23 ------------------ @@ -78,7 +93,7 @@ - make sure mccabe catches the syntax errors as warnings - pep8 upgrade - added max_line_length default value -- added Flake8Command and entry points is setuptools is around +- added Flake8Command and entry points if setuptools is around - using the setuptools console wrapper when available diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/PKG-INFO new/flake8-2.2.0/PKG-INFO --- old/flake8-2.1.0/PKG-INFO 2013-10-26 22:24:46.000000000 +0200 +++ new/flake8-2.2.0/PKG-INFO 2014-06-23 04:22:27.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: flake8 -Version: 2.1.0 +Version: 2.2.0 Summary: the modular source code checker: pep8, pyflakes and co Home-page: http://bitbucket.org/tarek/flake8 Author: Ian Cordasco @@ -86,6 +86,20 @@ CHANGES ======= + 2.2.0 - 2014-06-22 + ------------------ + + - New option ``doctests`` to run Pyflakes checks on doctests too + - New option ``jobs`` to launch multiple jobs in parallel + - Turn on using multiple jobs by default using the CPU count + - Add support for ``python -m flake8`` on Python 2.7 and Python 3 + - Fix Git and Mercurial hooks: issues #88, #133, #148 and #149 + - Fix crashes with Python 3.4 by upgrading dependencies + - Fix traceback when running tests with Python 2.6 + - Fix the setuptools command ``python setup.py flake8`` to read + the project configuration + + 2.1.0 - 2013-10-26 ------------------ @@ -99,6 +113,7 @@ - Ignore .tox directories by default - Flake8 now reports the column number for PyFlakes messages + 2.0.0 - 2013-02-23 ------------------ @@ -163,7 +178,7 @@ - make sure mccabe catches the syntax errors as warnings - pep8 upgrade - added max_line_length default value - - added Flake8Command and entry points is setuptools is around + - added Flake8Command and entry points if setuptools is around - using the setuptools console wrapper when available diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/__init__.py new/flake8-2.2.0/flake8/__init__.py --- old/flake8-2.1.0/flake8/__init__.py 2013-10-26 22:24:19.000000000 +0200 +++ new/flake8-2.2.0/flake8/__init__.py 2014-06-23 04:08:43.000000000 +0200 @@ -1 +1 @@ -__version__ = '2.1.0' +__version__ = '2.2.0' Files old/flake8-2.1.0/flake8/__init__.pyc and new/flake8-2.2.0/flake8/__init__.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/__main__.py new/flake8-2.2.0/flake8/__main__.py --- old/flake8-2.1.0/flake8/__main__.py 1970-01-01 01:00:00.000000000 +0100 +++ new/flake8-2.2.0/flake8/__main__.py 2014-05-23 02:55:54.000000000 +0200 @@ -0,0 +1,4 @@ +from flake8.main import main + +# python -m flake8 (with Python >= 2.7) +main() Files old/flake8-2.1.0/flake8/__pycache__/__init__.cpython-32.pyc and new/flake8-2.2.0/flake8/__pycache__/__init__.cpython-32.pyc differ Files old/flake8-2.1.0/flake8/__pycache__/_pyflakes.cpython-32.pyc and new/flake8-2.2.0/flake8/__pycache__/_pyflakes.cpython-32.pyc differ Files old/flake8-2.1.0/flake8/__pycache__/engine.cpython-32.pyc and new/flake8-2.2.0/flake8/__pycache__/engine.cpython-32.pyc differ Files old/flake8-2.1.0/flake8/__pycache__/main.cpython-32.pyc and new/flake8-2.2.0/flake8/__pycache__/main.cpython-32.pyc differ Files old/flake8-2.1.0/flake8/__pycache__/util.cpython-32.pyc and new/flake8-2.2.0/flake8/__pycache__/util.cpython-32.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/_pyflakes.py new/flake8-2.2.0/flake8/_pyflakes.py --- old/flake8-2.1.0/flake8/_pyflakes.py 2013-07-05 16:23:02.000000000 +0200 +++ new/flake8-2.2.0/flake8/_pyflakes.py 2014-05-23 02:55:54.000000000 +0200 @@ -1,4 +1,11 @@ # -*- coding: utf-8 -*- +try: + # The 'demandimport' breaks pyflakes and flake8._pyflakes + from mercurial import demandimport +except ImportError: + pass +else: + demandimport.disable() import pyflakes import pyflakes.checker @@ -31,16 +38,23 @@ name = 'pyflakes' version = pyflakes.__version__ + def __init__(self, tree, filename): + super(FlakesChecker, self).__init__(tree, filename, + withDoctest=self.withDoctest) + @classmethod def add_options(cls, parser): parser.add_option('--builtins', help="define more built-ins, comma separated") - parser.config_options.append('builtins') + parser.add_option('--doctests', default=False, action='store_true', + help="check syntax of the doctests") + parser.config_options.extend(['builtins', 'doctests']) @classmethod def parse_options(cls, options): if options.builtins: cls.builtIns = cls.builtIns.union(options.builtins.split(',')) + cls.withDoctest = options.doctests def run(self): for m in self.messages: Files old/flake8-2.1.0/flake8/_pyflakes.pyc and new/flake8-2.2.0/flake8/_pyflakes.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/engine.py new/flake8-2.2.0/flake8/engine.py --- old/flake8-2.1.0/flake8/engine.py 2013-06-23 05:46:34.000000000 +0200 +++ new/flake8-2.2.0/flake8/engine.py 2014-06-23 04:06:14.000000000 +0200 @@ -5,6 +5,7 @@ import pep8 from flake8 import __version__ +from flake8.reporter import multiprocessing, BaseQReport, QueueReport from flake8.util import OrderedSet _flake8_noqa = re.compile(r'flake8[:=]\s*noqa', re.I).search @@ -47,6 +48,16 @@ parser.remove_option(opt) except ValueError: pass + + if multiprocessing: + try: + auto = multiprocessing.cpu_count() or 1 + except NotImplementedError: + auto = 1 + parser.config_options.append('jobs') + parser.add_option('-j', '--jobs', type='int', default=auto, + help="number of jobs to run simultaneously") + parser.add_option('--exit-zero', action='store_true', help="exit with code 0 even if there are errors") for parser_hook in parser_hooks: @@ -58,8 +69,6 @@ class StyleGuide(pep8.StyleGuide): - # Backward compatibility pep8 <= 1.4.2 - checker_class = pep8.Checker def input_file(self, filename, lines=None, expected=None, line_offset=0): """Run all checks on a Python source file.""" @@ -81,6 +90,13 @@ options = styleguide.options for options_hook in options_hooks: options_hook(options) + + if multiprocessing and options.jobs > 1: + reporter = BaseQReport if options.quiet else QueueReport + report = styleguide.init_report(reporter) + report.input_file = styleguide.input_file + styleguide.runner = report.task_queue.put + return styleguide Files old/flake8-2.1.0/flake8/engine.pyc and new/flake8-2.2.0/flake8/engine.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/hooks.py new/flake8-2.2.0/flake8/hooks.py --- old/flake8-2.1.0/flake8/hooks.py 2013-10-26 21:05:42.000000000 +0200 +++ new/flake8-2.2.0/flake8/hooks.py 2014-05-23 02:55:54.000000000 +0200 @@ -7,12 +7,6 @@ import shutil from tempfile import mkdtemp try: - # The 'demandimport' breaks pyflakes and flake8._pyflakes - from mercurial import demandimport - demandimport.disable() -except ImportError: - pass -try: from configparser import ConfigParser except ImportError: # Python 2 from ConfigParser import ConfigParser @@ -55,11 +49,8 @@ files_modified = [f for f in files_modified if f.endswith('.py')] - flake8_style = get_style_guide( - parse_argv=True, - config_file=DEFAULT_CONFIG, - **options - ) + flake8_style = get_style_guide(config_file=DEFAULT_CONFIG, paths=['.'], + **options) # Copy staged versions to temporary directory tmpdir = mkdtemp() @@ -103,9 +94,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=True) - if config is True: - config = DEFAULT_CONFIG + config = ui.config('flake8', 'config', default=DEFAULT_CONFIG) paths = _get_files(repo, **kwargs) @@ -117,7 +106,7 @@ if complexity > -1: options['max_complexity'] = complexity - flake8_style = get_style_guide(parse_argv=True, config_file=config, + flake8_style = get_style_guide(config_file=config, paths=['.'], **options) report = flake8_style.check_files(paths) @@ -136,10 +125,10 @@ # endswith method. That should work but might still fail horribly. if hasattr(stdout, 'decode'): if decode: - stdout = stdout.decode() + stdout = stdout.decode('utf-8') if hasattr(stderr, 'decode'): if decode: - stderr = stderr.decode() + stderr = stderr.decode('utf-8') if not raw_output: stdout = [line.strip() for line in stdout.splitlines()] stderr = [line.strip() for line in stderr.splitlines()] @@ -194,7 +183,7 @@ def _install_hg_hook(path): if not os.path.isfile(path): # Make the file so we can avoid IOError's - open(path, 'w+').close() + open(path, 'w').close() c = ConfigParser() c.readfp(open(path, 'r')) @@ -217,12 +206,13 @@ c.set('flake8', 'strict', os.getenv('FLAKE8_STRICT', False)) if not c.has_option('flake8', 'ignore'): - c.set('flake8', 'ignore', os.getenv('FLAKE8_IGNORE')) + c.set('flake8', 'ignore', os.getenv('FLAKE8_IGNORE', '')) if not c.has_option('flake8', 'lazy'): c.set('flake8', 'lazy', os.getenv('FLAKE8_LAZY', False)) - c.write(open(path, 'w+')) + with open(path, 'w') as fd: + c.write(fd) def install_hook(): @@ -238,7 +228,9 @@ status = 0 if 'git' in vcs: - with open(vcs, 'w+') as fd: + if os.path.exists(vcs): + sys.exit('Error: hook already exists (%s)' % vcs) + with open(vcs, 'w') as fd: fd.write(git_hook_file) # rwxr--r-- os.chmod(vcs, stat.S_IRWXU | stat.S_IRGRP | stat.S_IROTH) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/hooks.py.orig new/flake8-2.2.0/flake8/hooks.py.orig --- old/flake8-2.1.0/flake8/hooks.py.orig 2013-06-23 05:46:34.000000000 +0200 +++ new/flake8-2.2.0/flake8/hooks.py.orig 1970-01-01 01:00:00.000000000 +0100 @@ -1,176 +0,0 @@ -# -*- coding: utf-8 -*- -from __future__ import with_statement -import os -import sys -from subprocess import Popen, PIPE -try: - from mercurial import demandimport - demandimport.disable() -except ImportError: - pass - -try: - from configparser import ConfigParser -except ImportError: # Python 2 - from ConfigParser import ConfigParser - -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): - """This is the function used by the git hook. - - :param int complexity: (optional), any value > 0 enables complexity - checking with mccabe - :param bool strict: (optional), if True, this returns the total number of - errors which will cause the hook to fail - :param str ignore: (optional), a comma-separated list of errors and - warnings to ignore - :param bool lazy: (optional), allows for the instances where you don't add - the files to the index before running a commit, e.g., git commit -a - :returns: total number of errors if strict is True, otherwise 0 - """ - gitcmd = "git diff-index --cached --name-only HEAD" - if lazy: - # Catch all files, including those not added to the index - gitcmd = gitcmd.replace('--cached ', '') - - if hasattr(ignore, 'split'): - ignore = ignore.split(',') - - # Returns the exit code, list of files modified, list of error messages - _, files_modified, _ = run(gitcmd) - - # Run the checks - flake8_style = get_style_guide( - config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity) - report = flake8_style.check_files([f for f in files_modified if - f.endswith('.py')]) - - if strict: - return report.total_errors - - return 0 - - -def hg_hook(ui, repo, **kwargs): - """This is the function executed directly by Mercurial as part of the - hook. This is never called directly by the user, so the parameters are - undocumented. If you would like to learn more about them, please feel free - to read the official Mercurial documentation. - """ - complexity = ui.config('flake8', 'complexity', default=-1) - strict = ui.configbool('flake8', 'strict', default=True) - config = ui.config('flake8', 'config', default=True) - if config is True: - config = DEFAULT_CONFIG - - paths = _get_files(repo, **kwargs) - - flake8_style = get_style_guide( - config_file=config, max_complexity=complexity) - report = flake8_style.check_files(paths) - - if strict: - return report.total_errors - - return 0 - - -def run(command): - p = Popen(command.split(), stdout=PIPE, stderr=PIPE) - (stdout, stderr) = p.communicate() - return (p.returncode, [line.strip() for line in stdout.splitlines()], - [line.strip() for line in stderr.splitlines()]) - - -def _get_files(repo, **kwargs): - seen = set() - for rev in range(repo[kwargs['node']], len(repo)): - for file_ in repo[rev].files(): - file_ = os.path.join(repo.root, file_) - if file_ in seen or not os.path.exists(file_): - continue - seen.add(file_) - if file_.endswith('.py'): - yield file_ - - -def find_vcs(): - if os.path.isdir('.git'): - if not os.path.isdir('.git/hooks'): - os.mkdir('.git/hooks') - return '.git/hooks/pre-commit' - elif os.path.isdir('.hg'): - return '.hg/hgrc' - return '' - - -git_hook_file = """#!/usr/bin/env python -import sys -import os -from flake8.hooks import git_hook - -COMPLEXITY = os.getenv('FLAKE8_COMPLEXITY', 10) -STRICT = os.getenv('FLAKE8_STRICT', False) - - -if __name__ == '__main__': - sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT)) -""" - - -def _install_hg_hook(path): - if not os.path.isfile(path): - # Make the file so we can avoid IOError's - open(path, 'w+').close() - - c = ConfigParser() - c.readfp(open(path, 'r')) - if not c.has_section('hooks'): - c.add_section('hooks') - - if not c.has_option('hooks', 'commit'): - c.set('hooks', 'commit', 'python:flake8.hooks.hg_hook') - - if not c.has_option('hooks', 'qrefresh'): - c.set('hooks', 'qrefresh', 'python:flake8.hooks.hg_hook') - - if not c.has_section('flake8'): - c.add_section('flake8') - - if not c.has_option('flake8', 'complexity'): - c.set('flake8', 'complexity', str(os.getenv('FLAKE8_COMPLEXITY', 10))) - - if not c.has_option('flake8', 'strict'): - c.set('flake8', 'strict', os.getenv('FLAKE8_STRICT', False)) - - c.write(open(path, 'w+')) - - -def install_hook(): - vcs = find_vcs() - - if not vcs: - p = get_parser() - sys.stderr.write('Error: could not find either a git or mercurial ' - 'directory. Please re-run this in a proper ' - 'repository.') - p.print_help() - sys.exit(1) - - status = 0 - if 'git' in vcs: - with open(vcs, 'w+') as fd: - fd.write(git_hook_file) - # 0b111100100 == rwxr--r-- - # Python 2.5 doesn't support 0b syntax so note that the above binary - # value is equivalent to 484 in decimal - os.chmod(vcs, 484) - elif 'hg' in vcs: - _install_hg_hook(vcs) - else: - status = 1 - - sys.exit(status) Files old/flake8-2.1.0/flake8/hooks.pyc and new/flake8-2.2.0/flake8/hooks.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/main.py new/flake8-2.2.0/flake8/main.py --- old/flake8-2.1.0/flake8/main.py 2013-10-05 15:25:41.000000000 +0200 +++ new/flake8-2.2.0/flake8/main.py 2014-05-23 02:55:54.000000000 +0200 @@ -120,11 +120,17 @@ if self.distribution.py_modules: for filename in self.distribution.py_modules: yield "%s.py" % filename + # Don't miss the setup.py file itself + yield "setup.py" def run(self): + # Prepare + paths = list(self.distribution_files()) flake8_style = get_style_guide(config_file=DEFAULT_CONFIG, + paths=paths, **self.options_dict) - paths = self.distribution_files() - report = flake8_style.check_files(paths) + + # Run the checkers + report = flake8_style.check_files() exit_code = print_report(report, flake8_style) raise SystemExit(exit_code > 0) Files old/flake8-2.1.0/flake8/main.pyc and new/flake8-2.2.0/flake8/main.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/reporter.py new/flake8-2.2.0/flake8/reporter.py --- old/flake8-2.1.0/flake8/reporter.py 1970-01-01 01:00:00.000000000 +0100 +++ new/flake8-2.2.0/flake8/reporter.py 2014-05-23 02:55:54.000000000 +0200 @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Adapted from a contribution of Johan Dahlin + +import collections +try: + import multiprocessing +except ImportError: # Python 2.5 + multiprocessing = None + +import pep8 + +__all__ = ['multiprocessing', 'BaseQReport', 'QueueReport'] + + +class BaseQReport(pep8.BaseReport): + """Base Queue Report.""" + + def __init__(self, options): + assert options.jobs > 0 + super(BaseQReport, self).__init__(options) + self.counters = collections.defaultdict(int) + self.n_jobs = options.jobs + + # init queues + self.task_queue = multiprocessing.Queue() + self.result_queue = multiprocessing.Queue() + + def start(self): + super(BaseQReport, self).start() + # spawn processes + for i in range(self.n_jobs): + p = multiprocessing.Process(target=self.process_main) + p.start() + + def stop(self): + # collect queues + for i in range(self.n_jobs): + self.task_queue.put('DONE') + self.update_state(self.result_queue.get()) + super(BaseQReport, self).stop() + + def process_main(self): + for filename in iter(self.task_queue.get, 'DONE'): + self.input_file(filename) + self.result_queue.put(self.get_state()) + + def get_state(self): + return {'total_errors': self.total_errors, + 'counters': self.counters, + 'messages': self.messages} + + def update_state(self, state): + self.total_errors += state['total_errors'] + for key, value in state['counters'].items(): + self.counters[key] += value + self.messages.update(state['messages']) + + +class QueueReport(pep8.StandardReport, BaseQReport): + """Standard Queue Report.""" Files old/flake8-2.1.0/flake8/reporter.pyc and new/flake8-2.2.0/flake8/reporter.pyc differ Files old/flake8-2.1.0/flake8/tests/__init__.pyc and new/flake8-2.2.0/flake8/tests/__init__.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8/tests/test_engine.py new/flake8-2.2.0/flake8/tests/test_engine.py --- old/flake8-2.1.0/flake8/tests/test_engine.py 2013-07-06 17:56:20.000000000 +0200 +++ new/flake8-2.2.0/flake8/tests/test_engine.py 2014-05-23 02:55:54.000000000 +0200 @@ -1,8 +1,10 @@ -from flake8 import engine, util, __version__ -import pep8 +from __future__ import with_statement + import unittest import mock +from flake8 import engine, util, __version__ + class TestEngine(unittest.TestCase): def setUp(self): @@ -32,6 +34,7 @@ m = mock.Mock() with mock.patch('flake8.engine.StyleGuide') as StyleGuide: with mock.patch('flake8.engine.get_parser') as get_parser: + StyleGuide.return_value.options.jobs = 42 get_parser.return_value = (m, []) engine.get_style_guide(foo='bar') get_parser.assert_called_once_with() @@ -39,10 +42,10 @@ def test_register_extensions(self): with mock.patch('pep8.register_check') as register_check: - registered_extensions = engine._register_extensions() - self.assertTrue(isinstance(registered_extensions[0], util.OrderedSet)) - self.assertTrue(len(registered_extensions[0]) > 0) - for i in registered_extensions[1:]: + registered_exts = engine._register_extensions() + self.assertTrue(isinstance(registered_exts[0], util.OrderedSet)) + self.assertTrue(len(registered_exts[0]) > 0) + for i in registered_exts[1:]: self.assertTrue(isinstance(i, list)) register_check.assert_called() @@ -62,8 +65,7 @@ gpv.assert_called() pgp.assert_called_once_with( 'flake8', - '%s (pyflakes: 0.7, mccabe: 0.2) Python Version' % __version__ - ) + '%s (pyflakes: 0.7, mccabe: 0.2) Python Version' % __version__) m.remove_option.assert_called() m.add_option.assert_called() self.assertEqual(parser, m) Files old/flake8-2.1.0/flake8/tests/test_engine.pyc and new/flake8-2.2.0/flake8/tests/test_engine.pyc differ Files old/flake8-2.1.0/flake8/util.pyc and new/flake8-2.2.0/flake8/util.pyc differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8.egg-info/PKG-INFO new/flake8-2.2.0/flake8.egg-info/PKG-INFO --- old/flake8-2.1.0/flake8.egg-info/PKG-INFO 2013-10-26 22:24:46.000000000 +0200 +++ new/flake8-2.2.0/flake8.egg-info/PKG-INFO 2014-06-23 04:22:27.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: flake8 -Version: 2.1.0 +Version: 2.2.0 Summary: the modular source code checker: pep8, pyflakes and co Home-page: http://bitbucket.org/tarek/flake8 Author: Ian Cordasco @@ -86,6 +86,20 @@ CHANGES ======= + 2.2.0 - 2014-06-22 + ------------------ + + - New option ``doctests`` to run Pyflakes checks on doctests too + - New option ``jobs`` to launch multiple jobs in parallel + - Turn on using multiple jobs by default using the CPU count + - Add support for ``python -m flake8`` on Python 2.7 and Python 3 + - Fix Git and Mercurial hooks: issues #88, #133, #148 and #149 + - Fix crashes with Python 3.4 by upgrading dependencies + - Fix traceback when running tests with Python 2.6 + - Fix the setuptools command ``python setup.py flake8`` to read + the project configuration + + 2.1.0 - 2013-10-26 ------------------ @@ -99,6 +113,7 @@ - Ignore .tox directories by default - Flake8 now reports the column number for PyFlakes messages + 2.0.0 - 2013-02-23 ------------------ @@ -163,7 +178,7 @@ - make sure mccabe catches the syntax errors as warnings - pep8 upgrade - added max_line_length default value - - added Flake8Command and entry points is setuptools is around + - added Flake8Command and entry points if setuptools is around - using the setuptools console wrapper when available diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8.egg-info/SOURCES.txt new/flake8-2.2.0/flake8.egg-info/SOURCES.txt --- old/flake8-2.1.0/flake8.egg-info/SOURCES.txt 2013-10-26 22:24:46.000000000 +0200 +++ new/flake8-2.2.0/flake8.egg-info/SOURCES.txt 2014-06-23 04:22:27.000000000 +0200 @@ -3,18 +3,20 @@ LICENSE MANIFEST.in README.rst +setup.cfg setup.py flake8/__init__.py flake8/__init__.pyc +flake8/__main__.py flake8/_pyflakes.py flake8/_pyflakes.pyc flake8/engine.py flake8/engine.pyc flake8/hooks.py -flake8/hooks.py.orig -flake8/hooks.pyc flake8/main.py flake8/main.pyc +flake8/reporter.py +flake8/reporter.pyc flake8/run.py flake8/util.py flake8/util.pyc @@ -24,11 +26,6 @@ flake8.egg-info/entry_points.txt flake8.egg-info/requires.txt flake8.egg-info/top_level.txt -flake8/__pycache__/__init__.cpython-32.pyc -flake8/__pycache__/_pyflakes.cpython-32.pyc -flake8/__pycache__/engine.cpython-32.pyc -flake8/__pycache__/main.cpython-32.pyc -flake8/__pycache__/util.cpython-32.pyc flake8/tests/__init__.py flake8/tests/__init__.pyc flake8/tests/test_engine.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/flake8.egg-info/requires.txt new/flake8-2.2.0/flake8.egg-info/requires.txt --- old/flake8-2.1.0/flake8.egg-info/requires.txt 2013-10-26 22:24:46.000000000 +0200 +++ new/flake8-2.2.0/flake8.egg-info/requires.txt 2014-06-23 04:22:27.000000000 +0200 @@ -1,3 +1,3 @@ -pyflakes >= 0.7.3 -pep8 >= 1.4.6 +pyflakes >= 0.8.1 +pep8 >= 1.5.7 mccabe >= 0.2.1 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/setup.cfg new/flake8-2.2.0/setup.cfg --- old/flake8-2.1.0/setup.cfg 2013-10-26 22:24:46.000000000 +0200 +++ new/flake8-2.2.0/setup.cfg 2014-06-23 04:22:27.000000000 +0200 @@ -1,3 +1,6 @@ +[wheel] +universal = 1 + [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/flake8-2.1.0/setup.py new/flake8-2.2.0/setup.py --- old/flake8-2.1.0/setup.py 2013-10-13 04:28:56.000000000 +0200 +++ new/flake8-2.2.0/setup.py 2014-06-23 04:19:34.000000000 +0200 @@ -1,6 +1,12 @@ # -*- coding: utf-8 -*- from __future__ import with_statement from setuptools import setup +try: + # Work around a traceback with Nose on Python 2.6 + # http://bugs.python.org/issue15881#msg170215 + __import__('multiprocessing') +except ImportError: + pass def get_version(fname='flake8/__init__.py'): @@ -31,8 +37,8 @@ url="http://bitbucket.org/tarek/flake8", packages=["flake8", "flake8.tests"], install_requires=[ - "pyflakes >= 0.7.3", - "pep8 >= 1.4.6", + "pyflakes >= 0.8.1", + "pep8 >= 1.5.7", "mccabe >= 0.2.1", ], entry_points={ -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org