From b548620fdc64c6dd033823ad384b7a06f5a215ad738d6e2244e46a3ee885fcfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 1 Apr 2020 14:59:59 +0000 Subject: [PATCH] Accepting request 790615 from home:mcalabkova:branches:devel:languages:python - update to 1.4.5 * Add support for c++17 tuple destructuring * Travis CI: Add Python 3.8 to the testing * Fix linting unnecessary elif after break OBS-URL: https://build.opensuse.org/request/show/790615 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cpplint?expand=0&rev=3 --- cpplint-1.4.4.tar.gz | 3 --- cpplint-1.4.5.tar.gz | 3 +++ python-cpplint.changes | 8 ++++++++ python-cpplint.spec | 10 +++++++--- 4 files changed, 18 insertions(+), 6 deletions(-) delete mode 100644 cpplint-1.4.4.tar.gz create mode 100644 cpplint-1.4.5.tar.gz diff --git a/cpplint-1.4.4.tar.gz b/cpplint-1.4.4.tar.gz deleted file mode 100644 index 77c3e4d..0000000 --- a/cpplint-1.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c30ca47ed6ec6d9ad104f6573b6ee54e1e2dca2f7b5d2fcf846cda095512419 -size 327877 diff --git a/cpplint-1.4.5.tar.gz b/cpplint-1.4.5.tar.gz new file mode 100644 index 0000000..284982b --- /dev/null +++ b/cpplint-1.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08b384606136146ac1d32a2ffb60623a5dc1b20434588eaa0fa12a6e24eb3bf5 +size 329841 diff --git a/python-cpplint.changes b/python-cpplint.changes index 6cc6db3..fcd5c76 100644 --- a/python-cpplint.changes +++ b/python-cpplint.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Apr 1 14:13:44 UTC 2020 - Marketa Calabkova + +- update to 1.4.5 + * Add support for c++17 tuple destructuring + * Travis CI: Add Python 3.8 to the testing + * Fix linting unnecessary elif after break + ------------------------------------------------------------------- Mon Feb 25 23:10:30 UTC 2019 - John Vandenberg diff --git a/python-cpplint.spec b/python-cpplint.spec index da886ba..1ab81f8 100644 --- a/python-cpplint.spec +++ b/python-cpplint.spec @@ -1,7 +1,7 @@ # # spec file for package python-cpplint # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cpplint -Version: 1.4.4 +Version: 1.4.5 Release: 0 Summary: An automated checker to make sure a C++ file follows Google's C++ style guide License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/cpplint/cpplint Source: https://files.pythonhosted.org/packages/source/c/cpplint/cpplint-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -41,6 +42,9 @@ in hopes that it can be merged in the future. %prep %setup -q -n cpplint-%{version} sed -i -e '/^#!\//, 1d' cpplint.py +sed -i 's/pytest-runner//' setup.py +sed -i 's/pytest-cov//' test-requirements +sed -i 's/--cov-fail-under=75 --cov=cpplint//' setup.cfg %build %python_build @@ -50,7 +54,7 @@ sed -i -e '/^#!\//, 1d' cpplint.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %license LICENSE