-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
92 lines (87 loc) · 2.7 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
from ochrona import __author__ as author
from ochrona import __email__ as email
from ochrona import __license__ as license_
from ochrona import __version__ as version
try:
with open("README.md", encoding="utf8") as readme_file:
readme = readme_file.read()
except TypeError:
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = [
"click>=7.1.2",
"pyyaml>=5.4.1",
"requests>=2.25.0",
"toml>=0.10.2",
"python-dateutil>=2.8.1",
"tarsafe>=0.0.3",
"packaging>=20.4",
"requests-cache>=0.5.2",
"appdirs>=1.4.4",
"rich>=10.16.1",
"Jinja2>=3.0.3"
]
test_requirements = ["pytest>=6.1.2"]
setup(
name="ochrona",
version=version,
description="Ochrona checks your open source dependencies for vulnerabilities and policy violations.",
long_description=readme,
long_description_content_type="text/markdown",
author=author,
author_email=email,
url="https://github.com/ochronasec/ochrona-cli",
packages=[
"ochrona",
"ochrona.cli",
"ochrona.client",
"ochrona.config",
"ochrona.db",
"ochrona.eval",
"ochrona.eval.policy",
"ochrona.eval.vuln",
"ochrona.file",
"ochrona.importer",
"ochrona.log",
"ochrona.model",
"ochrona.parser",
"ochrona.reporter",
"ochrona.reporter.reports",
"ochrona.sast",
"ochrona.sast.plugins",
"ochrona.sbom",
"ochrona.sbom.specs",
"ochrona.utils",
],
package_dir={"ochrona": "ochrona"},
entry_points={"console_scripts": ["ochrona=ochrona.cli:run"]},
python_requires=">=3.7",
include_package_data=True,
package_data={'ochrona': ['ochrona/schema/spdx_modified.json', 'ochrona/schema/report.html.jinja']},
install_requires=requirements,
license=license_,
zip_safe=False,
keywords="ochrona, security, dependencies, vulnerability, testing, sca, sast",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Build Tools",
"Topic :: Utilities",
"Topic :: Security",
"Typing :: Typed",
],
test_suite="tests",
tests_require=test_requirements,
)