From 081a58ec8df5dfc57485901aaa569e050bc987a8 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sat, 5 Oct 2024 13:50:59 +0800 Subject: [PATCH] Releasing 2.0.0 --- CHANGELOG.rst | 6 +++--- CONTRIBUTING.rst | 5 ++--- cpplint.py | 2 +- setup.cfg | 6 +++--- setup.py | 1 - 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 82b05a5..4dfac75 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,10 +2,10 @@ Changelog ********* -2.0 (Unreleased) -================== +2.0 (2024-10-06) +================ -A bunch of long-overdue modernizations of the codebase! +A large long-overdue modernization of the codebase! * Python 2 is no longer supported. Python 3.12 support was added along with fixed CI for 3.7 and 3.8, courtesy of @jayvdb * As a result of all this, setup.py's lint subcommand was removed. Please run the commands directly instead. diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 53c0aed..4ff2e0f 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -22,10 +22,9 @@ For many tasks, it is okay to just develop using a single installed python versi 1. (Optional) Install `pyenv `_ to manage python versions 2. (Optional) Using pyenv, install the python versions used in testing:: - pyenv install 2.7.16 - pyenv install 3.6.8 + pyenv install 3.12.6 # ... - pyenv local 2.7.16 3.6.8 ... + pyenv local 3.12.6 ... It may be okay to run and test python against locally installed libraries, but if you need to have a consistent build, it is recommended to manage your environment using virtualenv: `virtualenv `_, `virtualenvwrapper `_:: diff --git a/cpplint.py b/cpplint.py index e29bdfb..10a69c0 100755 --- a/cpplint.py +++ b/cpplint.py @@ -59,7 +59,7 @@ # if empty, use defaults _valid_extensions = set([]) -__VERSION__ = '1.7' +__VERSION__ = '2.0.0' _USAGE = """ Syntax: cpplint.py [--verbose=#] [--output=emacs|eclipse|vs7|junit|sed|gsed] diff --git a/setup.cfg b/setup.cfg index dbe6220..eebbf0a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,6 +5,6 @@ test = pytest python_files = *test.py testpaths = . required_plugins = pytest-cov pytest-timeout -timeout = 64 -# running with tox reports only 75% -addopts = --color=yes --cov-fail-under=75 --cov=cpplint +timeout = 60 +# fail if coverage is under 90% +addopts = --color=yes --cov-fail-under=90 --cov=cpplint diff --git a/setup.py b/setup.py index cf4dbe4..2325a71 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,6 @@ def read_without_comments(filename): download_url='https://github.com/cpplint/cpplint', keywords=['lint', 'python', 'c++'], maintainer='cpplint Developers', - maintainer_email='see_github@nospam.com', classifiers=['Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Intended Audience :: End Users/Desktop',