forked from tiiuae/sbomnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (48 loc) · 1.52 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
# SPDX-FileCopyrightText: 2022-2023 Technology Innovation Institute (TII)
#
# SPDX-License-Identifier: Apache-2.0
# pylint: disable=invalid-name, import-error, missing-function-docstring
""" setup.py for setuptools """
import os.path
import setuptools
with open("README.md", encoding="utf-8") as readme:
long_description = readme.read()
def project_path(*names):
return os.path.join(os.path.dirname(__file__), *names)
with open(project_path("VERSION"), encoding="utf-8") as f:
version = f.read().strip()
requires = [
"colorlog",
"graphviz",
"packageurl-python",
"pandas",
"reuse",
"tabulate",
]
setuptools.setup(
name="sbomnix",
version=version,
description="Utility that generates SBOMs from nix packages",
url="https://github.com/tiiuae/sbomnix",
author="TII",
author_email="[email protected]",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.8",
install_requires=requires,
license="Apache-2.0",
classifiers=[ # See:https://pypi.org/classifiers/
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
],
keywords="SBOM",
packages=["sbomnix", "nixgraph", "scripts.vulnxscan"],
entry_points={
"console_scripts": [
"sbomnix = sbomnix.main:main",
"nixgraph = nixgraph.main:main",
]
},
)