-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
101 lines (96 loc) · 2.71 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#
#
# Setup for Harvester
#
#
import sys
from setuptools import find_packages, setup
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",
"pycryptodomex",
"panda-common",
"pyjwt",
"rpyc",
"paramiko",
"pexpect",
"psutil >= 5.4.8",
"panda-pilot >= 2.7.2.1",
],
# optional pip dependencies
extras_require={
"kubernetes": ["kubernetes", "pyyaml"],
"mysql": ["mysqlclient"],
"atlasgrid": ["uWSGI >= 2.0.20", "htcondor >= 10.3.0", "mysqlclient >= 2.1.1"],
},
data_files=[
# config and cron files
(
"etc/panda",
[
"templates/panda/panda_harvester.cfg.rpmnew.template",
"templates/panda/panda_harvester-httpd.conf.rpmnew.template",
"templates/panda/panda_supervisord.cfg.rpmnew.template",
"templates/panda/panda_harvester-uwsgi.ini.rpmnew.template",
],
),
# sysconfig
(
"etc/sysconfig",
[
"templates/sysconfig/panda_harvester.rpmnew.template",
"templates/sysconfig/panda_harvester_env.systemd.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",
],
),
# systemd
(
"etc/systemd",
[
"templates/logrotate.d/panda_harvester",
"templates/logrotate.d/panda_harvester_service",
],
),
# logrotate
(
"etc/logrotate.d",
[
"templates/systemd/panda_harvester-uwsgi.service.template",
],
),
# admin tool
(
"local/bin",
[
"templates/bin/harvester-admin.rpmnew.template",
],
),
],
scripts=[
"templates/bin/panda_jedi-renice",
"templates/bin/panda_harvester-sqlite3backup",
],
)