[Checkins] SVN: zope.locking/trunk/ make a 1.0b, converted to zc.buildout but for Zope 3.3 (no eggs). will make a 1.1 for Zope 3.4 (eggs).

Gary Poster gary at zope.com
Wed Jul 4 16:05:13 EDT 2007


Log message for revision 77429:
  make a 1.0b, converted to zc.buildout but for Zope 3.3 (no eggs).  will make a 1.1 for Zope 3.4 (eggs).

Changed:
  _U  zope.locking/trunk/
  A   zope.locking/trunk/bootstrap.py
  A   zope.locking/trunk/buildout.cfg
  U   zope.locking/trunk/setup.py
  D   zope.locking/trunk/src/zope/locking/TODO.txt

-=-

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


Added: zope.locking/trunk/bootstrap.py
===================================================================
--- zope.locking/trunk/bootstrap.py	                        (rev 0)
+++ zope.locking/trunk/bootstrap.py	2007-07-04 20:05:13 UTC (rev 77429)
@@ -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 69908 2006-08-31 21:53:00Z 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)

Added: zope.locking/trunk/buildout.cfg
===================================================================
--- zope.locking/trunk/buildout.cfg	                        (rev 0)
+++ zope.locking/trunk/buildout.cfg	2007-07-04 20:05:13 UTC (rev 77429)
@@ -0,0 +1,17 @@
+[buildout]
+develop = .
+parts = zope3 test
+
+find-links = http://download.zope.org/distribution/
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = zope.locking
+extra-paths = parts/zope3/src
+defaults = "--tests-pattern [fn]?tests --exit-with-status".split()
+
+[zope3]
+recipe = zc.recipe.zope3checkout
+url = svn://svn.zope.org/repos/main/Zope3/branches/3.3
+
+


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

Modified: zope.locking/trunk/setup.py
===================================================================
--- zope.locking/trunk/setup.py	2007-07-04 19:33:34 UTC (rev 77428)
+++ zope.locking/trunk/setup.py	2007-07-04 20:05:13 UTC (rev 77429)
@@ -2,7 +2,7 @@
 
 setup(
     name="zope.locking",
-    version="0.1dev",
+    version="1.0b",
     packages=find_packages('src'),
     package_dir={'':'src'},
     namespace_packages=['zope'],

Deleted: zope.locking/trunk/src/zope/locking/TODO.txt
===================================================================
--- zope.locking/trunk/src/zope/locking/TODO.txt	2007-07-04 19:33:34 UTC (rev 77428)
+++ zope.locking/trunk/src/zope/locking/TODO.txt	2007-07-04 20:05:13 UTC (rev 77429)
@@ -1,11 +0,0 @@
-- adapters should allow access if there is no interaction
-
-- Need configure.zcml
-
-- We need browser views, but what?
-
-  * snippet views for status
-
-  * central views to let users view and break their own locks
-  
-  * central views to let administrators view and break all locks



More information about the Checkins mailing list