Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-flake8 for openSUSE:Factory checked in at 2021-11-12 15:59:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flake8 (Old) and /work/SRC/openSUSE:Factory/.python-flake8.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8" Fri Nov 12 15:59:07 2021 rev:36 rq:930697 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flake8/python-flake8.changes 2021-09-26 21:49:28.886834651 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8.new.1890/python-flake8.changes 2021-11-12 15:59:21.850567686 +0100 @@ -1,0 +2,33 @@ +Tue Nov 9 08:06:25 UTC 2021 - Martin Li??ka <mli...@suse.cz> + +- update to 4.0.1: + * Update spec python module dependencies accordingly. + * Fix parallel execution collecting a SyntaxError (See also #1410 #1408). + +- update to 4.0.0: + * Remove --install-hook vcs integration (See also #1008). + * Remove setuptools command (See also #1009). + * Migrate from GitLab to GitHub (See also #1305). + * Due to constant confusion by users, user-level |Flake8| configuration files + are no longer supported. Files will not be searched for in the user's home + directory (e.g., ~/.flake8) nor in the XDG config directory (e.g., + ~/.config/flake8). (See also #1404). + + * pycodestyle has been updated to >= 2.8.0, < 2.9.0 (See also #1406). + * Pyflakes has been updated to >= 2.4.0, < 2.5.0 (See also #1406). + * flake8 requires python >= 3.6 (See also #1010). + + * Add --extend-select option (See also #1312 #1061). + * Automatically create directories for output files (See also #1329). + + * ast parse before tokenizing to improve SyntaxError errors (See also + #1320 #740). + * Fix warning in --indent-size argparse help (See also #1367). + * Fix handling SyntaxError in python 3.10+ (See also #1374 + #1372). + * Fix writing non-cp1252-encodable when output is piped on windows (See also + #1382 #1381). + +- Rebase fix-mock-patch-with-python3.4.patch and remove ignore-selectable-groups-warning.patch. + +------------------------------------------------------------------- Old: ---- flake8-3.9.2.tar.gz ignore-selectable-groups-warning.patch New: ---- flake8-4.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flake8.spec ++++++ --- /var/tmp/diff_new_pack.Nk16PF/_old 2021-11-12 15:59:22.406567944 +0100 +++ /var/tmp/diff_new_pack.Nk16PF/_new 2021-11-12 15:59:22.410567946 +0100 @@ -19,21 +19,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-flake8 -Version: 3.9.2 +Version: 4.0.1 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co License: MIT URL: https://gitlab.com/pycqa/flake8 Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz Patch0: fix-mock-patch-with-python3.4.patch -Patch1: ignore-selectable-groups-warning.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-importlib-metadata Requires: python-mccabe >= 0.6.0 -Requires: python-pycodestyle >= 2.7.0 -Requires: python-pyflakes >= 2.3.0 +Requires: python-pycodestyle >= 2.8.0 +Requires: python-pyflakes >= 2.4.0 Requires: python-typing Requires(post): update-alternatives Requires(postun):update-alternatives @@ -42,8 +41,8 @@ BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module mccabe >= 0.6.0} BuildRequires: %{python_module mock} -BuildRequires: %{python_module pycodestyle >= 2.7.0} -BuildRequires: %{python_module pyflakes >= 2.3.0} +BuildRequires: %{python_module pycodestyle >= 2.8.0} +BuildRequires: %{python_module pyflakes >= 2.4.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module typing} %if %{with python2} ++++++ fix-mock-patch-with-python3.4.patch ++++++ --- /var/tmp/diff_new_pack.Nk16PF/_old 2021-11-12 15:59:22.430567955 +0100 +++ /var/tmp/diff_new_pack.Nk16PF/_new 2021-11-12 15:59:22.430567955 +0100 @@ -3,52 +3,38 @@ In python 3.5, mock.patch uses create=True automatically if you are patching builtins in a module, but in python 3.4 the argument is still needed. ---- a/tests/unit/test_debug.py -+++ b/tests/unit/test_debug.py -@@ -64,7 +64,7 @@ def test_information(system, pyversion, - system.assert_called_once_with() - - --@mock.patch('flake8.main.debug.print') -+@mock.patch('flake8.main.debug.print', create=True) - @mock.patch('flake8.main.debug.information', return_value={}) - @mock.patch('json.dumps', return_value='{}') - def test_print_information_no_plugins(dumps, information, print_mock): -@@ -79,7 +79,7 @@ def test_print_information_no_plugins(du - assert print_mock.called is False - - --@mock.patch('flake8.main.debug.print') -+@mock.patch('flake8.main.debug.print', create=True) - @mock.patch('flake8.main.debug.information', return_value={}) - @mock.patch('json.dumps', return_value='{}') - def test_print_information(dumps, information, print_mock): +diff --git a/tests/unit/test_base_formatter.py b/tests/unit/test_base_formatter.py +index d096457..47e74a6 100644 --- a/tests/unit/test_base_formatter.py +++ b/tests/unit/test_base_formatter.py -@@ -20,7 +20,7 @@ def test_start(filename): +@@ -23,7 +23,7 @@ def test_start(filename): """Verify we open a new file in the start method.""" mock_open = mock.mock_open() formatter = base.BaseFormatter(options(output_file=filename)) -- with mock.patch('flake8.formatting.base.open', mock_open): -+ with mock.patch('flake8.formatting.base.open', mock_open, create=True): +- with mock.patch("flake8.formatting.base.open", mock_open): ++ with mock.patch("flake8.formatting.base.open", mock_open, create=True): formatter.start() if filename is None: -@@ -100,7 +100,7 @@ def test_write_uses_an_output_file(tee): - formatter = base.BaseFormatter(options(tee=tee)) - formatter.output_fd = filemock +diff --git a/tests/unit/test_debug.py b/tests/unit/test_debug.py +index 2da4bf8..074b409 100644 +--- a/tests/unit/test_debug.py ++++ b/tests/unit/test_debug.py +@@ -95,7 +95,7 @@ def test_information(system, pyversion, pyimpl): + system.assert_called_once_with() -- with mock.patch('flake8.formatting.base.print') as print_func: -+ with mock.patch('flake8.formatting.base.print', create=True) as print_func: - formatter.write(line, source) - if tee: - assert print_func.called -@@ -119,7 +119,7 @@ def test_write_uses_an_output_file(tee): - ] +-@mock.patch("flake8.main.debug.print") ++@mock.patch("flake8.main.debug.print", create=True) + @mock.patch("flake8.main.debug.information", return_value={}) + @mock.patch("json.dumps", return_value="{}") + def test_print_information_no_plugins(dumps, information, print_mock): +@@ -112,7 +112,7 @@ def test_print_information_no_plugins(dumps, information, print_mock): + assert print_mock.called is False --@mock.patch('flake8.formatting.base.print') -+@mock.patch('flake8.formatting.base.print', create=True) - def test_write_uses_print(print_function): - """Verify that we use the print function without an output file.""" - line = 'Something to write' + +-@mock.patch("flake8.main.debug.print") ++@mock.patch("flake8.main.debug.print", create=True) + @mock.patch("flake8.main.debug.information", return_value={}) + @mock.patch("json.dumps", return_value="{}") + def test_print_information(dumps, information, print_mock): ++++++ flake8-3.9.2.tar.gz -> flake8-4.0.1.tar.gz ++++++ ++++ 13426 lines of diff (skipped)