software.cfg 10.2 KB
Newer Older
1 2 3 4
[buildout]

extends =
  ../../component/bcrypt/buildout.cfg
5
  ../../component/python-cliff/buildout.cfg
6
  ../../component/curl/buildout.cfg
7
  ../../component/openssl/buildout.cfg
8
  ../../component/git/buildout.cfg
9
  ../../component/faketime/buildout.cfg
10 11
  ../../component/pillow/buildout.cfg
  ../../component/python-cryptography/buildout.cfg
12
  ../../component/python-mysqlclient/buildout.cfg
13
  ../../component/python-pynacl/buildout.cfg
14
  ../../component/python-backports-lzma/buildout.cfg
15 16

  ../../stack/slapos.cfg
17
  ../../stack/nxdtest.cfg
18
  ../../stack/caucase/buildout.cfg
19 20 21 22

  ./buildout.hash.cfg

parts =
23
  eggs/scripts
24
  slapos-cookbook
25 26
  template

27 28
shared-part-list =

29 30 31
[setup-develop-egg]
recipe = zc.recipe.egg:develop

32 33
[slapos.cookbook-setup]
<= setup-develop-egg
34
egg = slapos.cookbook[test]
35 36
setup = ${slapos-repository:location}/

37 38 39 40 41
[slapos.test.backupserver-setup]
<= setup-develop-egg
egg = slapos.test.backupserver
setup = ${slapos-repository:location}/software/backupserver/test/

42 43 44 45 46 47 48 49 50 51
[slapos.test.caddy-frontend-setup]
<= setup-develop-egg
egg = slapos.test.caddy-frontend
setup = ${slapos-repository:location}/software/caddy-frontend/test/

[slapos.test.erp5-setup]
<= setup-develop-egg
egg = slapos.test.erp5
setup = ${slapos-repository:location}/software/erp5/test/

52 53 54 55 56
[slapos.test.upgrade_erp5-setup]
<= setup-develop-egg
egg = slapos.test.upgrade_erp5
setup = ${slapos-repository:location}/software/erp5/upgrade_test/

57 58 59 60 61
[slapos.test.htmlvalidatorserver-setup]
<= setup-develop-egg
egg = slapos.test.htmlvalidatorserver
setup = ${slapos-repository:location}/software/htmlvalidatorserver/test/

62 63 64 65 66
[slapos.test.slapos-master-setup]
<= setup-develop-egg
egg = slapos.test.slapos-master
setup = ${slapos-repository:location}/software/slapos-master/test/

67 68 69 70 71
[slapos.test.jstestnode-setup]
<= setup-develop-egg
egg = slapos.test.jstestnode
setup = ${slapos-repository:location}/software/jstestnode/test/

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 102 103 104 105 106 107 108 109 110 111
[slapos.test.kvm-setup]
<= setup-develop-egg
egg = slapos.test.kvm
setup = ${slapos-repository:location}/software/kvm/test/

[slapos.test.monitor-setup]
<= setup-develop-egg
egg = slapos.test.monitor
setup = ${slapos-repository:location}/software/monitor/test/

[slapos.test.plantuml-setup]
<= setup-develop-egg
egg = slapos.test.plantuml
setup = ${slapos-repository:location}/software/plantuml/test/

[slapos.test.powerdns-setup]
<= setup-develop-egg
egg = slapos.test.powerdns
setup = ${slapos-repository:location}/software/powerdns/test/

[slapos.test.proftpd-setup]
<= setup-develop-egg
egg = slapos.test.proftpd
setup = ${slapos-repository:location}/software/proftpd/test/

[slapos.test.re6stnet-setup]
<= setup-develop-egg
egg = slapos.test.re6stnet
setup = ${slapos-repository:location}/software/re6stnet/test/

[slapos.test.seleniumserver-setup]
<= setup-develop-egg
egg = slapos.test.seleniumserver
setup = ${slapos-repository:location}/software/seleniumserver/test/

[slapos.test.slaprunner-setup]
<= setup-develop-egg
egg = slapos.test.slaprunner
setup = ${slapos-repository:location}/software/slaprunner/test/

112 113 114 115 116
[slapos.test.metabase-setup]
<= setup-develop-egg
egg = slapos.test.metabase
setup = ${slapos-repository:location}/software/metabase/test/

117 118 119 120 121
[slapos.test.fluentd-setup]
<= setup-develop-egg
egg = slapos.test.fluentd
setup = ${slapos-repository:location}/software/fluentd/test/

122 123 124 125 126
[slapos.test.helloworld-setup]
<= setup-develop-egg
egg = slapos.test.helloworld
setup = ${slapos-repository:location}/software/helloworld/test/

127 128 129 130 131
[slapos.test.html5as-setup]
<= setup-develop-egg
egg = slapos.test.html5as
setup = ${slapos-repository:location}/software/html5as/test/

