forked from anchore/anchore-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (52 loc) · 1.48 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
#!/usr/bin/python
from setuptools import setup, find_packages
import os, shutil, errno, re
from anchore_engine import version
version = version.version
package_name = "anchore_engine"
description = "Anchore Engine"
long_description = open("README.md").read()
url = "http://www.anchore.com"
with open("requirements.txt") as f:
requirements = f.read().splitlines()
# find all the swaggers
swaggers = []
for root, dirnames, filenames in os.walk("./" + package_name):
if "swagger.yaml" in filenames:
theswaggerdir = re.sub(re.escape("./" + package_name + "/"), "", root)
swaggers.append("/".join([theswaggerdir, "swagger.yaml"]))
package_data = {
package_name: [
"conf/*",
"conf/bundles/*",
"analyzers/modules/*",
]
+ swaggers,
"twisted": ["plugins/*"],
}
data_files = []
# scripts = ['scripts/anchore-engine']
scripts = []
packages = find_packages(exclude=["test", "test.*"])
packages.append("twisted.plugins")
setup(
name="anchore_engine",
author="Anchore Inc.",
author_email="[email protected]",
license="Apache License 2.0",
description=description,
long_description=long_description,
url=url,
python_requires="==3.8.*",
packages=packages,
version=version,
data_files=data_files,
include_package_data=True,
package_data=package_data,
install_requires=requirements,
scripts=scripts,
entry_points="""
[console_scripts]
anchore-manager=anchore_manager.cli:main_entry
""",
)