commit python3-pep8 for openSUSE:Factory
Hello community, here is the log from the commit of package python3-pep8 for openSUSE:Factory checked in at 2014-07-11 06:46:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pep8 (Old) and /work/SRC/openSUSE:Factory/.python3-pep8.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-pep8" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pep8/python3-pep8.changes 2014-05-16 18:14:00.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-pep8.new/python3-pep8.changes 2014-07-11 06:46:47.000000000 +0200 @@ -1,0 +2,10 @@ +Thu Jul 10 12:12:20 UTC 2014 - toddrme2178@gmail.com + +- update to 1.5.7: + * Skip the traceback on "Broken pipe" signal. (Issue #275) + * Do not exit when an option in ``setup.cfg`` or ``tox.ini`` + is not recognized. + * Check the last line even if it does not end with a newline. (Issue #286) + * Always open files in universal newlines mode in Python 2. (Issue #288) + +------------------------------------------------------------------- Old: ---- pep8-1.5.6.tar.gz New: ---- pep8-1.5.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pep8.spec ++++++ --- /var/tmp/diff_new_pack.WFePyM/_old 2014-07-11 06:46:48.000000000 +0200 +++ /var/tmp/diff_new_pack.WFePyM/_new 2014-07-11 06:46:48.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-pep8 -Version: 1.5.6 +Version: 1.5.7 Release: 0 Url: http://github.com/jcrocholl/pep8 Summary: Python style guide checker ++++++ pep8-1.5.6.tar.gz -> pep8-1.5.7.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/CHANGES.txt new/pep8-1.5.7/CHANGES.txt --- old/pep8-1.5.6/CHANGES.txt 2014-04-14 19:02:37.000000000 +0200 +++ new/pep8-1.5.7/CHANGES.txt 2014-05-29 18:54:27.000000000 +0200 @@ -2,6 +2,21 @@ ========= +1.5.7 (2014-05-29) +------------------ + +Bug fixes: + +* Skip the traceback on "Broken pipe" signal. (Issue #275) + +* Do not exit when an option in ``setup.cfg`` or ``tox.ini`` + is not recognized. + +* Check the last line even if it does not end with a newline. (Issue #286) + +* Always open files in universal newlines mode in Python 2. (Issue #288) + + 1.5.6 (2014-04-14) ------------------ @@ -398,7 +413,7 @@ * Fix E901 when printing source with ``--show-source``. * Report all errors for each checker, instead of reporting only the - first occurence for each line. + first occurrence for each line. * Option ``--show-pep8`` implies ``--first``. @@ -432,7 +447,7 @@ 0.7.0 (2012-03-26) ------------------ -* Now ``--first`` prints only the first occurence of each error. +* Now ``--first`` prints only the first occurrence of each error. The ``--repeat`` flag becomes obsolete because it is the default behaviour. (Issue #6) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/PKG-INFO new/pep8-1.5.7/PKG-INFO --- old/pep8-1.5.6/PKG-INFO 2014-04-14 19:05:22.000000000 +0200 +++ new/pep8-1.5.7/PKG-INFO 2014-05-29 18:57:47.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pep8 -Version: 1.5.6 +Version: 1.5.7 Summary: Python style guide checker Home-page: http://pep8.readthedocs.org/ Author: Johann C. Rocholl @@ -103,6 +103,21 @@ ========= + 1.5.7 (2014-05-29) + ------------------ + + Bug fixes: + + * Skip the traceback on "Broken pipe" signal. (Issue #275) + + * Do not exit when an option in ``setup.cfg`` or ``tox.ini`` + is not recognized. + + * Check the last line even if it does not end with a newline. (Issue #286) + + * Always open files in universal newlines mode in Python 2. (Issue #288) + + 1.5.6 (2014-04-14) ------------------ @@ -499,7 +514,7 @@ * Fix E901 when printing source with ``--show-source``. * Report all errors for each checker, instead of reporting only the - first occurence for each line. + first occurrence for each line. * Option ``--show-pep8`` implies ``--first``. @@ -533,7 +548,7 @@ 0.7.0 (2012-03-26) ------------------ - * Now ``--first`` prints only the first occurence of each error. + * Now ``--first`` prints only the first occurrence of each error. The ``--repeat`` flag becomes obsolete because it is the default behaviour. (Issue #6) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/docs/api.rst new/pep8-1.5.7/docs/api.rst --- old/pep8-1.5.6/docs/api.rst 2014-03-25 01:54:05.000000000 +0100 +++ new/pep8-1.5.7/docs/api.rst 2014-04-14 19:16:42.000000000 +0200 @@ -34,7 +34,6 @@ .. autoclass:: Checker(filename=None, lines=None, report=None, **kwargs) .. automethod:: readline - .. automethod:: readline_check_physical .. automethod:: run_check(check, argument_names) .. automethod:: check_physical(line) .. automethod:: build_tokens_line diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/docs/developer.rst new/pep8-1.5.7/docs/developer.rst --- old/pep8-1.5.6/docs/developer.rst 2014-04-14 17:03:03.000000000 +0200 +++ new/pep8-1.5.7/docs/developer.rst 2014-05-27 00:03:09.000000000 +0200 @@ -14,7 +14,7 @@ * `Source code https://github.com/jcrocholl/pep8`_ and `issue tracker https://github.com/jcrocholl/pep8/issues`_ on GitHub. * `Continuous tests http://travis-ci.org/jcrocholl/pep8`_ against Python - 2.6 through 3.3 and PyPy, on `Travis-CI platform + 2.6 through 3.4 and PyPy, on `Travis-CI platform http://about.travis-ci.org/`_. .. _available on GitHub: https://github.com/jcrocholl/pep8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/docs/intro.rst new/pep8-1.5.7/docs/intro.rst --- old/pep8-1.5.6/docs/intro.rst 2014-03-26 00:08:18.000000000 +0100 +++ new/pep8-1.5.7/docs/intro.rst 2014-05-05 18:32:11.000000000 +0200 @@ -158,7 +158,8 @@ The behaviour may be configured at two levels. -The user settings are read from the ``~/.config/pep8`` file. +The user settings are read from the ``~/.config/pep8`` file and +for Windows from the ``~\.pep8`` file. Example:: [pep8] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/pep8.egg-info/PKG-INFO new/pep8-1.5.7/pep8.egg-info/PKG-INFO --- old/pep8-1.5.6/pep8.egg-info/PKG-INFO 2014-04-14 19:05:22.000000000 +0200 +++ new/pep8-1.5.7/pep8.egg-info/PKG-INFO 2014-05-29 18:57:47.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pep8 -Version: 1.5.6 +Version: 1.5.7 Summary: Python style guide checker Home-page: http://pep8.readthedocs.org/ Author: Johann C. Rocholl @@ -103,6 +103,21 @@ ========= + 1.5.7 (2014-05-29) + ------------------ + + Bug fixes: + + * Skip the traceback on "Broken pipe" signal. (Issue #275) + + * Do not exit when an option in ``setup.cfg`` or ``tox.ini`` + is not recognized. + + * Check the last line even if it does not end with a newline. (Issue #286) + + * Always open files in universal newlines mode in Python 2. (Issue #288) + + 1.5.6 (2014-04-14) ------------------ @@ -499,7 +514,7 @@ * Fix E901 when printing source with ``--show-source``. * Report all errors for each checker, instead of reporting only the - first occurence for each line. + first occurrence for each line. * Option ``--show-pep8`` implies ``--first``. @@ -533,7 +548,7 @@ 0.7.0 (2012-03-26) ------------------ - * Now ``--first`` prints only the first occurence of each error. + * Now ``--first`` prints only the first occurrence of each error. The ``--repeat`` flag becomes obsolete because it is the default behaviour. (Issue #6) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/pep8.py new/pep8-1.5.7/pep8.py --- old/pep8-1.5.6/pep8.py 2014-04-14 19:03:06.000000000 +0200 +++ new/pep8-1.5.7/pep8.py 2014-05-29 18:54:42.000000000 +0200 @@ -46,7 +46,7 @@ """ from __future__ import with_statement -__version__ = '1.5.6' +__version__ = '1.5.7' import os import sys @@ -1037,7 +1037,7 @@ # Python 2: implicit encoding. def readlines(filename): """Read the source code.""" - with open(filename) as f: + with open(filename, 'rU') as f: return f.readlines() isidentifier = re.compile(r'[a-zA-Z_]\w*').match stdin_get_value = sys.stdin.read @@ -1367,6 +1367,8 @@ tokengen = tokenize.generate_tokens(self.readline) try: for token in tokengen: + if token[2][0] > self.total_lines: + return self.maybe_check_physical(token) yield token except (SyntaxError, tokenize.TokenError): @@ -1449,10 +1451,8 @@ token[3] = (token[2][0], token[2][1] + len(token[1])) self.tokens = [tuple(token)] self.check_logical() - if len(self.tokens) > 1 and (token_type == tokenize.ENDMARKER and - self.tokens[-2][0] not in SKIP_TOKENS): - self.tokens.pop() - self.check_physical(self.tokens[-1][4]) + if self.tokens: + self.check_physical(self.lines[-1]) self.check_logical() return self.report.get_file_results() @@ -1837,12 +1837,11 @@ # Second, parse the configuration for opt in config.options(pep8_section): + if opt.replace('_', '-') not in parser.config_options: + print(" unknown option '%s' ignored" % opt) + continue if options.verbose > 1: print(" %s = %s" % (opt, config.get(pep8_section, opt))) - if opt.replace('_', '-') not in parser.config_options: - print("Unknown option: '%s'\n not in [%s]" % - (opt, ' '.join(parser.config_options))) - sys.exit(1) normalized_opt = opt.replace('-', '_') opt_type = option_list[normalized_opt] if opt_type in ('int', 'count'): @@ -1913,6 +1912,14 @@ def _main(): """Parse options and run checks on Python source.""" + import signal + + # Handle "Broken pipe" gracefully + try: + signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1)) + except AttributeError: + pass # not supported on Windows + pep8style = StyleGuide(parse_argv=True, config_file=True) options = pep8style.options if options.doctest or options.testsuite: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/setup.cfg new/pep8-1.5.7/setup.cfg --- old/pep8-1.5.6/setup.cfg 2014-04-14 19:05:22.000000000 +0200 +++ new/pep8-1.5.7/setup.cfg 2014-05-29 18:57:47.000000000 +0200 @@ -7,7 +7,7 @@ max_line_length = 79 [egg_info] -tag_build = tag_svn_revision = 0 tag_date = 0 +tag_build = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/testsuite/E22.py new/pep8-1.5.7/testsuite/E22.py --- old/pep8-1.5.6/testsuite/E22.py 2014-04-09 00:27:08.000000000 +0200 +++ new/pep8-1.5.7/testsuite/E22.py 2014-04-26 20:56:33.000000000 +0200 @@ -120,7 +120,7 @@ #: E228 msg = fmt%(errno, errmsg) #: E228 -msg = "Error %d occured"%errno +msg = "Error %d occurred"%errno #: #: Okay diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/testsuite/W29.py new/pep8-1.5.7/testsuite/W29.py --- old/pep8-1.5.6/testsuite/W29.py 2014-04-14 16:08:57.000000000 +0200 +++ new/pep8-1.5.7/testsuite/W29.py 2014-05-07 22:41:21.000000000 +0200 @@ -15,3 +15,7 @@ 1+ 1 #: W292:1:27 E261:1:12 noeol import this # no line feed +#: W292:3:22 noeol +class Test(object): + def __repr__(self): + return 'test' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pep8-1.5.6/testsuite/W39.py new/pep8-1.5.7/testsuite/W39.py --- old/pep8-1.5.6/testsuite/W39.py 2014-03-25 19:17:09.000000000 +0100 +++ new/pep8-1.5.7/testsuite/W39.py 2014-05-07 22:33:42.000000000 +0200 @@ -1,6 +1,15 @@ -#: W391 +#: W391:2:1 # The next line is blank +#: W391:3:1 +# Two additional empty lines + + +#: W391:4:1 W293:3:1 W293:4:1 noeol +# The last lines contain space + + + #: Okay '''there is nothing wrong with a multiline string at EOF -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de