forked from hello-josh/appengine-buildout-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildout.cfg
138 lines (126 loc) · 3.54 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
[buildout]
extensions = mr.developer
parts =
gae_sdk
gae_tools
app_lib
local_appserver_deps
nosetests
# order matters so that this python overwrites the one generated by gae_tools until they publish the fix
python
versions = versions
gae-deploy-dir = ${buildout:directory}/app
[versions]
zc.buildout = 2.2.1
zc.recipe.egg = 2.0.1
appfy.recipe.gae = 0.9.4
lxml = 2.3.5
python-dateutil = 1.5
pycrypto = 2.6
jsonpickle = 0.6.1
[app_lib_base]
recipe = appfy.recipe.gae:app_lib
use-zipimport = false
# Generate relative paths for eggs so that the buildout can be moved around.
relative-paths = true
# Don't copy files that match these glob patterns.
ignore-globs =
*.c
*.pyc
*.pyo
*/test*
[local_appserver_deps]
<= app_lib_base
######################################################################
# If you need it locally but not when deployed then it belongs here! #
######################################################################
lib-directory = local_appserver_deps
eggs =
pycrypto
lxml
pillow
[app_lib]
<= app_lib_base
# Sets the library dependencies for the app.
lib-directory = app/dist
# Define the libraries.
eggs =
python-dateutil
gaepytz
jsonpickle
ignore-packages =
lxml
[python]
recipe = zc.recipe.egg:scripts
interpreter = python
initialization =
import sys
sys.path.insert(0, '${buildout:directory}/app/dist')
sys.path.insert(0, '${buildout:directory}/local_appserver_deps')
sys.path.insert(0, '${gae_sdk:destination}/google_appengine')
sys.path.insert(0, '${buildout:directory}/app')
import dev_appserver
dev_appserver.fix_sys_path()
eggs =
extra-paths =
${buildout:gae-deploy-dir}
${app_lib:lib-directory}
${local_appserver_deps:lib-directory}
${gae_sdk:destination}/google_appengine
[gae_sdk]
# Downloads and extracts the App Engine SDK.
recipe = appfy.recipe.gae:sdk
# update this with the latest release
url = https://commondatastorage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.2.zip
destination = ${buildout:parts-directory}
hash-name = false
clear-destination = true
[gae_tools]
# Installs appcfg, dev_appserver and python executables in the bin directory.
recipe = appfy.recipe.gae:tools
sdk-directory = ${gae_sdk:destination}/google_appengine
# Add these paths to sys.path in the generated scripts.
initialization =
import dev_appserver
dev_appserver.fix_sys_path()
extra-paths =
${buildout:gae-deploy-dir}
${buildout:gae-deploy-dir}/dist
${buildout:directory}/local_appserver_deps
[nosetests]
recipe = pbp.recipe.noserunner
eggs =
nosegae
unittest2
webtest
nose
mock
fixture
coverage
nose-exclude
initialization =
import sys
sys.path.insert(0, '${buildout:directory}/app/dist')
sys.path.insert(0, '${buildout:directory}/local_appserver_deps')
sys.path.insert(0, '${gae_sdk:destination}/google_appengine')
sys.path.insert(0, '${buildout:directory}/app')
import dev_appserver
dev_appserver.fix_sys_path()
defaults =
--logging-level=ERROR
--with-gae
--without-sandbox
--no-path-adjustment
--gae-application=${buildout:gae-deploy-dir}
--where=${buildout:gae-deploy-dir}
# uncomment for easily running nose with coverage reports
# --with-coverage
# --cover-html
# --cover-html-dir=${buildout:directory}/build/coverage
# --cover-xml
# --cover-xml-file=${buildout:directory}/build/coverage/coverage.xml
# --cover-package=lib
# --cover-package=handler
# --cover-package=config
# --cover-package=main
# --cover-package=portfolio