setup.py 9.44 KB
Newer Older
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
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
##############################################################################
#
# Copyright (c) 2010-2013 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
##############################################################################
27
from setuptools import setup, find_packages
28 29
import glob
import os
30

31
version = '1.0.197'
32
name = 'slapos.cookbook'
Julien Muchembled's avatar
Julien Muchembled committed
33
long_description = open("README.rst").read()
34

35
for f in sorted(glob.glob(os.path.join('slapos', 'recipe', 'README.*.rst'))):
36
  long_description += '\n' + open(f).read() + '\n'
37

38 39 40 41 42
extras_require = {
    'test': (
        'jsonschema',
        'mock',
        'testfixtures',
43
        'requests',
44 45 46
    ),
}

47 48
setup(name=name,
      version=version,
49
      description="SlapOS recipes.",
50 51 52 53 54
      long_description=long_description,
      classifiers=[
          "Framework :: Buildout :: Recipe",
          "Programming Language :: Python",
        ],
55 56 57
      maintainer="Nexedi",
      maintainer_email="info@nexedi.com",
      url="https://lab.nexedi.com/nexedi/slapos",
Łukasz Nowak's avatar
Łukasz Nowak committed
58
      keywords='slapos recipe',
59 60 61 62 63
      license='GPLv3',
      namespace_packages=['slapos', 'slapos.recipe'],
      packages=find_packages(),
      include_package_data=True,
      install_requires=[
64
        'enum34; python_version<"3.4"',  # for inotify-simple
65
        'jsonschema',
66
        'hexagonit.recipe.download',
67
        'netaddr', # to manipulate on IP addresses
68
        'setuptools', # namespaces
Julien Muchembled's avatar
Julien Muchembled committed
69
        'inotify_simple',
70
        'lock_file', #another lockfile implementation for multiprocess
71
        'slapos.core', # uses internally
72 73
        'zc.buildout', # plays with buildout
        'zc.recipe.egg', # for scripts generation
74
        'pytz', # for timezone database
75 76
        ],
      zip_safe=True,
77 78
      entry_points={
        'zc.buildout': [
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
79
          'addresiliency = slapos.recipe.addresiliency:Recipe',
80
          'accords = slapos.recipe.accords:Recipe',
81
          'apacheperl = slapos.recipe.apacheperl:Recipe',
Antoine Catton's avatar
Antoine Catton committed
82
          'apachephp = slapos.recipe.apachephp:Recipe',
83
          'apachephpconfigure = slapos.recipe.apachephpconfigure:Recipe',
Antoine Catton's avatar
Antoine Catton committed
84
          'apacheproxy = slapos.recipe.apacheproxy:Recipe',
85
          'certificate_authority = slapos.recipe.certificate_authority:Recipe',
86 87
          'certificate_authority.request = slapos.recipe.certificate_authority:Request',
          'check_page_content = slapos.recipe.check_page_content:Recipe',
88
          'check_port_listening = slapos.recipe.check_port_listening:Recipe',
89
          'check_url_available = slapos.recipe.check_url_available:Recipe',
90
          'check_parameter = slapos.recipe.check_parameter:Recipe',
91
          'cloud9 = slapos.recipe.cloud9:Recipe',
92
          'cloudooo.test = slapos.recipe.erp5_test:CloudoooRecipe',
93
          'condor = slapos.recipe.condor:Recipe',
94
          'condor.submit = slapos.recipe.condor:AppSubmit',
95
          'copyfilelist = slapos.recipe.copyfilelist:Recipe',
96
          'cron = slapos.recipe.dcron:Recipe',
97
          'cron.d = slapos.recipe.dcron:Part',
98
          'davstorage = slapos.recipe.davstorage:Recipe',
99
          'dropbear = slapos.recipe.dropbear:Recipe',
100
          'dropbear.add_authorized_key = slapos.recipe.dropbear:AddAuthorizedKey',
101
          'dropbear.client = slapos.recipe.dropbear:Client',
Antoine Catton's avatar
Antoine Catton committed
102
          'equeue = slapos.recipe.equeue:Recipe',
103
          'erp5.promise = slapos.recipe.erp5_promise:Recipe',
104 105
          'erp5scalabilitytestbed = slapos.recipe.erp5scalabilitytestbed:Recipe',
          'erp5testnode = slapos.recipe.erp5testnode:Recipe',
106
          'free_port = slapos.recipe.free_port:Recipe',
107 108
          'generate.mac = slapos.recipe.random:Mac',
          'generate.password = slapos.recipe.random:Password',
109
          'generic.cloudooo = slapos.recipe.generic_cloudooo:Recipe',
110 111
          'generic.kumofs = slapos.recipe.generic_kumofs:Recipe',
          'generic.memcached = slapos.recipe.generic_memcached:Recipe',
112
          'generic.mysql.wrap_update_mysql = slapos.recipe.generic_mysql:WrapUpdateMySQL',
113
          'generic.varnish = slapos.recipe.generic_varnish:Recipe',
114
          'gitinit = slapos.recipe.gitinit:Recipe',
115
          'haproxy = slapos.recipe.haproxy:Recipe',
116 117
          'ipv4toipv6 = slapos.recipe.6tunnel:FourToSix',
          'ipv6toipv4 = slapos.recipe.6tunnel:SixToFour',
118
          'jsondump = slapos.recipe.jsondump:Recipe',
119
          'kvm.frontend = slapos.recipe.kvm_frontend:Recipe',
120
          'logrotate = slapos.recipe.logrotate:Recipe',
121
          'logrotate.d = slapos.recipe.logrotate:Part',
122
          'mkdirectory = slapos.recipe.mkdirectory:Recipe',
123
          'mioga.instantiate = slapos.recipe.mioga.instantiate:Recipe',
124
          'nbdserver = slapos.recipe.nbdserver:Recipe',
125
          'neoppod.cluster = slapos.recipe.neoppod:Cluster',
126 127 128
          'neoppod.admin = slapos.recipe.neoppod:Admin',
          'neoppod.master = slapos.recipe.neoppod:Master',
          'neoppod.storage = slapos.recipe.neoppod:Storage',
129
          'nosqltestbed = slapos.recipe.nosqltestbed:NoSQLTestBed',
130
          'notifier = slapos.recipe.notifier:Recipe',
Antoine Catton's avatar
Antoine Catton committed
131 132
          'notifier.callback = slapos.recipe.notifier:Callback',
          'notifier.notify = slapos.recipe.notifier:Notify',
133
          'novnc = slapos.recipe.novnc:Recipe',
134
          'onetimeupload = slapos.recipe.onetimeupload:Recipe',
135
          'pbs = slapos.recipe.pbs:Recipe',
136
          'postgres = slapos.recipe.postgres:Recipe',
137
          'proactive = slapos.recipe.proactive:Recipe',
138
          'promise.plugin= slapos.recipe.promise_plugin:Recipe',
Łukasz Nowak's avatar
Łukasz Nowak committed
139
          'publish = slapos.recipe.publish:Recipe',
140
          'publish.serialised = slapos.recipe.publish:Serialised',
141
          'publish-early = slapos.recipe.publish_early:Recipe',
142
          'publishsection = slapos.recipe.publish:PublishSection',
143
          'publishurl = slapos.recipe.publishurl:Recipe',
144
          'random.time = slapos.recipe.random:Time',
145
          'random.integer = slapos.recipe.random:Integer',
146
          'readline = slapos.recipe.readline:Recipe',
147
          'redis.server = slapos.recipe.redis:Recipe',
148
          'request = slapos.recipe.request:Recipe',
149
          'request.serialised = slapos.recipe.request:RequestJSONEncoded',
150
          'request.edge = slapos.recipe.request:RequestEdge',
151
          'requestoptional = slapos.recipe.request:RequestOptional',
152 153
          'requestoptional.serialised = '
          'slapos.recipe.request:RequestOptionalJSONEncoded',
154
          're6stnet.registry = slapos.recipe.re6stnet:Recipe',
155
          'reverseproxy.nginx = slapos.recipe.reverse_proxy_nginx:Recipe',
156
          'sheepdogtestbed = slapos.recipe.sheepdogtestbed:SheepDogTestBed',
157 158
          'shell = slapos.recipe.shell:Recipe',
          'signalwrapper= slapos.recipe.signal_wrapper:Recipe',
159
          'simplelogger = slapos.recipe.simplelogger:Recipe',
160
          'simplehttpserver = slapos.recipe.simplehttpserver:Recipe',
161
          'slapconfiguration = slapos.recipe.slapconfiguration:Recipe',
162
          'slapconfiguration.serialised = slapos.recipe.slapconfiguration:Serialised',
163
          'slapconfiguration.jsondump = slapos.recipe.slapconfiguration:JsonDump',
Antoine Catton's avatar
Antoine Catton committed
164
          'slapcontainer = slapos.recipe.container:Recipe',
165
          'softwaretype = slapos.recipe.softwaretype:Recipe', # BBB
Romain Courteaud's avatar
Romain Courteaud committed
166
          'sphinx= slapos.recipe.sphinx:Recipe',
167
          'squid = slapos.recipe.squid:Recipe',
168
          'sshkeys_authority = slapos.recipe.sshkeys_authority:Recipe',
169
          'sshkeys_authority.request = slapos.recipe.sshkeys_authority:Request',
170
          'stunnel = slapos.recipe.stunnel:Recipe',
171
          'switch-softwaretype = slapos.recipe.switch_softwaretype:Recipe',
172 173
          'symbolic.link = slapos.recipe.symbolic_link:Recipe',
          'tidstorage = slapos.recipe.tidstorage:Recipe',
174
          'trac = slapos.recipe.trac:Recipe',
175
          'urlparse = slapos.recipe._urlparse:Recipe',
176
          'uuid = slapos.recipe._uuid:Recipe',
177
          'userinfo = slapos.recipe.userinfo:Recipe',
178
          'webchecker = slapos.recipe.web_checker:Recipe',
Antoine Catton's avatar
Antoine Catton committed
179
          'wrapper = slapos.recipe.wrapper:Recipe',
180
          'zabbixagent = slapos.recipe.zabbixagent:Recipe',
181
          'zimbra.kvm = slapos.recipe.zimbra_kvm:Recipe',
Łukasz Nowak's avatar
Łukasz Nowak committed
182
          'zeo = slapos.recipe.zeo:Recipe',
183 184
          'zero-knowledge.read = slapos.recipe.zero_knowledge:ReadRecipe',
          'zero-knowledge.write = slapos.recipe.zero_knowledge:WriteRecipe'
185 186 187 188 189
        ],
        'slapos.recipe.nosqltestbed.plugin': [
          'kumo = slapos.recipe.nosqltestbed.kumo:KumoTestBed',
        ],
      },
190
      extras_require=extras_require,
191
      test_suite='slapos.test',
192
      tests_require=extras_require['test'],
193
    )