Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (53 loc) · 1.65 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (53 loc) · 1.65 KB
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
import sys
from setuptools import setup, find_namespace_packages
from alma_sbom._version import __version__
def get_install_requires():
requires=[
'requests>=2.20.0',
'cyclonedx-python-lib==9.0.0',
'spdx-tools==0.8',
'urllib3<2.0',
'packageurl-python==0.16.0',
'GitPython==3.1.29',
'immudb_wrapper @ git+https://github.com/AlmaLinux/immudb-wrapper.git@0.1.5#egg=immudb_wrapper',
'pycdlib==1.14.0',
]
is_venv = sys.prefix != sys.base_prefix
if is_venv:
requires.append('rpm==0.3.1')
else: # not is_venv
requires.append('rpm>=4.14')
return requires
setup(
name="alma-sbom",
version=__version__,
author="Stepan Oksanichenko",
author_email="soksanichenko@almalinux.org",
description="AlmaLinux OS SBOM data management utility.",
url="https://github.com/AlmaLinux/alma-sbom",
project_urls={
"Bug Tracker": "https://github.com/AlmaLinux/alma-sbom/issues",
"Documentation": "https://wiki.almalinux.org/documentation/sbom-guide.html",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: "
"GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
],
packages=find_namespace_packages(include=['alma_sbom*']),
install_requires=get_install_requires(),
python_requires=">=3.9",
entry_points={
'console_scripts': [
'alma-sbom=alma_sbom.cli.main:cli_main'
],
},
### tests setting
extras_require={
'dev': [
'pytest',
'pytest-cov',
],
},
)