Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-cpplint for openSUSE:Factory checked in at 2025-10-31 16:28:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-cpplint (Old) and /work/SRC/openSUSE:Factory/.python-cpplint.new.1980 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cpplint" Fri Oct 31 16:28:10 2025 rev:10 rq:1314617 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-cpplint/python-cpplint.changes 2025-07-07 14:49:53.460772246 +0200 +++ /work/SRC/openSUSE:Factory/.python-cpplint.new.1980/python-cpplint.changes 2025-10-31 16:28:58.248211803 +0100 @@ -1,0 +2,54 @@ +Fri Oct 31 02:26:02 UTC 2025 - Steve Kowalik <[email protected]> + +- Update to 2.0.2: + * Drop Python 3.8 + * Don't err on non-const references by default + * fix(indentation_namespace): false positive for MemInitLists + * Fix missing comma between items in _CPP_HEADERS + * Fix false positive for indented parameters in namespaces + * IWYU: treat stdio.h the same way as cstdio + * PEP 621: Migrate from setup.{py, cfg} to pyproject.toml + * cpplint_clitest.py: Function names should be lowercase + * suppress C++-only categories on C file extensions + * You can now specify blocks of code that exclude linting with NOLINTBEGIN + and NOLINTEND + * The --filter option can now be only applied to a specific file or even a + specific line through utilizing colons + * NOLINT and NOLINTNEXTLINE comments now support a comma-separated list of + categories + * NOLINT and NOLINTNEXTLINE will now ignore categories known to be from + clang-tidy + * build/include-what-you-use no longer supports transitive headers from the + header for the current module for parity with the style guide + * build/include-what-you-use now supports a plethora of new functions + * build/include-what-you-use will no longer err on similarly-named classes + from other namespaces + * Indented functions inside namespaces will now be correctly erred on + * The check for C-style casts now looks for the standard fixed-width + integer typenames instead of non-standard ones (e.g. int32_t instead of + int32) + * readability/braces will realize that C++20 concepts require a semicolon + * C++20 headers will no longer be flagged as C headers + * Processing C++ files through stdin/piping is now fixed + * You can now specify the name of the CPPLINT.cfg file through --config as + long as it is in the same directory + * The new __VA_OPT__(,) will now be recognized by the Whitespace linter as + a function + * The check for including a source file's header file will now scan all + files with the same base name + * build/class and build/namespaces no longer check for whether a namespace + or class has a closing brace + * For header files, the check for a header guard's name will now be cached + and only run once, as opposed to previously being run on every line + * Usages of the deprecated sre_compile were refectored + * Usages of deprecated unittest aliases were refactored + * Typos in this changelog, comments and functions were fixed + * %-strings were modernized into f-strings +- Drop patches, all upstream: + * deprecated-unittest-aliases.patch + * drop-sre-compile.patch + * python312.patch +- Add patch do-not-use-codecs-open.patch: + * Do not use deprecated codecs.open() method. + +------------------------------------------------------------------- Old: ---- cpplint-1.6.1.tar.gz deprecated-unittest-aliases.patch drop-sre-compile.patch python312.patch New: ---- cpplint-2.0.2.tar.gz do-not-use-codecs-open.patch ----------(Old B)---------- Old:- Drop patches, all upstream: * deprecated-unittest-aliases.patch * drop-sre-compile.patch Old: * deprecated-unittest-aliases.patch * drop-sre-compile.patch * python312.patch Old: * drop-sre-compile.patch * python312.patch - Add patch do-not-use-codecs-open.patch: ----------(Old E)---------- ----------(New B)---------- New: * python312.patch - Add patch do-not-use-codecs-open.patch: * Do not use deprecated codecs.open() method. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-cpplint.spec ++++++ --- /var/tmp/diff_new_pack.QHnMvq/_old 2025-10-31 16:28:59.040245454 +0100 +++ /var/tmp/diff_new_pack.QHnMvq/_new 2025-10-31 16:28:59.040245454 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-cpplint # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,19 +18,18 @@ %bcond_without libalternatives Name: python-cpplint -Version: 1.6.1 +Version: 2.0.2 Release: 0 Summary: An automated checker to make sure a C++ file follows Google's C++ style guide License: BSD-3-Clause URL: https://github.com/cpplint/cpplint Source: https://files.pythonhosted.org/packages/source/c/cpplint/cpplint-%{version}.tar.gz -# PATCH-FIX-UPSTREAM drop-sre-compile.patch gh#cpplint/cpplint#214 -Patch0: drop-sre-compile.patch -# PATCH-FIX-UPSTREAM python312.patch gh#cpplint/cpplint#243 -Patch1: python312.patch -# PATCH-FIX-UPSTREAM deprecated-unittest-aliases.patch gh#cpplint/cpplint#182 -Patch2: deprecated-unittest-aliases.patch +# PATCH-FIX-UPSTREAM gh#cpplint/cpplint#405 +Patch0: do-not-use-codecs-open.patch +BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-timeout} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testfixtures} @@ -51,10 +50,6 @@ %prep %autosetup -p1 -n cpplint-%{version} -sed -i -e '/^#!\//, 1d' cpplint.py -sed -i 's/pytest-runner==5.2//' setup.py -sed -i 's/pytest-cov//' test-requirements -sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg %build %pyproject_wheel ++++++ cpplint-1.6.1.tar.gz -> cpplint-2.0.2.tar.gz ++++++ ++++ 50566 lines of diff (skipped) ++++++ do-not-use-codecs-open.patch ++++++ >From fe579d0e248f2f1f977ecb902f7a2eb1a4a66eef Mon Sep 17 00:00:00 2001 From: Steve Kowalik <[email protected]> Date: Fri, 31 Oct 2025 12:50:26 +1100 Subject: [PATCH 1/3] Drop use of codecs.open() codecs.open() has been deprecated as of Python 3.14, and plain open() supports all use-cases we have, switch to using it. --- cpplint.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) Index: cpplint-2.0.2/cpplint.py =================================================================== --- cpplint-2.0.2.orig/cpplint.py +++ cpplint-2.0.2/cpplint.py @@ -7448,7 +7448,7 @@ def ProcessConfigOverrides(filename): continue try: - with codecs.open(cfg_file, "r", "utf8", "replace") as file_handle: + with open(cfg_file, encoding="utf8", errors="replace") as file_handle: for line in file_handle: line, _, _ = line.partition("#") # Remove comments. if not line.strip(): @@ -7541,16 +7541,15 @@ def ProcessFile(filename, vlevel, extra_ crlf_lines = [] try: # Support the UNIX convention of using "-" for stdin. Note that - # we are not opening the file with universal newline support - # (which codecs doesn't support anyway), so the resulting lines do - # contain trailing '\r' characters if we are reading a file that - # has CRLF endings. + # we are not opening the file with universal newline support, + # so the resulting lines do # contain trailing '\r' characters + # if we are reading a file that # has CRLF endings. # If after the split a trailing '\r' is present, it is removed # below. if filename == "-": lines = sys.stdin.read().split("\n") else: - with codecs.open(filename, "r", "utf8", "replace") as target_file: + with open(filename, encoding="utf8", errors="replace") as target_file: lines = target_file.read().split("\n") # Remove trailing '\r'.
