setup.py 5.42 KB
Newer Older
1 2 3 4
from setuptools import setup, find_packages
import glob
import os

Alain Takoudjou's avatar
Alain Takoudjou committed
5
version = '0.88'
6
name = 'slapos.toolbox'
7
long_description = open("README.rst").read() + "\n"
8

9
for f in sorted(glob.glob(os.path.join('slapos', 'README.*.rst'))):
10 11
  long_description += '\n' + open(f).read() + '\n'

12 13
long_description += open("CHANGES.txt").read() + "\n"

14 15 16 17 18 19 20
# Provide a way to install additional requirements
additional_install_requires = []
try:
  import argparse
except ImportError:
  additional_install_requires.append('argparse')

21 22 23 24 25 26 27 28 29 30 31 32
setup(name=name,
      version=version,
      description="SlapOS toolbox.",
      long_description=long_description,
      classifiers=[
          "Programming Language :: Python",
        ],
      keywords='slapos toolbox',
      license='GPLv3',
      namespace_packages=['slapos'],
      packages=find_packages(),
      include_package_data=True,
33 34 35
      maintainer="Nexedi",
      maintainer_email="info@nexedi.com",
      url="https://lab.nexedi.com/nexedi/slapos.toolbox",
36 37
      install_requires=[
        'Flask', # needed by servers
Antoine Catton's avatar
Antoine Catton committed
38 39
        'atomize', # needed by pubsub
        'feedparser', # needed by pubsub
40
        'apache_libcloud>=0.4.0', # needed by cloudmgr
41
        'lockfile', # used by equeue
42 43 44 45 46 47
        'lxml', # needed for xml parsing
        'paramiko', # needed by cloudmgr
        'psutil', # needed for playing with processes in portable way
        'setuptools', # namespaces
        'slapos.core', # as it provides library for slap
        'xml_marshaller', # needed to dump information
48
        'GitPython', #needed for git manipulation into slaprunner
49 50
        'croniter', # needed to know cron schedule
        'pytz', # needed to manipulate timezone
51
        'tzlocal', # needed to manipulate timezone
52
        'passlib',
53
        'netifaces',
54
        'erp5.util',
55
        'PyRSS2Gen',
56
        'dnspython',
57
        'requests',
58
        'jsonschema',
59
        'zc.buildout',
60
        'pycurl',
61
      ] + additional_install_requires,
62
      extras_require = {
63
        'lampconfigure':  ["mysqlclient"], #needed for MySQL Database access
64
        'zodbpack': ['ZODB3'], # needed to play with ZODB
65
        'flask_auth' : ["Flask-Auth"],
66
      },
67 68 69
      tests_require = [
        'mock',
      ],
70 71 72 73
      zip_safe=False, # proxy depends on Flask, which has issues with
                      # accessing templates
      entry_points={
        'console_scripts': [
74
          'agent = slapos.agent.agent:main',
75
          'apache-mpm-watchdog = slapos.promise.apache_mpm_watchdog:main',
76
          'check-computer-memory = slapos.promise.check_computer_memory:main',
77
          'check-web-page-http-cache-hit = slapos.promise.check_web_page_http_cache_hit:main',
78
          'check-feed-as-promise = slapos.checkfeedaspromise:main',
79 80
          'check-apachedex-result = slapos.promise.check_apachedex_result:main',
          'check-slow-queries-digest-result = slapos.promise.check_slow_queries_digest_result:main',
81 82 83 84 85 86 87
          'clouddestroy = slapos.cloudmgr.destroy:main',
          'cloudgetprivatekey = slapos.cloudmgr.getprivatekey:main',
          'cloudgetpubliciplist = slapos.cloudmgr.getpubliciplist:main',
          'cloudlist = slapos.cloudmgr.list:main',
          'cloudmgr = slapos.cloudmgr.cloudmgr:main',
          'cloudstart = slapos.cloudmgr.start:main',
          'cloudstop = slapos.cloudmgr.stop:main',
88
          'equeue = slapos.equeue:main',
89
          'generatefeed = slapos.generatefeed:main',
90
          'htpasswd = slapos.htpasswd:main',
91
          'is-local-tcp-port-opened = slapos.promise.is_local_tcp_port_opened:main',
92
          'is-process-older-than-dependency-set = slapos.promise.is_process_older_than_dependency_set:main',
93
          'killpidfromfile = slapos.systool:killpidfromfile', # BBB
94 95
          'monitor.bootstrap = slapos.monitor.monitor:main',
          'monitor.collect = slapos.monitor.collect:main',
96
          'monitor.statistic = slapos.monitor.build_statistic:main',
97 98
          'monitor.runpromise = slapos.monitor.runpromise:main',
          'monitor.genstatus = slapos.monitor.globalstate:main',
99
          'monitor.configwrite = slapos.monitor.monitor_config_write:main',
100 101
          'runResiliencyUnitTestTestNode = slapos.resiliencytest:runUnitTest',
          'runResiliencyScalabilityTestNode = slapos.resiliencytest:runResiliencyTest',
Hardik Juneja's avatar
Hardik Juneja committed
102
          'runApacheDex = slapos.apachedex:main',
103
          'lampconfigure = slapos.lamp:run [lampconfigure]',
Nicolas Delaby's avatar
Nicolas Delaby committed
104
          'onetimedownload = slapos.onetimedownload:main',
105 106 107
          'onetimeupload = slapos.onetimeupload:main',
          'pubsubnotifier = slapos.pubsub.notifier:main',
          'pubsubserver = slapos.pubsub:main',
108
          'qemu-qmp-client = slapos.qemuqmpclient:main',
109
          'rdiffbackup.genstatrss = slapos.resilient.rdiffBackupStat2RSS:main',
110
          'runner-exporter = slapos.resilient.runner_exporter:runExport',
111
          'runner-importer-post-notification-run = slapos.resilient.runner_importer:postNotificationRun',
112
          'backup-identity-script-excluding-path = slapos.resilient.identity_script_excluding_path:calculateSignature',
113
          'securedelete = slapos.securedelete:main',
114
          'slapos-kill = slapos.systool:kill',
115
          'slaprunnertest = slapos.runner.runnertest:main',
116
          'slaprunnerteststandalone = slapos.runner.runnertest:runStandaloneUnitTest',
117
          'zodbpack = slapos.zodbpack:run [zodbpack]',
118 119
          'networkbench = slapos.networkbench:main',
          'cachechecker = slapos.cachechecker:web_checker_utility'
120 121
        ]
      },
122
      test_suite='slapos.test',
Rafael Monnerat's avatar
Rafael Monnerat committed
123
    )