Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-19 08:00:06

0001 #
0002 #
0003 # Setup for Harvester
0004 #
0005 #
0006 import sys
0007 
0008 from setuptools import find_packages, setup
0009 
0010 from pandaharvester import panda_pkg_info
0011 
0012 sys.path.insert(0, ".")
0013 
0014 # get release version
0015 release_version = panda_pkg_info.release_version
0016 
0017 setup(
0018     name="pandaharvester",
0019     version=release_version,
0020     description="Harvester Package",
0021     long_description="""This package contains Harvester components""",
0022     license="GPL",
0023     author="Panda Team",
0024     author_email="atlas-adc-panda@cern.ch",
0025     url="https://github.com/PanDAWMS/panda-harvester/wiki",
0026     python_requires=">=3.10",
0027     packages=find_packages(),
0028     install_requires=[
0029         "requests",
0030         "python-daemon",
0031         "pycryptodomex",
0032         "panda-common",
0033         "pyjwt",
0034         "rpyc",
0035         "paramiko",
0036         "pexpect",
0037         "psutil >= 5.4.8",
0038         "panda-pilot >= 2.7.2.1",
0039         "polars",
0040     ],
0041     # optional pip dependencies
0042     extras_require={
0043         "kubernetes": ["kubernetes", "pyyaml"],
0044         "mysql": ["mysqlclient"],
0045         "atlasgrid": ["uWSGI >= 2.0.20", "htcondor >= 10.3.0, < 25.0", "mysqlclient >= 2.1.1"],
0046     },
0047     data_files=[
0048         # config and cron files
0049         (
0050             "etc/panda",
0051             [
0052                 "templates/panda/panda_harvester.cfg.rpmnew.template",
0053                 "templates/panda/panda_harvester-httpd.conf.rpmnew.template",
0054                 "templates/panda/panda_supervisord.cfg.rpmnew.template",
0055                 "templates/panda/panda_harvester-uwsgi.ini.rpmnew.template",
0056             ],
0057         ),
0058         # sysconfig
0059         (
0060             "etc/sysconfig",
0061             [
0062                 "templates/sysconfig/panda_harvester.rpmnew.template",
0063                 "templates/sysconfig/panda_harvester_env.systemd.rpmnew.template",
0064             ],
0065         ),
0066         # init script
0067         (
0068             "etc/rc.d/init.d",
0069             [
0070                 "templates/init.d/panda_harvester.rpmnew.template",
0071                 "templates/init.d/panda_harvester-apachectl.rpmnew.template",
0072                 "templates/init.d/panda_harvester-uwsgi.rpmnew.template",
0073             ],
0074         ),
0075         # systemd
0076         (
0077             "etc/systemd",
0078             [
0079                 "templates/systemd/panda_harvester-uwsgi.service.template",
0080             ],
0081         ),
0082         # logrotate
0083         (
0084             "etc/logrotate.d",
0085             [
0086                 "templates/logrotate.d/panda_harvester",
0087                 "templates/logrotate.d/panda_harvester_service",
0088             ],
0089         ),
0090         # admin tool
0091         (
0092             "local/bin",
0093             [
0094                 "templates/bin/harvester-admin.rpmnew.template",
0095             ],
0096         ),
0097     ],
0098     scripts=[
0099         "templates/bin/panda_jedi-renice",
0100         "templates/bin/panda_harvester-sqlite3backup",
0101     ],
0102 )