forked from intel/cve-bin-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (58 loc) · 2.07 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import sys
import os
from io import open
from setuptools import find_packages, setup, Extension
from cve_bin_tool.util import get_version_string
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
setup_kwargs = dict(
name="cve-bin-tool",
version=get_version_string(),
description="CVE Binary Checker Tool",
long_description=readme,
long_description_content_type="text/markdown",
author="Terri Oda",
author_email="[email protected]",
maintainer="Terri Oda",
maintainer_email="[email protected]",
url="https://github.com/intel/cve-bin-tool",
license="GPLv3",
keywords=["security", "tools", "CVE"],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
install_requires=["jsonschema>=3.0.2", "pytest"],
packages=find_packages(),
entry_points={
"console_scripts": [
"cve-bin-tool = cve_bin_tool.cli:main",
"csv2cve = cve_bin_tool.csv2cve:main",
],
"cve_bin_tool.checker": [
"%s = cve_bin_tool.checkers.%s:get_version"
% tuple((2 * [filename.replace(".py", "")]))
for filename in os.listdir(
os.path.join(
os.path.abspath(os.path.dirname(__file__)),
"cve_bin_tool",
"checkers",
)
)
if filename[::-1].startswith("yp.") and not "__init__" in filename
],
},
)
if sys.version_info.major == 3:
setup_kwargs["ext_modules"] = [
Extension("cve_bin_tool.pstring", [os.path.join("cve_bin_tool", "string.c")])
]
setup(**setup_kwargs)