132 133 134 135 136
[slapos.test.html5as-base-setup]
<= setup-develop-egg
egg = slapos.test.html5asbase
setup = ${slapos-repository:location}/software/html5as-base/test/

137 138 139 140 141
[slapos.test.jupyter-setup]
<= setup-develop-egg
egg = slapos.test.jupyter
setup = ${slapos-repository:location}/software/jupyter/test/

142 143 144 145 146
[slapos.test.nextcloud-setup]
<= setup-develop-egg
egg = slapos.test.nextcloud
setup = ${slapos-repository:location}/software/nextcloud/test/

147 148
[slapos.test.turnserver-setup]
<= setup-develop-egg
149
egg = slapos.test.turnserver
150 151
setup = ${slapos-repository:location}/software/turnserver/test/

152 153 154 155 156
[slapos.test.theia-setup]
<= setup-develop-egg
egg = slapos.test.theia
setup = ${slapos-repository:location}/software/theia/test/

157 158 159 160 161
[slapos.test.grafana-setup]
<= setup-develop-egg
egg = slapos.test.grafana
setup = ${slapos-repository:location}/software/grafana/test/

162 163 164 165 166
[slapos.test.gitlab-setup]
<= setup-develop-egg
egg = slapos.test.gitlab
setup = ${slapos-repository:location}/software/gitlab/test/

167 168 169 170 171
[slapos.test.cloudooo-setup]
<= setup-develop-egg
egg = slapos.test.cloudooo
setup = ${slapos-repository:location}/software/cloudooo/test/

172 173 174 175 176
[slapos.test.dream-setup]
<= setup-develop-egg
egg = slapos.test.dream
setup = ${slapos-repository:location}/software/dream/test/

177 178 179 180 181
[slapos.test.repman-setup]
<= setup-develop-egg
egg = slapos.test.repman
setup = ${slapos-repository:location}/software/repman/test/

182 183 184 185 186
[slapos.test.jscrawler-setup]
<= setup-develop-egg
egg = slapos.test.jscrawler
setup = ${slapos-repository:location}/software/jscrawler/test/

187 188
[slapos.core-repository]
<= git-clone-repository
189
repository = https://lab.nexedi.com/nexedi/slapos.core.git
190 191
branch = master

Łukasz Nowak's avatar
Łukasz Nowak committed
192 193 194 195 196
[slapos.test.caucase-setup]
<= setup-develop-egg
egg = slapos.test.caucase
setup = ${slapos-repository:location}/software/caucase/test/

197 198 199 200 201
[slapos.core-setup]
<= setup-develop-egg
egg = slapos.core
setup = ${slapos.core-repository:location}

202 203 204
[python-interpreter]
eggs += ${:extra-eggs}
extra-eggs =
205
  ${python-cliff:egg}
206 207
  ${lxml-python:egg}
  ${slapos.core-setup:egg}
208
  ${pillow-python:egg}
209
  erp5.util
210 211
  ${python-pynacl:egg}
  ${python-cryptography:egg}
212
  ${python-mysqlclient:egg}
213
  ${backports.lzma:egg}
214
  ${bcrypt:egg}
215
  slapos.libnetworkcache
216
  supervisor
217
  ${slapos.cookbook-setup:egg}
218
  ${slapos.test.backupserver-setup:egg}
219 220
  ${slapos.test.caddy-frontend-setup:egg}
  ${slapos.test.erp5-setup:egg}
221
  ${slapos.test.upgrade_erp5-setup:egg}
222
  ${slapos.test.htmlvalidatorserver-setup:egg}
223
  ${slapos.test.slapos-master-setup:egg}
224
  ${slapos.test.jstestnode-setup:egg}
225 226 227 228 229 230 231
  ${slapos.test.kvm-setup:egg}
  ${slapos.test.monitor-setup:egg}
  ${slapos.test.powerdns-setup:egg}
  ${slapos.test.proftpd-setup:egg}
  ${slapos.test.re6stnet-setup:egg}
  ${slapos.test.seleniumserver-setup:egg}
  ${slapos.test.slaprunner-setup:egg}
232
  ${slapos.test.jupyter-setup:egg}
233
  ${slapos.test.nextcloud-setup:egg}
234
  ${slapos.test.turnserver-setup:egg}
235
  ${slapos.test.theia-setup:egg}
236
  ${slapos.test.cloudooo-setup:egg}
237
  ${slapos.test.dream-setup:egg}
238
  ${slapos.test.metabase-setup:egg}
239
  ${slapos.test.repman-setup:egg}
Łukasz Nowak's avatar
Łukasz Nowak committed
240
  ${slapos.test.caucase-setup:egg}
241
  ${slapos.test.jscrawler-setup:egg}
242
  ${slapos.test.html5as-setup:egg}
243
  ${slapos.test.html5as-base-setup:egg}
244
  ${slapos.test.fluentd-setup:egg}
245 246 247 248 249

