-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.utils.py
58 lines (43 loc) · 997 Bytes
/
setup.utils.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():
with open(os.path.join(own_dir, 'requirements.utils.txt')) as f:
for line in f.readlines():
line = line.strip()
if not line or line.startswith('#'):
continue
yield line
def modules():
return [
'bdba.model',
'config',
'consts',
'ctx_util',
'lookups',
'ocm_util',
'paths',
'rescore.model',
'rescore.utility',
'util',
]
def packages():
return [
'deliverydb_cache',
'k8s',
'odg',
'secret_mgmt',
]
def package_data():
return {
'odg': ['*.yaml'],
}
setuptools.setup(
name='delivery-gear-utils',
version=setup.finalize_version(),
py_modules=modules(),
packages=packages(),
package_data=package_data(),
install_requires=list(requirements()),
)