~allenap/maas/pserv-app-logging

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
[buildout]
parts =
  flake8
  maas
  maas-test
  pserv
  pserv-test
  repl
  sphinx
extends = versions.cfg
versions = versions
include-site-packages = false
# Don't always check for newer packages; use `bin/buildout -n` to
# override this and check explicitly.
newest = false

[common]
extra-paths =
  ${buildout:directory}/src
  ${buildout:directory}
test-eggs =
  coverage
  fixtures
  nose
  nose-subunit
  python-subunit
  testresources
  testtools

[maas]
recipe = zc.recipe.egg
eggs =
  ${common:test-eggs}
  django
  django-debug-toolbar
  django-nose
  django-piston
  docutils
  oauth
  oops
  oops-datedir-repo
  oops-wsgi
  psycopg2
  rabbitfixture
  South
entry-points =
  maas=django.core.management:execute_from_command_line
initialization =
  from os import environ
  environ.setdefault("DJANGO_SETTINGS_MODULE", "maas.development")
scripts = maas
extra-paths =
  ${common:extra-paths}

[maas-test]
recipe = zc.recipe.egg
eggs =
  ${maas:eggs}
entry-points =
  test.maas=django.core.management:execute_from_command_line
initialization =
  ${maas:initialization}
  sys.argv[1:1] = ["test", "--exclude=provisioningserver"]
scripts = test.maas
extra-paths =
  ${maas:extra-paths}

[pserv]
recipe = zc.recipe.egg
eggs =
  formencode
  oops-datedir-repo
  oops-twisted
  pyyaml
  twisted
  txamqp
entry-points =
  twistd.pserv=twisted.scripts.twistd:run
extra-paths = ${common:extra-paths}
scripts =
  twistd.pserv

[pserv-test]
recipe = zc.recipe.egg
eggs =
  ${pserv:eggs}
  ${common:test-eggs}
  rabbitfixture
entry-points =
  test.pserv=nose.core:TestProgram
initialization =
  sys.argv[1:1] = ["--where=src/provisioningserver"]
extra-paths = ${common:extra-paths}
scripts =
  test.pserv

[flake8]
recipe = zc.recipe.egg
eggs =
  flake8
entry-points =
  flake8=flake8.run:main

[sphinx]
recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/docs
build = ${buildout:directory}/docs/_build
extra-paths = ${common:extra-paths}
eggs =
  ${maas:eggs}
  ${pserv:eggs}

# Convenient REPLs with all eggs available.
[repl]
recipe = z3c.recipe.scripts
eggs =
  ${maas:eggs}
  ${pserv:eggs}
  ${common:test-eggs}
  ipython
extra-paths = ${common:extra-paths}
interpreter = py
scripts = ipython=ipy