# We don't name this interpreter `python`, so that when we run slapos node
# software, installation scripts running `python` use a python without any
# custom eggs pre-installed, not our special python interpreter.
interpreter = python_for_test
250

Gabriel Monnerat's avatar
Gabriel Monnerat committed
251 252 253 254 255
# patches for eggs
patch-binary = ${patch:location}/bin/patch
PyPDF2-patches = ${:_profile_base_location_}/../../component/egg-patch/PyPDF2/0001-Custom-implementation-of-warnings.formatwarning-remo.patch#d25bb0f5dde7f3337a0a50c2f986f5c8
PyPDF2-patch-options = -p1

256 257
[eggs/scripts]
recipe = zc.recipe.egg
258
eggs = ${python-interpreter:eggs}
259 260 261 262
scripts =
  slapos
  supervisord

263 264 265 266 267 268 269 270 271 272 273
[git-clone-repository]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
forbid-download-cache = true

[slapos-repository]
<= git-clone-repository
repository = https://lab.nexedi.com/nexedi/slapos.git
branch = master

[template]
274 275
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
276
extensions = jinja2.ext.do
277
rendered = ${buildout:directory}/template.cfg
278
mode = 640
279 280
context =
  section buildout buildout
281
  import os os
282
  key nxdtest_instance nxdtest-instance.cfg:rendered
283 284
  key git_location git:location
  key slapos_location slapos-repository:location
285
  key interpreter python-interpreter:interpreter
286
  key curl_location curl:location
287
  key openssl_location openssl-output:bin
288
  key faketime_location faketime:location
289
  key tests :tests
290

291
tests =
292
  json-schemas ${slapos.cookbook-setup:setup}
293 294 295 296 297
# The following list is for SR that work with either Python 2 and 3
# (as main Python). The test egg must supply a URL which depends on
# the version of Python that is used to run the test.
# Due to a bug in the way promises are run, we may also list some Py3-only SR
# here, to check there's no promise issue when slapos node runs with Python 2.
298
  fluentd ${slapos.test.fluentd-setup:setup}
299 300 301
  kvm ${slapos.test.kvm-setup:setup}
  slaprunner ${slapos.test.slaprunner-setup:setup}
  metabase ${slapos.test.metabase-setup:setup}
302
###
303
  ${:extra}
304

305
extra =
306 307
# WARNING: This is for SR that only support Python 2.
#          You should not add more lines here.
308 309 310
  backupserver ${slapos.test.backupserver-setup:setup}
  caddy-frontend ${slapos.test.caddy-frontend-setup:setup}
  erp5 ${slapos.test.erp5-setup:setup}
311
  upgrade_erp5 ${slapos.test.upgrade_erp5-setup:setup}
312 313 314 315 316 317 318 319 320 321 322 323
  htmlvalidatorserver ${slapos.test.htmlvalidatorserver-setup:setup}
  slapos-master ${slapos.test.slapos-master-setup:setup}
  re6stnet ${slapos.test.re6stnet-setup:setup}
  seleniumserver ${slapos.test.seleniumserver-setup:setup}
  jstestnode ${slapos.test.jstestnode-setup:setup}
  nextcloud ${slapos.test.nextcloud-setup:setup}
  turnserver ${slapos.test.turnserver-setup:setup}
  theia ${slapos.test.theia-setup:setup}
  grafana ${slapos.test.grafana-setup:setup}
  gitlab ${slapos.test.gitlab-setup:setup}
  cloudooo ${slapos.test.cloudooo-setup:setup}
  dream ${slapos.test.dream-setup:setup}
Łukasz Nowak's avatar
Łukasz Nowak committed
324
  caucase ${slapos.test.caucase-setup:setup}
325
  jscrawler ${slapos.test.jscrawler-setup:setup}
326
  html5as ${slapos.test.html5as-setup:setup}
327
  html5as-base ${slapos.test.html5as-base-setup:setup}
328 329

[versions]
330 331
# slapos.core is used from the clone always
slapos.core =
332 333 334 335 336 337 338 339
# Various needed versions
Pillow = 5.3.0
PyNaCl = 1.3.0
bcrypt = 3.1.4
forcediphttpsadapter = 1.0.1
httplib2 = 0.11.3
image = 1.5.25
paramiko = 2.4.2
340
plantuml = 0.3.0
341 342 343 344
pysftp = 0.2.9
requests-toolbelt = 0.8.0
selenium = 3.141.0

Gabriel Monnerat's avatar
Gabriel Monnerat committed
345 346 347
# Patched eggs
PyPDF2 = 1.26.0+SlapOSPatched001

348 349 350
# Django 1.11 is python 2 compatible
Django = 1.11

351 352
mock = 2.0.0
testfixtures = 6.11
353
funcsigs = 1.0.2
354 355 356
mysqlclient = 1.3.12
pexpect = 4.8.0
ptyprocess = 0.6.0
357
typing = 3.7.4.3