-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
48 lines (41 loc) · 1.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import codecs
import os
import re
import setuptools
def read(fname):
file_path = os.path.join(os.path.dirname(__file__), fname)
return codecs.open(file_path, encoding='utf-8').read()
def get_version():
regex = re.compile(r'^version = "([0-9.]+)"$', re.MULTILINE)
return regex.findall(read('pyproject.toml'))[0]
setuptools.setup(
name='pyclang',
version=get_version(),
author='Fu Hanxi',
author_email='fuhanxi@espressif.com',
license='MIT',
description='A python clang-tidy runner',
long_description=read('README.md'),
long_description_content_type='text/markdown',
packages=setuptools.find_packages(),
python_requires='>=3.7',
extras_require={
'html': ['codereport~=0.4'],
},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3 :: Only',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
],
entry_points={
'console_scripts': ['idf_clang_tidy = pyclang.scripts.idf_clang_tidy:main'],
},
)