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 2022-12-16 17:51:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-flake8 (Old) and /work/SRC/openSUSE:Factory/.python-flake8.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-flake8" Fri Dec 16 17:51:41 2022 rev:41 rq:1043219 version:6.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-flake8/python-flake8.changes 2022-08-30 14:49:28.520119708 +0200 +++ /work/SRC/openSUSE:Factory/.python-flake8.new.1835/python-flake8.changes 2022-12-16 17:51:49.228073393 +0100 @@ -1,0 +2,11 @@ +Thu Dec 15 20:56:52 UTC 2022 - Dirk Müller <dmuel...@suse.com> + +- update to 6.0.0 (bsc#1206225): + * https://flake8.pycqa.org/en/latest/release-notes/6.0.0.html + * Require python >= 3.8.1 (See also #1633, #1741). + * List available formatters in for --format option in --help (See also #223, #1624). + * Improve multiprocessing performance (See also #1723). + * Enable multiprocessing on non-fork platforms (See also #1723). + * Ensure results are sorted when discovered from files (See also #1670, #1726). + +------------------------------------------------------------------- Old: ---- flake8-5.0.4.tar.gz New: ---- flake8-6.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-flake8.spec ++++++ --- /var/tmp/diff_new_pack.Q1Zoqb/_old 2022-12-16 17:51:49.740076211 +0100 +++ /var/tmp/diff_new_pack.Q1Zoqb/_new 2022-12-16 17:51:49.744076233 +0100 @@ -17,34 +17,30 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-flake8 -Version: 5.0.4 +Version: 6.0.0 Release: 0 Summary: Modular source code checker: pep8, pyflakes and co License: MIT URL: https://flake8.pycqa.org Source: https://files.pythonhosted.org/packages/source/f/flake8/flake8-%{version}.tar.gz # workaround for https://github.com/PyCQA/flake8/pull/1669 -Source2: https://raw.githubusercontent.com/PyCQA/flake8/5.0.4/bin/gen-pycodestyle-plugin +Source2: https://raw.githubusercontent.com/PyCQA/flake8/%{version}/bin/gen-pycodestyle-plugin +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module importlib-metadata >= 1.1.0 if %python-version < 3.8} BuildRequires: %{python_module mccabe >= 0.7.0 with %python-mccabe < 0.8.0} -BuildRequires: %{python_module pycodestyle >= 2.9.0 with %python-pycodestyle < 2.10.0} -BuildRequires: %{python_module pyflakes >= 2.5.0 with %python-pyflakes < 2.6.0} +BuildRequires: %{python_module pycodestyle >= 2.10.0 with %python-pycodestyle < 2.11.0} +BuildRequires: %{python_module pyflakes >= 3.0.0 with %python-pyflakes < 3.1.0} BuildRequires: %{python_module pytest} # /SECTION BuildArch: noarch # https://flake8.pycqa.org/en/latest/faq.html#why-does-flake8-use-ranges-for-its-dependencies Requires: (python-mccabe >= 0.7.0 with python-mccabe < 0.8.0) -Requires: (python-pycodestyle >= 2.9.0 with python-pycodestyle < 2.10.0) -Requires: (python-pyflakes >= 2.5.0 with python-pyflakes < 2.6.0) -%if 0%{?python_version_nodots} < 38 -Requires: python-importlib-metadata >= 1.1.0 -%endif +Requires: (python-pycodestyle >= 2.10.0 with python-pycodestyle < 2.11.0) +Requires: (python-pyflakes >= 3.0.0 with python-pyflakes < 3.1.0) Requires(post): update-alternatives Requires(postun):update-alternatives %python_subpackages ++++++ flake8-5.0.4.tar.gz -> flake8-6.0.0.tar.gz ++++++ ++++ 4900 lines of diff (skipped) ++++++ gen-pycodestyle-plugin ++++++ --- /var/tmp/diff_new_pack.Q1Zoqb/_old 2022-12-16 17:51:49.868076916 +0100 +++ /var/tmp/diff_new_pack.Q1Zoqb/_new 2022-12-16 17:51:49.872076937 +0100 @@ -1,11 +1,12 @@ #!/usr/bin/env python3 +from __future__ import annotations + import inspect import os.path from typing import Any from typing import Callable from typing import Generator from typing import NamedTuple -from typing import Tuple import pycodestyle @@ -20,7 +21,7 @@ class Call(NamedTuple): name: str is_generator: bool - params: Tuple[str, ...] + params: tuple[str, ...] def to_src(self) -> str: params_s = ", ".join(self.params) @@ -35,7 +36,7 @@ return "\n".join(lines) @classmethod - def from_func(cls, func: Callable[..., Any]) -> "Call": + def from_func(cls, func: Callable[..., Any]) -> Call: spec = inspect.getfullargspec(func) params = tuple(spec.args) return cls(func.__name__, inspect.isgeneratorfunction(func), params) @@ -55,9 +56,10 @@ yield f'"""Generated using ./bin/{os.path.basename(__file__)}."""' yield "# fmt: off" + yield "from __future__ import annotations" + yield "" yield "from typing import Any" yield "from typing import Generator" - yield "from typing import Tuple" yield "" imports = sorted(call.name for call in logical + physical) for name in imports: @@ -69,7 +71,7 @@ logical_params = {param for call in logical for param in call.params} for param in sorted(logical_params): yield f" {param}: Any," - yield ") -> Generator[Tuple[int, str], None, None]:" + yield ") -> Generator[tuple[int, str], None, None]:" yield ' """Run pycodestyle logical checks."""' for call in sorted(logical): yield call.to_src() @@ -80,7 +82,7 @@ physical_params = {param for call in physical for param in call.params} for param in sorted(physical_params): yield f" {param}: Any," - yield ") -> Generator[Tuple[int, str], None, None]:" + yield ") -> Generator[tuple[int, str], None, None]:" yield ' """Run pycodestyle physical checks."""' for call in sorted(physical): yield call.to_src()