forked from RedHatProductSecurity/cvss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (60 loc) · 2.22 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
import codecs
from os import path
from setuptools import find_packages, setup
try:
from collections import OrderedDict # noqa
except ImportError:
dependencies = ["ordereddict"]
else:
dependencies = []
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
with open("cvss/__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="cvss",
version=version,
description="CVSS2/3 library with interactive calculator for Python 2 and Python 3",
long_description=long_description,
url="https://github.com/RedHatProductSecurity/cvss",
project_urls={
"Releases": "https://github.com/RedHatProductSecurity/cvss/releases",
"Source code": "https://github.com/RedHatProductSecurity/cvss",
"Issues": "https://github.com/RedHatProductSecurity/cvss/issues",
"CI": "https://github.com/RedHatProductSecurity/cvss/actions",
},
author="Stanislav Kontar, Red Hat Product Security",
author_email="[email protected]",
license="LGPLv3+",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Security",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"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",
],
keywords="security cvss score calculator",
packages=find_packages(),
install_requires=dependencies,
tests_require=["jsonschema"],
entry_points={
"console_scripts": [
"cvss_calculator = cvss.cvss_calculator:main",
],
},
)