1. Christian Theune
  2. sprintsite

Commits

Christian Theune  committed 2e10d4b

Boilerplate for batou project.

  • Participants
  • Branches default

Comments (0)

Files changed (3)

File .hgignore

View file
  • Ignore whitespace
+syntax:glob
+*~
+.batou-lock
+.batou-passphrase
+bin
+develop-eggs
+*.egg-info
+eggs
+include
+.installed.cfg
+keys
+lib
+lib64
+parts
+*.py[co]
+*.sw[op]
+tags
+tmp
+.todo
+work
+.mr.developer.cfg
+share

File bootstrap.py

View file
  • Ignore whitespace
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id: bootstrap.py 90478 2008-08-27 22:44:46Z georgyberdyshev $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+is_jython = sys.platform.startswith('java')
+
+try:
+    import pkg_resources
+except ImportError:
+    ez = {}
+    exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                         ).read() in ez
+    ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+    import pkg_resources
+
+if sys.platform == 'win32':
+    def quote(c):
+        if ' ' in c:
+            return '"%s"' % c # work around spawn lamosity on windows
+        else:
+            return c
+else:
+    def quote (c):
+        return c
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+ws  = pkg_resources.working_set
+
+if is_jython:
+    import subprocess
+    
+    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd', 
+           quote(tmpeggs), 'zc.buildout'], 
+           env=dict(os.environ,
+               PYTHONPATH=
+               ws.find(pkg_resources.Requirement.parse('setuptools')).location
+               ),
+           ).wait() == 0
+
+else:
+    assert os.spawnle(
+        os.P_WAIT, sys.executable, quote (sys.executable),
+        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout',
+        dict(os.environ,
+            PYTHONPATH=
+            ws.find(pkg_resources.Requirement.parse('setuptools')).location
+            ),
+        ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)

File buildout.cfg

View file
  • Ignore whitespace
+[buildout]
+parts = batou test
+allow-picked-versions = false
+versions = versions
+newest = false
+find-links = http://download.gocept.com/packages/
+allow-hosts =
+    *.python.org
+    *.gocept.com
+    *.gocept.net
+    github.com
+extensions = buildout-versions mr.developer
+sources = sources
+always-checkout = force
+auto-checkout =
+develop = ../batou
+
+[sources]
+# batou = hg https://code.gocept.com/hg/public/batou
+
+[versions]
+batou = 
+buildout-versions = 1.7
+distribute = 0.6.19
+elementtree = 1.2.7-20070827-preview
+Fabric = 1.3.4
+Jinja2 = 2.6
+Mako = 0.6.2
+MarkupSafe = 0.15
+mock = 0.8
+mr.developer = 1.19
+pg8000 = 1.08
+pycrypto = 2.5
+setuptools = 0.6c11
+ssh = 1.7.11
+z3c.recipe.scripts = 1.0.1
+zc.buildout = 1.5.2
+zc.recipe.egg = 1.3.2
+zc.recipe.testrunner = 1.4.0
+zope.exceptions = 3.6.1
+zope.interface = 3.8.0
+zope.testrunner = 4.0.4
+
+[batou]
+recipe = zc.recipe.egg
+eggs = batou
+    Mako
+    pg8000
+interpreter = py
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = batou
+defaults = ['--auto-color']