forked from PanDAWMS/panda-harvester
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
68 lines (63 loc) · 2.23 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
#
#
# Setup for Harvester
#
#
import sys
from setuptools import setup, find_packages
from pandaharvester import panda_pkg_info
sys.path.insert(0, '.')
# get release version
release_version = panda_pkg_info.release_version
setup(
name="pandaharvester",
version=release_version,
description='Harvester Package',
long_description='''This package contains Harvester components''',
license='GPL',
author='Panda Team',
author_email='atlas-adc-panda@cern.ch',
url='https://github.com/PanDAWMS/panda-harvester/wiki',
python_requires='>=2.7',
packages=find_packages(),
install_requires=['requests',
'python-daemon',
'future',
'futures; python_version == "2.*"',
'pycryptodomex',
'panda-common-s >= 0.0.11',
'pyjwt',
'subprocess32; python_version == "2.*"',
'rpyc',
'paramiko',
'pexpect',
'psutil >= 5.4.8'
],
data_files=[
# config and cron files
('etc/panda', ['templates/panda_harvester.cfg.rpmnew.template',
'templates/logrotate.d/panda_harvester',
'templates/panda_harvester-httpd.conf.rpmnew.template',
'templates/panda_supervisord.cfg.rpmnew.template',
'templates/panda_harvester-uwsgi.ini.rpmnew.template',
]
),
# sysconfig
('etc/sysconfig', ['templates/sysconfig/panda_harvester.rpmnew.template',
]
),
# init script
('etc/rc.d/init.d', ['templates/init.d/panda_harvester.rpmnew.template',
'templates/init.d/panda_harvester-apachectl.rpmnew.template',
'templates/init.d/panda_harvester-uwsgi.rpmnew.template',
]
),
# admin tool
('local/bin', ['templates/harvester-admin.rpmnew.template',
]
),
],
scripts=['templates/panda_jedi-renice',
'templates/panda_harvester-sqlite3backup',
]
)