-
Notifications
You must be signed in to change notification settings - Fork 11
/
buildout.cfg
79 lines (73 loc) · 2.22 KB
/
buildout.cfg
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[buildout]
extends = https://raw.github.com/collective/buildout.plonetest/master/test-4.x.cfg
https://raw.github.com/collective/buildout.plonetest/master/qa.cfg
extensions +=
buildout.dumprequirements
buildout.dumppickedversions
dump-requirements-file = ${buildout:directory}/docs/rtd-requirements.txt
package-name = collective.easyform
package-extras = [test,recaptcha]
package-src = collective
eggs =
Products.PrintingMailHost
# plone.app.multilingual[dexterity,archetypes]==1.2.1
# plone.multilingual==1.2
${buildout:package-name}${buildout:package-extras}
parts +=
createcoverage
coverage-sh
i18ndude
python-validation-sh
translate
sphinxbuilder
pybot
[code-analysis]
find-untranslated = True
flake8-max-complexity = 12
deprecated-aliases = True
utf8-header = True
clean-lines = True
prefer-single-quotes = True
pep3101 = True
imports = True
debug-statements = True
i18ndude-bin = ${buildout:bin-directory}/i18ndude
directory = ${buildout:directory}/collective
[i18ndude]
recipe = zc.recipe.egg
[translate]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
domain=${buildout:package-name}
package=`echo "$domain"|tr '.' '/'`
locales=$package/locales
${buildout:directory}/bin/i18ndude rebuild-pot --pot $locales/$domain.pot --create $domain $package
${buildout:directory}/bin/i18ndude sync --pot $locales/$domain.pot $locales/*/LC_MESSAGES/$domain.po
${buildout:directory}/bin/i18ndude sync --pot $locales/plone.pot $locales/*/LC_MESSAGES/plone.po
output = ${buildout:directory}/bin/translate
mode = 755
[sphinxbuilder]
recipe = collective.recipe.sphinxbuilder
eggs =
${instance:eggs}
sphinxcontrib-robotdoc
sphinxcontrib-httpdomain
source = ${buildout:directory}/docs
[versions]
#Sphinx =
#robotframework = 2.8.4
#robotframework-selenium2library = 1.5.0
#robotsuite = 1.5.0
selenium =
Pygments = 2.0.2
#docutils = 0.11
[pybot]
recipe = zc.recipe.egg
eggs =
plone.app.robotframework
${instance:eggs}
scripts = pybot=updatedocsimages
initialization =
import sys
sys.argv.extend(['-d', '${buildout:directory}/docs/images', '-r', 'NONE', '-l', 'NONE', '-o', 'NONE', '${buildout:directory}/collective/easyform/tests/robot/tests.robot'])