Skip to content

Commit 03f409b

Browse files
committed
fix: dev: update action/python versions, packaging, and tox file
* add workaround for py39 on macos installed with broken setuptools Signed-off-by: Stephen L Arnold <sarnold@vctlabs.com>
1 parent e16cc6e commit 03f409b

2 files changed

Lines changed: 48 additions & 1 deletion

File tree

setup.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#! /usr/bin/env python
2+
from setuptools import setup
3+
import cpplint
4+
5+
# some pip versions bark on comments
6+
def read_without_comments(filename):
7+
with open(filename) as f:
8+
return [line for line in f.read().splitlines() if not len(line) == 0 and not line.startswith('#')]
9+
10+
11+
setup(name='cpplint',
12+
version=cpplint.__VERSION__,
13+
py_modules=['cpplint'],
14+
# generate platform specific start script
15+
entry_points={
16+
'console_scripts': [
17+
'cpplint = cpplint:main'
18+
]
19+
},
20+
install_requires=[],
21+
url='https://github.com/cpplint/cpplint',
22+
download_url='https://github.com/cpplint/cpplint',
23+
keywords=['lint', 'python', 'c++'],
24+
maintainer='cpplint Developers',
25+
classifiers=['Development Status :: 5 - Production/Stable',
26+
'Environment :: Console',
27+
'Intended Audience :: End Users/Desktop',
28+
'License :: Freely Distributable',
29+
'License :: OSI Approved :: BSD License',
30+
'Natural Language :: English',
31+
'Programming Language :: Python :: 3 :: Only',
32+
'Programming Language :: Python :: 3.9',
33+
'Programming Language :: Python :: 3.10',
34+
'Programming Language :: Python :: 3.11',
35+
'Programming Language :: Python :: 3.12',
36+
'Programming Language :: Python :: 3.13',
37+
'Programming Language :: C++',
38+
'Topic :: Software Development :: Quality Assurance'],
39+
description='Automated checker to ensure C++ files follow Google\'s style guide',
40+
long_description=open('README.rst').read(),
41+
long_description_content_type='text/x-rst',
42+
license='BSD-3-Clause',
43+
# extras_require allow pip install .[dev]
44+
extras_require={
45+
'test': read_without_comments('test-requirements'),
46+
'dev': read_without_comments('dev-requirements'),
47+
})

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ deps =
9494
pip>=21.1
9595

9696
commands =
97-
bash -c 'rm -rf build/ dist/ __pycache__/ *.egg-info/'
97+
bash -c 'rm -rf build/ dist/ __pycache__/ *.egg-info/ .coverage'

0 commit comments

Comments
 (0)