-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.extensions.py
58 lines (42 loc) · 1.05 KB
/
setup.extensions.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
import os
import setuptools
import setup
own_dir = os.path.abspath(os.path.dirname(__file__))
def requirements():
yield 'delivery-gear-utils'
with open(os.path.join(own_dir, 'requirements.extensions.txt')) as f:
for line in f.readlines():
line = line.strip()
if not line or line.startswith('#'):
continue
yield line
def modules():
return [
'artefact_enumerator',
'backlog_controller',
'delivery_db_backup',
'sast',
]
def packages():
return [
'bdba_extension',
'crypto_extension',
'issue_replicator',
'malware',
'osid_extension',
]
def package_data():
return {
'crypto_extension': ['*.yaml'],
}
setuptools.setup(
name='ocm-gear-extensions',
version=os.environ.get(
'ODG_EXTENSIONS_PACKAGE_VERSION',
setup.finalize_version(),
),
py_modules=modules(),
packages=packages(),
package_data=package_data(),
install_requires=list(requirements()),
)