~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to buildout.cfg

  • Committer: Rick Harding
  • Author(s): Richard Harding
  • Date: 2012-12-06 19:11:38 UTC
  • mfrom: (71.1.5 addbuildout)
  • Revision ID: rick.harding@canonical.com-20121206191138-rnuqrbuv2pe23c57
Add buildout environment support.

WARNING: not all jobs/scripts and code worked so we might be missing deps that
need to be added to the download cache.

Adds buildout with a download-cache. It's a split repo and auto pulls during
installing dependencies. Defaults to locked down and will only install from
download cache. Missing deps need to be added there first and updated in
versions.cfg.

Adds a bunch of new makefile targets for the various buildout segments.

Provides:
- make install - normal dev install with testing and linting tools.
- make deploy - bare install only supporting the pyramid app currently.
- make lint - run linting tools against the codebase.
- make distclean - reset the buildout environment.
- make check - clean, install, and run tests. This should be our jenkins/ci
target.

R=abentley
CC=
https://codereview.appspot.com/6886049

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[buildout]
 
2
parts =
 
3
  develop
 
4
  deploy
 
5
  flake8
 
6
  redis
 
7
  repl
 
8
  sphinx
 
9
extensions =
 
10
    buildout-versions
 
11
buildout_versions_file = versions.cfg
 
12
versions = versions
 
13
extends = versions.cfg
 
14
eggs-directory = eggs
 
15
find-links += http://mypi
 
16
download-cache = download-cache
 
17
relative-paths = true
 
18
install-from-cache = true
 
19
# Since our main deployment target is Ubuntu, all
 
20
# runtime dependencies should come from python packages.
 
21
include-site-packages = true
 
22
allowed-eggs-from-site-packages =
 
23
  bzrlib
 
24
 
 
25
prefer-final = true
 
26
allow-picked-versions = false
 
27
develop = .
 
28
eggs =
 
29
  charmworld
 
30
  configobj
 
31
  launchpadlib
 
32
  pyramid
 
33
  python-dateutil
 
34
  pymongo
 
35
  PyYAML
 
36
  webhelpers
 
37
  xappy
 
38
  venusian
 
39
 
 
40
[pyramid]
 
41
recipe = zc.recipe.egg
 
42
dependent-scripts = true
 
43
eggs =
 
44
  ${buildout:eggs}
 
45
  ipdb
 
46
  ipython
 
47
  mock
 
48
  pyramid_debugtoolbar
 
49
interpreter = py
 
50
scripts =
 
51
  pserve
 
52
  prequest
 
53
  proutes
 
54
  pserve
 
55
  pshell
 
56
  ptweens
 
57
  pviews
 
58
  pyreverse
 
59
test =
 
60
  charmworld
 
61
 
 
62
[deploy]
 
63
recipe = zc.recipe.egg
 
64
dependent-scripts = true
 
65
eggs =
 
66
  ${buildout:eggs}
 
67
interpreter = py
 
68
scripts =
 
69
  pserve = deploy
 
70
 
 
71
[flake8]
 
72
recipe = zc.recipe.egg
 
73
eggs =
 
74
  flake8
 
75
entry-points =
 
76
  flake8=flake8.run:main
 
77
 
 
78
[test]
 
79
recipe = zc.recipe.egg
 
80
eggs =
 
81
  ${pyramid:eggs}
 
82
  coverage
 
83
  nose
 
84
  WebTest
 
85
  mock
 
86
scripts =
 
87
  nosetests
 
88
 
 
89
# Convenient REPLs with all eggs available.
 
90
[repl]
 
91
recipe = z3c.recipe.scripts
 
92
eggs =
 
93
  ${buildout:eggs}
 
94
  ipython
 
95
extra-paths =
 
96
  ${buildout:directory}
 
97
interpreter = py
 
98
scripts = ipython=ipy
 
99
 
 
100
[sphinx]
 
101
recipe = collective.recipe.sphinxbuilder
 
102
source = ${buildout:directory}/docs
 
103
build = ${buildout:directory}/docs/_build
 
104
extra-paths =
 
105
  ${buildout:directory}
 
106
eggs =
 
107
  sphinx