Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-autopep8 for openSUSE:Factory checked in at 2023-03-21 17:41:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-autopep8 (Old) and /work/SRC/openSUSE:Factory/.python-autopep8.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-autopep8" Tue Mar 21 17:41:20 2023 rev:27 rq:1073058 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-autopep8/python-autopep8.changes 2023-01-25 17:54:11.859593506 +0100 +++ /work/SRC/openSUSE:Factory/.python-autopep8.new.31432/python-autopep8.changes 2023-03-21 17:41:24.561796206 +0100 @@ -1,0 +2,9 @@ +Mon Mar 13 08:44:47 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 2.0.2: + * Ignore DeprecationWarnings to fix tests on py3.11 + * fix: infinite loop in autopep8.fix_code without w50 ignore + option +- drop ignore-deprecation.patch (upstream) + +------------------------------------------------------------------- Old: ---- autopep8-2.0.1.tar.gz ignore-deprecation.patch New: ---- autopep8-2.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-autopep8.spec ++++++ --- /var/tmp/diff_new_pack.V4NByS/_old 2023-03-21 17:41:25.297799726 +0100 +++ /var/tmp/diff_new_pack.V4NByS/_new 2023-03-21 17:41:25.305799765 +0100 @@ -17,15 +17,13 @@ Name: python-autopep8 -Version: 2.0.1 +Version: 2.0.2 Release: 0 Summary: Automatic generated to pep8 checked code License: MIT Group: Development/Languages/Python URL: https://github.com/hhatto/autopep8 Source: https://files.pythonhosted.org/packages/source/a/autopep8/autopep8-%{version}.tar.gz -# PATCH-FIX-UPSTREAM ignore-deprecation.patch gh#hhatto/autopep8#665/files -Patch: ignore-deprecation.patch BuildRequires: %{python_module base >= 3.6} BuildRequires: %{python_module pip} BuildRequires: %{python_module pycodestyle >= 2.8} ++++++ autopep8-2.0.1.tar.gz -> autopep8-2.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autopep8-2.0.1/PKG-INFO new/autopep8-2.0.2/PKG-INFO --- old/autopep8-2.0.1/PKG-INFO 2022-12-15 16:05:52.765132700 +0100 +++ new/autopep8-2.0.2/PKG-INFO 2023-03-03 10:21:30.055078500 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: autopep8 -Version: 2.0.1 +Version: 2.0.2 Summary: A tool that automatically formats Python code to conform to the PEP 8 style guide Home-page: https://github.com/hhatto/autopep8 Author: Hideo Hattori diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autopep8-2.0.1/autopep8.egg-info/PKG-INFO new/autopep8-2.0.2/autopep8.egg-info/PKG-INFO --- old/autopep8-2.0.1/autopep8.egg-info/PKG-INFO 2022-12-15 16:05:52.000000000 +0100 +++ new/autopep8-2.0.2/autopep8.egg-info/PKG-INFO 2023-03-03 10:21:30.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: autopep8 -Version: 2.0.1 +Version: 2.0.2 Summary: A tool that automatically formats Python code to conform to the PEP 8 style guide Home-page: https://github.com/hhatto/autopep8 Author: Hideo Hattori diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autopep8-2.0.1/autopep8.py new/autopep8-2.0.2/autopep8.py --- old/autopep8-2.0.1/autopep8.py 2022-12-15 15:53:26.000000000 +0100 +++ new/autopep8-2.0.2/autopep8.py 2023-03-03 10:19:35.000000000 +0100 @@ -89,7 +89,7 @@ from pycodestyle import STARTSWITH_INDENT_STATEMENT_REGEX -__version__ = '2.0.1' +__version__ = '2.0.2' CR = '\r' @@ -3488,6 +3488,16 @@ """ options = _get_options(options, apply_config) + # normalize + options.ignore = [opt.upper() for opt in options.ignore] + options.select = [opt.upper() for opt in options.select] + + # check ignore args + # NOTE: If W50x is not included, add W50x because the code + # correction result is indefinite. + ignore_opt = options.ignore + if not {"W50", "W503", "W504"} & set(ignore_opt): + options.ignore.append("W50") if not isinstance(source, str): source = source.decode(encoding or get_encoding()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autopep8-2.0.1/test/test_autopep8.py new/autopep8-2.0.2/test/test_autopep8.py --- old/autopep8-2.0.1/test/test_autopep8.py 2022-12-15 15:52:49.000000000 +0100 +++ new/autopep8-2.0.2/test/test_autopep8.py 2023-03-03 10:18:43.000000000 +0100 @@ -40,13 +40,14 @@ ) if 'AUTOPEP8_COVERAGE' in os.environ and int(os.environ['AUTOPEP8_COVERAGE']): - AUTOPEP8_CMD_TUPLE = ('coverage', 'run', '--branch', '--parallel', + AUTOPEP8_CMD_TUPLE = (sys.executable, '-Wignore::DeprecationWarning', + '-m', 'coverage', 'run', '--branch', '--parallel', '--omit=*/site-packages/*', os.path.join(ROOT_DIR, 'autopep8.py'),) else: # We need to specify the executable to make sure the correct Python # interpreter gets used. - AUTOPEP8_CMD_TUPLE = (sys.executable, + AUTOPEP8_CMD_TUPLE = (sys.executable, '-Wignore::DeprecationWarning', os.path.join(ROOT_DIR, 'autopep8.py'),) # pragma: no cover diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autopep8-2.0.1/tox.ini new/autopep8-2.0.2/tox.ini --- old/autopep8-2.0.1/tox.ini 2022-12-14 01:21:40.000000000 +0100 +++ new/autopep8-2.0.2/tox.ini 2023-03-03 10:18:43.000000000 +0100 @@ -1,5 +1,5 @@ [tox] -envlist=py37,py38,py39,py310 +envlist=py37,py38,py39,py310,py311 skip_missing_interpreters=True [testenv]