forked from plone/plone.volto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.cfg
130 lines (116 loc) · 3.44 KB
/
base.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
123
124
125
126
127
128
129
130
[buildout]
index = https://pypi.org/simple/
parts =
instance
plonesite
# code-analysis (Move to Makefile)
dependencies
zpretty
test
omelette
update-translations
find-untranslated
develop = .
sources-dir = extras
extensions = mr.developer
auto-checkout =
always-checkout = force
[sources]
plone.restapi = git git://github.com/plone/plone.restapi.git [email protected]:plone/plone.restapi.git branch=master
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 8080
eggs =
Plone
Pillow
plone.volto [test]
zcml-additional =
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:plone="http://namespaces.plone.org/plone">
<plone:CORSPolicy
allow_origin="http://localhost:3000,http://127.0.0.1:3000"
allow_methods="DELETE,GET,OPTIONS,PATCH,POST,PUT"
allow_credentials="true"
expose_headers="Content-Length,X-My-Header"
allow_headers="Accept,Authorization,Content-Type,X-Custom-Header,Origin,Lock-Token"
max_age="3600"
/>
</configure>
[plonesite]
recipe = collective.recipe.plonesite
site-id = Plone
instance = instance
profiles-initial = Products.CMFPlone:dependencies
profiles =
plonetheme.barceloneta:default
plone.app.contenttypes:plone-content
plone.volto:default-homepage
upgrade-portal = False
upgrade-all-profiles = False
site-replace = True
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
[test]
recipe = collective.xmltestreport
eggs = ${instance:eggs}
defaults = ['-s', 'plone.volto', '--auto-color', '--auto-progress']
environment = environment
[environment]
ROBOT_SELENIUM2LIBRARY_RUN_ON_FAILURE = Capture page screenshot and log source
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/src
flake8-exclude = bootstrap.py,bootstrap-buildout.py,docs,*.egg.,omelette,plone.*
flake8-max-complexity = 30
flake8-max-line-length = 200
flake8-ignore = E501,W503,E203
return-status-codes = True
pre-commit-hook = True
[dependencies]
recipe = zc.recipe.egg
eggs =
zest.releaser[recommended]
zest.pocompile
readme
docutils
i18ndude
zpretty
[zpretty]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
find src -name '*.zcml' | xargs bin/zpretty -i
output = ${buildout:directory}/bin/zpretty-run
mode = 755
[update-translations]
recipe = collective.recipe.template
input = inline:
domain=plone.volto
maindir=src/plone/volto
locales=$maindir/locales
echo "Update translations for $domain"
if [ ! -f $locales/$domain.pot ]; then
# Create .pot file if it does not exist yet
touch $locales/$domain.pot
fi
if [ ! -f $locales/de/LC_MESSAGES ]; then
# Create de/LC_MESSAGES directory if it does not exist yet
mkdir -p $locales/de/LC_MESSAGES
fi
if [ ! -f $locales/de/LC_MESSAGES/$domain.po ]; then
# Create .po file if it does not exist yet
touch $locales/de/LC_MESSAGES/$domain.po
fi
${buildout:directory}/bin/i18ndude rebuild-pot --pot $locales/$domain.pot --create $domain $maindir
${buildout:directory}/bin/i18ndude sync --pot $locales/$domain.pot $locales/*/LC_MESSAGES/$domain.po
output = ${buildout:directory}/bin/update-translations
mode = 755
[find-untranslated]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
bin/i18ndude find-untranslated `find -L src/plone/volto -regex ".*\.[cz]?pt"`
output = ${buildout:directory}/bin/find-untranslated
mode = 755