[Checkins] SVN: zc.sharing/trunk/ Added buildout and egg-configuration files.

Jim Fulton jim at zope.com
Thu Jun 29 06:46:56 EDT 2006


Log message for revision 68905:
  Added buildout and egg-configuration files.
  

Changed:
  _U  zc.sharing/trunk/
  A   zc.sharing/trunk/README.txt
  A   zc.sharing/trunk/bootstrap.py
  A   zc.sharing/trunk/buildout.cfg
  A   zc.sharing/trunk/setup.py
  _U  zc.sharing/trunk/src/
  A   zc.sharing/trunk/src/zc/__init__.py

-=-

Property changes on: zc.sharing/trunk
___________________________________________________________________
Name: svn:ignore
   + develop-eggs
eggs
parts
.installed.cfg
bin

Name: svn:externals
   + zc.security svn+ssh://svn.zope.org/repos/main/zc.security/trunk
 


Added: zc.sharing/trunk/README.txt
===================================================================
--- zc.sharing/trunk/README.txt	2006-06-29 10:45:07 UTC (rev 68904)
+++ zc.sharing/trunk/README.txt	2006-06-29 10:46:56 UTC (rev 68905)
@@ -0,0 +1 @@
+"Sharing" Security Policy for Zope 3.


Property changes on: zc.sharing/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: zc.sharing/trunk/bootstrap.py
===================================================================
--- zc.sharing/trunk/bootstrap.py	2006-06-29 10:45:07 UTC (rev 68904)
+++ zc.sharing/trunk/bootstrap.py	2006-06-29 10:46:56 UTC (rev 68905)
@@ -0,0 +1,48 @@
+##############################################################################
+#
+# 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()
+
+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
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, sys.executable,
+    '-c', 'from setuptools.command.easy_install import main; main()',
+    '-mqNxd', tmpeggs, 'zc.buildout',
+    {'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: zc.sharing/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: zc.sharing/trunk/buildout.cfg
===================================================================
--- zc.sharing/trunk/buildout.cfg	2006-06-29 10:45:07 UTC (rev 68904)
+++ zc.sharing/trunk/buildout.cfg	2006-06-29 10:46:56 UTC (rev 68905)
@@ -0,0 +1,37 @@
+[buildout]
+develop =
+    .
+    zc.security 
+    zc.recipe.zope3instance
+
+parts = zope3 data instance
+
+find-links = http://download.zope.org/distribution/
+
+[zope3]
+recipe = zc.recipe.zope3checkout
+url = svn://svn.zope.org/repos/main/Zope3/branches/3.3
+
+[data]
+recipe = zc.recipe.filestorage
+
+[instance]
+recipe = zc.recipe.zope3instance
+storage = data
+user = jim:123
+distribution = zc.sharing
+
+zcml = 
+  zc.resourcelibrary zc.resourcelibrary-meta
+  zc.sharing-overrides:configure.zcml zc.sharing-meta 
+  zc.sharing:privs.zcml
+  zc.sharing:zope.manager-admin.zcml
+  zc.security
+  zc.table 
+  zope.app.securitypolicy-meta
+  zope.app.twisted
+  zope.app.authentication
+
+[test]
+recipe = zc.recipe.testrunner
+distributions = zc.sharing


Property changes on: zc.sharing/trunk/buildout.cfg
___________________________________________________________________
Name: svn:eol-style
   + native

Added: zc.sharing/trunk/setup.py
===================================================================
--- zc.sharing/trunk/setup.py	2006-06-29 10:45:07 UTC (rev 68904)
+++ zc.sharing/trunk/setup.py	2006-06-29 10:46:56 UTC (rev 68905)
@@ -0,0 +1,26 @@
+from setuptools import setup, find_packages
+
+setup(
+    name = "zc.sharing",
+    version = "1.0",
+    author = "Zope Corporation",
+    author_email = "zope3-dev#zope.org",
+    description = "Zope 3 security policy",
+    license = "ZPL 2.1",
+    keywords = "zope3 security",
+    url='http://svn.zope.org/zc.sharing',
+
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['zc'],
+    install_requires = [
+       'zc.table',
+       'zc.security',
+       'zope.testing',
+       'setuptools',
+       # XXX leaving out most of the zope 3 dependencies for now,
+       # since Zope 3 hasn't been packages yet.
+       ],
+    dependency_links = ['http://download.zope.org/distribution/'],
+    )


Property changes on: zc.sharing/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native


Property changes on: zc.sharing/trunk/src
___________________________________________________________________
Name: svn:ignore
   + zc.sharing.egg-info


Added: zc.sharing/trunk/src/zc/__init__.py
===================================================================
--- zc.sharing/trunk/src/zc/__init__.py	2006-06-29 10:45:07 UTC (rev 68904)
+++ zc.sharing/trunk/src/zc/__init__.py	2006-06-29 10:46:56 UTC (rev 68905)
@@ -0,0 +1,6 @@
+# namespace package boilerplate
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError, e:
+    from pkgutil import extend_path
+    __path__ = extend_path(__path__, __name__)


Property changes on: zc.sharing/trunk/src/zc/__init__.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native



More information about the Checkins mailing list