[Checkins] SVN: zope.app.schemacontent/trunk/ - completed buildout
to run tests
Christian Theune
ct at gocept.com
Mon May 14 11:14:41 EDT 2007
Log message for revision 75737:
- completed buildout to run tests
Changed:
_U zope.app.schemacontent/trunk/
A zope.app.schemacontent/trunk/bootstrap.py
U zope.app.schemacontent/trunk/buildout.cfg
U zope.app.schemacontent/trunk/setup.py
-=-
Property changes on: zope.app.schemacontent/trunk
___________________________________________________________________
Name: svn:ignore
- develop-eggs
bin
parts
+ eggs
.installed.cfg
develop-eggs
bin
parts
Added: zope.app.schemacontent/trunk/bootstrap.py
===================================================================
--- zope.app.schemacontent/trunk/bootstrap.py (rev 0)
+++ zope.app.schemacontent/trunk/bootstrap.py 2007-05-14 15:14:40 UTC (rev 75737)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# 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 72703 2007-02-20 11:49:26Z jim $
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+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
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+ cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+ os.P_WAIT, sys.executable, sys.executable,
+ '-c', cmd, '-mqNxd', 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: zope.app.schemacontent/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: zope.app.schemacontent/trunk/buildout.cfg
===================================================================
--- zope.app.schemacontent/trunk/buildout.cfg 2007-05-14 15:06:52 UTC (rev 75736)
+++ zope.app.schemacontent/trunk/buildout.cfg 2007-05-14 15:14:40 UTC (rev 75737)
@@ -1,58 +1,8 @@
[buildout]
develop = .
-parts = instance test
+parts = test
+find-links = http://download.zope.org/distribution/
-[zope3]
-recipe = zc.recipe.zope3checkout
-url = svn://svn.zope.org/repos/main/Zope3/trunk
-
-[app]
-recipe = zc.zope3recipes:app
-eggs = zc.z3monitor
-servers = zserver
-site.zcml =
- <include package="zope.app.zcmlfiles" />
- <include package="zope.app.securitypolicy" />
- <include package="zope.app.securitypolicy" file="meta.zcml" />
- <include package="zope.app.authentication" />
- <include package="zope.app.server" />
- <securityPolicy
- component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
- <role id="zope.Anonymous" title="Everybody"
- description="All users have this role implicitly" />
- <role id="zope.Manager" title="Site Manager" />
- <role id="zope.Member" title="Site Member" />
- <grantAll role="zope.Manager" />
- <unauthenticatedPrincipal
- id="zope.anybody"
- title="Unauthenticated User"
- />
- <principal
- id="zope.manager"
- title="Manager"
- login="jim"
- password_manager="SHA1"
- password="40bd001563085fc35165329ea1ff5c5ecbdbbeef"
- />
- <grant
- role="zope.Manager"
- principal="zope.manager"
- />
- <include package="zc.z3monitor" />
-
-[instance]
-recipe = zc.zope3recipes:instance
-application = app
-zope.conf =
- ${database:zconfig}
- <product-config zc.z3monitor>
- port 8000
- </product-config>
-
-[database]
-recipe = zc.recipe.filestorage
-
[test]
recipe = zc.recipe.testrunner
-eggs = zc.z3monitor
-extra-paths = ${zope3:location}/src
+eggs = zope.app.schemacontent [test]
Modified: zope.app.schemacontent/trunk/setup.py
===================================================================
--- zope.app.schemacontent/trunk/setup.py 2007-05-14 15:06:52 UTC (rev 75736)
+++ zope.app.schemacontent/trunk/setup.py 2007-05-14 15:14:40 UTC (rev 75737)
@@ -1,16 +1,28 @@
from setuptools import setup, find_packages
setup(
- name = '',
+ name = 'zope.app.schemacontent',
version = '0.1',
- author = 'Jim Fulton',
- author_email = 'jim at zope.com',
+ author = 'Zope Corporation and Contributors',
+ author_email = 'zope3-dev at zope.org',
description = '',
license = 'ZPL 2.1',
-
+
packages = find_packages('src'),
namespace_packages = ['zope', 'zope.app'],
package_dir = {'': 'src'},
- install_requires = ['setuptools'],
+ install_requires = ['setuptools',
+ 'zope.app.i18n',
+ 'zope.app.zapi',
+ 'zope.app.form',
+ 'zope.component',
+ 'zope.interface',
+ 'zope.publisher',
+ 'zope.schema',
+ 'zope.security',
+ 'ZODB3',
+ 'zope.app.container',
+ 'zope.app.publisher'],
+ extras_require=dict(test=['zope.app.testing', 'zope.annotation']),
zip_safe = False,
)
More information about the Checkins
mailing list