-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.cfg
122 lines (94 loc) · 2.72 KB
/
common.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
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
112
113
114
115
116
117
118
119
120
121
122
[buildout]
robot_tests_folder =
sphinx_extras =
versions = versions
[i18ndude]
recipe = zc.recipe.egg
eggs = i18ndude
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
[rebuild_docs-sh]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
cd docs/build
rm -rf doctrees
rm -rf html
make html
cd ../..
output = ${buildout:directory}/bin/rebuild_docs.sh
mode = 755
[rebuild_i18n-sh]
recipe = collective.recipe.template
output = ${buildout:directory}/bin/rebuild_i18n.sh
mode = 755
input = inline:
#! /bin/sh
# see http://maurits.vanrees.org/weblog/archive/2010/10/i18n-plone-4 for more information
I18NDOMAIN="${buildout:package-name}"
# find the locales dir
LOCALES=`find . -type d | grep "${buildout:package-name}" | grep -m 1 "locales"`
SOURCE=`dirname $LOCALES`;
# rebuild pot file for package's domain and merge it with any manual translations needed
bin/i18ndude rebuild-pot --pot $LOCALES/$I18NDOMAIN.pot --create $I18NDOMAIN $SOURCE
bin/i18ndude merge --pot $LOCALES/$I18NDOMAIN.pot --merge $LOCALES/manual.pot
# synchronise translations for package's domain
for po in $LOCALES/*/LC_MESSAGES/$I18NDOMAIN.po; do
bin/i18ndude sync --pot $LOCALES/$I18NDOMAIN.pot $po
done
# rebuild pot file for Plone's domain
bin/i18ndude rebuild-pot --pot $LOCALES/plone.pot --create plone $SOURCE/configure.zcml $SOURCE/profiles/default
# synchronise translations for Plone's domain
for po in $LOCALES/*/LC_MESSAGES/plone.po; do
bin/i18ndude sync --pot $LOCALES/plone.pot $po
done
[releaser]
recipe = zc.recipe.egg:scripts
dependent-scripts = true
eggs =
zest.releaser[recommended]
ps.releaser
${buildout:package-name}
[robot]
recipe = zc.recipe.egg
eggs =
Pillow
${test:eggs}
plone.app.robotframework [reload]
[sphinxbuilder]
recipe = collective.recipe.sphinxbuilder
eggs =
${instance:eggs}
sphinx_rtd_theme
${buildout:sphinx_extras}
source = ${buildout:directory}/docs/source
build = ${buildout:directory}/docs/build
[testnorobot]
<= test
initialization = os.environ['NO_ROBOT'] = '1'
[updatedocsimages]
recipe = zc.recipe.egg
eggs =
Pillow
${test:eggs}
plone.app.robotframework
scripts = pybot=updatedocsimages
initialization =
import sys
sys.argv.extend(['-d', '${buildout:directory}/docs/_images', '-r', 'NONE', '-l', 'NONE', '-o', 'NONE', '${buildout:robot_tests_folder}/test_*.robot'])
[versions]
Sphinx = 1.3.6
collective.recipe.sphinxbuilder = 0.8.2
flake8 = 2.5.2
flake8-coding = 1.2.2
flake8-quotes = 0.1.2
mr.developer =
pygments = 2.1.3
setuptools =
sphinx-rtd-theme = 0.1.9
zc.buildout =
zest.releaser = 6.6.5
[zptlint]
recipe = zc.recipe.egg
eggs = zptlint