-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.service.py
76 lines (60 loc) · 1.4 KB
/
setup.service.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
import os
import setuptools
import setup
own_dir = os.path.abspath(os.path.dirname(__file__))
def requirements():
yield 'ocm-gear-utils'
with open(os.path.join(own_dir, 'requirements.service.txt')) as f:
for line in f.readlines():
line = line.strip()
if not line or line.startswith('#'):
continue
yield line
def modules():
return [
'app',
'artefacts',
'compliance_tests',
'components',
'dora',
'eol',
'metadata',
'metric',
'service_extensions',
'smoke_test',
'special_component',
'sprint',
'util',
'yp',
]
def packages():
return [
'auth',
'compliance_summary',
'deliverydb',
'features',
'middleware',
'osinfo',
'rescore',
'responsibles',
'schema',
'swagger',
]
def package_data():
return {
'auth': ['*.yaml'],
'compliance_summary': ['*.yaml'],
'features': ['*.yaml'],
'osinfo': ['*.yaml'],
'responsibles': ['*.yaml'],
'schema': ['*.yaml'],
'swagger': ['*.yaml'],
}
setuptools.setup(
name='ocm-gear-service',
version=setup.finalize_version(),
py_modules=modules(),
packages=packages(),
package_data=package_data(),
install_requires=list(requirements()),
)