Blame view

setup.py 10.7 KB
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.
#
##############################################################################
Łukasz Nowak committed
27
from setuptools import setup, find_packages
Łukasz Nowak committed
28 29
import glob
import os
Łukasz Nowak committed
30

Alain Takoudjou committed
31
version = '1.0.92'
Łukasz Nowak committed
32
name = 'slapos.cookbook'
Rafael Monnerat committed
33 34
long_description = open("README.rst").read() + "\n" + \
    open("CHANGES.rst").read() + "\n"
Łukasz Nowak committed
35

Rafael Monnerat committed
36
for f in sorted(glob.glob(os.path.join('slapos', 'recipe', 'README.*.rst'))):
Łukasz Nowak committed
37
  long_description += '\n' + open(f).read() + '\n'
Łukasz Nowak committed
38

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