forked from senaite/senaite.core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildout.cfg
140 lines (123 loc) · 3.27 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
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
131
132
133
134
135
136
137
138
139
140
# This buildout can be used to obtain a complete test system from scratch:
#
# virtualevnv --no-site-packages .
# source bin/activate
# python bootstrap.py
# bin/buildout
# bin/instance start
#
[buildout]
extends = http://dist.plone.org/release/4.3.17/versions.cfg
versions = versions
develop = .
index = https://pypi.python.org/simple/
find-links =
http://dist.plone.org/release/4.3.17
http://dist.plone.org/thirdparty
parts =
instance
i18ndude
update_translations
write_code_headers
write_contributors
code-analysis
lxml
test
robot
omelette
eggs =
senaite.core
plone.reload
i18ndude
lxml
zcml =
[instance]
recipe = plone.recipe.zope2instance
user = admin:adminsecret
eggs =
${buildout:eggs}
zcml =
${buildout:zcml}
environment-vars =
zope_i18n_compile_mo_files true
[i18ndude]
unzip = true
recipe = zc.recipe.egg
eggs = i18ndude
[update_translations]
recipe = collective.recipe.template
output = ${buildout:directory}/bin/update_translations
input = ${buildout:directory}/templates/update_translations.in
mode = 755
[write_code_headers]
recipe = collective.recipe.template
output = ${buildout:directory}/bin/write_code_headers
input = ${buildout:directory}/templates/write_code_headers.py.in
mode = 755
[write_contributors]
recipe = collective.recipe.template
output = ${buildout:directory}/bin/write_contributors
input = ${buildout:directory}/templates/write_contributors.py.in
mode = 755
# https://github.com/plone/plone.recipe.codeanalysis
[code-analysis]
recipe = plone.recipe.codeanalysis
directory = ${buildout:directory}/senaite/core
pre-commit-hook = False
clean-lines = True
clean-lines-exclude =
**/node_modules/*
find-untranslated = False
i18ndude-bin = ${buildout:bin-directory}/i18ndude
utf8-header = True
deprecated-aliases = True
flake8-extensions =
flake8-blind-except
flake8-coding
flake8-debugger
# http://pep8.readthedocs.io/en/latest/intro.html#error-codes
# E241: multiple spaces after ‘,’
# E301: expected 1 blank line, found 0 (e.g. the class security pattern "security.declare...")
# E501: line too long (82 > 79 characters)
flake8-ignore = E241,E301,E501
multiprocessing = True
return-status-codes = False
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml==3.6.0
force = false
static-build = true
[test]
recipe = zc.recipe.testrunner
defaults = ['--auto-color', '--auto-progress']
eggs =
senaite.core [test]
[robot]
recipe = zc.recipe.egg
eggs =
${buildout:eggs}
plone.app.robotframework
[omelette]
recipe = collective.recipe.omelette
eggs = ${buildout:eggs}
# Please download ipy_profile_zope to ~/.ipython/profile_zope/startup/ipy_profile_zope.py
# https://raw.githubusercontent.com/collective/dotipython/master/ipy_profile_zope.py
# cd ~/.ipython/profile_zope/startup/ && wget https://raw.githubusercontent.com/collective/dotipython/master/ipy_profile_zope.py
# Run ./bin/ipzope
[ipzope]
recipe = zc.recipe.egg
eggs =
ipython
${instance:eggs}
initialization =
import sys, os
os.environ["SOFTWARE_HOME"] = "${instance:location}"
os.environ["INSTANCE_HOME"] = "${instance:location}"
sys.argv[1:1] = "--profile zope".split()
extra-paths =
${instance:location}/lib/python
scripts = ipython=ipzope
[versions]
setuptools=
zc.buildout=2.11.3
five.pt=2.2.4