-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
71 lines (64 loc) · 1.74 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
64
65
66
67
68
69
70
71
from setuptools import find_namespace_packages, setup
install_requires = [
"click>=7.1.2",
"requests>=2.24.0",
"jsonschema>=4.7.2",
]
tests_require = [
"pytest",
]
dev_require = [
*tests_require,
"black",
"ruff",
"click-man",
"mypy",
"tox",
"types-click",
"types-requests",
"types-jsonschema",
]
extras_require = {
"dev": dev_require,
"test": tests_require,
}
with open("README.md") as f:
readme = f.read()
with open("cvelib/__init__.py") as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
version = line.split(delim)[1]
break
else:
raise RuntimeError("Unable to find version string.")
setup(
name="cvelib",
version=version,
description="A library and command line interface for the CVE Project services.",
long_description=readme,
long_description_content_type="text/markdown",
url="https://github.com/RedHatProductSecurity/cvelib",
author="Red Hat Product Security",
author_email="[email protected]",
license="MIT",
classifiers=[
"Topic :: Security",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
include_package_data=True,
packages=find_namespace_packages(),
install_requires=install_requires,
extras_require=extras_require,
entry_points={
"console_scripts": [
"cve = cvelib.cli:cli",
],
},
)