15
0

- Add drop-sre-compile.patch upstream patch to fix issues with

deprecated usage of sre_compile gh#cpplint/cpplint#214
- Update to 1.6.1
  * Fix #195 Fix post increment/decrement operator causing a false positive.
  * Fix #202 .hh files should not be considered sytem headers
  * Fix #207 Python2 incompatibility for loading CPPLINT.cfg file
  * Fix #184 NOLINT(clang-analyzer) comments should not cause warnings
- 1.6.0 (2022-02-19)
  * Fix #188: "Include the directory when naming header files" also
    for header files with other names like "*.hpp"
- 1.5.5 (2021-05-20)
  * Fix #172: Added 'size_t' to typecasts detected by CheckCStyleCast
  * Fixed wrong CLI help text: Each filter needs + or -
  * Fix #164: add elif as an exception for CheckSpacingForFunctionCall()
  * Fix google#346: --root option not working on windows due to
    slashes in path

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cpplint?expand=0&rev=12
This commit is contained in:
2023-04-10 12:05:37 +00:00
committed by Git OBS Bridge
parent 4aeb0e3522
commit e0c8b6ae14
5 changed files with 1806 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5d70711f06a7a8bfdc09bd7a19c13e114e009a70c8dc16caad1e5f0d2f3cc71
size 359495

3
cpplint-1.6.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d430ce8f67afc1839340e60daa89e90de08b874bc27149833077bba726dfc13a
size 364487

1774
drop-sre-compile.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Apr 10 12:03:48 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Add drop-sre-compile.patch upstream patch to fix issues with
deprecated usage of sre_compile gh#cpplint/cpplint#214
- Update to 1.6.1
* Fix #195 Fix post increment/decrement operator causing a false positive.
* Fix #202 .hh files should not be considered sytem headers
* Fix #207 Python2 incompatibility for loading CPPLINT.cfg file
* Fix #184 NOLINT(clang-analyzer) comments should not cause warnings
- 1.6.0 (2022-02-19)
* Fix #188: "Include the directory when naming header files" also
for header files with other names like "*.hpp"
- 1.5.5 (2021-05-20)
* Fix #172: Added 'size_t' to typecasts detected by CheckCStyleCast
* Fixed wrong CLI help text: Each filter needs + or -
* Fix #164: add elif as an exception for CheckSpacingForFunctionCall()
* Fix google#346: --root option not working on windows due to
slashes in path
-------------------------------------------------------------------
Mon Aug 31 06:47:40 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cpplint
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,22 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cpplint
Version: 1.5.4
Version: 1.6.1
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
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testfixtures}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
@@ -42,9 +43,9 @@ fork of google/styleguide (https://github.com/google/styleguide)
in hopes that it can be merged in the future.
%prep
%setup -q -n cpplint-%{version}
%autosetup -p1 -n cpplint-%{version}
sed -i -e '/^#!\//, 1d' cpplint.py
sed -i 's/pytest-runner//' setup.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
@@ -69,6 +70,7 @@ sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg
%license LICENSE
%doc README.rst
%python_alternative %{_bindir}/cpplint
%{python_sitelib}/*
%{python_sitelib}/cpplint*
%pycache_only %{python_sitelib}/__pycache__
%changelog