[Checkins] SVN: Products.PluggableAuthService/trunk/ Added buildout.
Michael Howitz
mh at gocept.com
Thu Sep 4 03:18:14 EDT 2008
Log message for revision 90788:
Added buildout.
Changed:
_U Products.PluggableAuthService/trunk/
U Products.PluggableAuthService/trunk/Products/PluggableAuthService/doc/CHANGES.txt
A Products.PluggableAuthService/trunk/bootstrap.py
A Products.PluggableAuthService/trunk/buildout.cfg
U Products.PluggableAuthService/trunk/setup.py
-=-
Property changes on: Products.PluggableAuthService/trunk
___________________________________________________________________
Name: svn:ignore
- Products.PluggableAuthService.egg-info
+ Products.PluggableAuthService.egg-info
develop-eggs
bin
var
parts
downloads
.installed.cfg
Modified: Products.PluggableAuthService/trunk/Products/PluggableAuthService/doc/CHANGES.txt
===================================================================
--- Products.PluggableAuthService/trunk/Products/PluggableAuthService/doc/CHANGES.txt 2008-09-04 07:16:55 UTC (rev 90787)
+++ Products.PluggableAuthService/trunk/Products/PluggableAuthService/doc/CHANGES.txt 2008-09-04 07:18:14 UTC (rev 90788)
@@ -26,7 +26,9 @@
- Fixed deprecation warning occurring when used together with
Five. (manage_afterAdd got undeprecated.)
+- Added buildout.
+
PluggableAuthService 1.5.3 (2008-02-06)
---------------------------------------
Added: Products.PluggableAuthService/trunk/bootstrap.py
===================================================================
--- Products.PluggableAuthService/trunk/bootstrap.py (rev 0)
+++ Products.PluggableAuthService/trunk/bootstrap.py 2008-09-04 07:18:14 UTC (rev 90788)
@@ -0,0 +1,62 @@
+##############################################################################
+#
+# 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$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+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
+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)
Property changes on: Products.PluggableAuthService/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
+ Id Rev Date
Name: svn:eol-style
+ native
Added: Products.PluggableAuthService/trunk/buildout.cfg
===================================================================
--- Products.PluggableAuthService/trunk/buildout.cfg (rev 0)
+++ Products.PluggableAuthService/trunk/buildout.cfg 2008-09-04 07:18:14 UTC (rev 90788)
@@ -0,0 +1,22 @@
+[buildout]
+parts = zope2 instance test
+develop = .
+
+[zope2]
+recipe = plone.recipe.zope2install
+url = http://www.zope.org/Products/Zope/2.11.1/Zope-2.11.1-final.tgz
+
+[instance]
+recipe = plone.recipe.zope2instance
+zope2-location = ${zope2:location}
+user = admin:admin
+products = .
+eggs = Products.PluginRegistry
+ Products.GenericSetup
+ Products.PluggableAuthService
+
+[test]
+recipe = collective.recipe.z2testrunner
+zope2part = instance
+packages = Products.PluggableAuthService
+defaults = ['-c']
\ No newline at end of file
Modified: Products.PluggableAuthService/trunk/setup.py
===================================================================
--- Products.PluggableAuthService/trunk/setup.py 2008-09-04 07:16:55 UTC (rev 90787)
+++ Products.PluggableAuthService/trunk/setup.py 2008-09-04 07:18:14 UTC (rev 90788)
@@ -50,6 +50,8 @@
zip_safe=False,
install_requires=[
'setuptools',
+ 'Products.PluginRegistry',
+ 'Products.GenericSetup',
# 'Zope >= 2.10',
],
extras_require={'ip_range': ['IPy'],
More information about the Checkins
mailing list