|
| 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 | + }) |
0 commit comments