[Checkins] SVN: zc.recipe.zope3checkout/trunk/ initial version
Jim Fulton
jim at zope.com
Wed Jun 28 19:09:40 EDT 2006
Log message for revision 68896:
initial version
Changed:
A zc.recipe.zope3checkout/trunk/README.txt
A zc.recipe.zope3checkout/trunk/setup.cfg
A zc.recipe.zope3checkout/trunk/setup.py
A zc.recipe.zope3checkout/trunk/src/
A zc.recipe.zope3checkout/trunk/src/zc/
A zc.recipe.zope3checkout/trunk/src/zc/__init__.py
A zc.recipe.zope3checkout/trunk/src/zc/recipe/
A zc.recipe.zope3checkout/trunk/src/zc/recipe/__init__.py
A zc.recipe.zope3checkout/trunk/src/zc/recipe/zope3checkout/
A zc.recipe.zope3checkout/trunk/src/zc/recipe/zope3checkout/__init__.py
-=-
Added: zc.recipe.zope3checkout/trunk/README.txt
===================================================================
--- zc.recipe.zope3checkout/trunk/README.txt 2006-06-28 22:44:32 UTC (rev 68895)
+++ zc.recipe.zope3checkout/trunk/README.txt 2006-06-28 23:09:40 UTC (rev 68896)
@@ -0,0 +1,17 @@
+Zope 3 Checkout
+===============
+
+Recipe for creating a Zope 3 checkout in a buildout.
+
+Hopefully, when Zope is packages as eggs, this won't be necessary.
+
+The recipe has a single option, which is the Sunbersion URL to use to
+checkout Zope. For example, to get the 3.3 branch, use:
+
+ url = svn://svn.zope.org/repos/main/branches/3.3
+
+The checkout is installed into a subdirectory of the buildout parts
+directory whos name is the part named used for the recipe.
+
+This location is recorded in a 'location' option within the section
+that other recipes can query to get the location.
Property changes on: zc.recipe.zope3checkout/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: zc.recipe.zope3checkout/trunk/setup.cfg
===================================================================
--- zc.recipe.zope3checkout/trunk/setup.cfg 2006-06-28 22:44:32 UTC (rev 68895)
+++ zc.recipe.zope3checkout/trunk/setup.cfg 2006-06-28 23:09:40 UTC (rev 68896)
@@ -0,0 +1,3 @@
+[egg_info]
+tag_build = .dev
+tag_svn_revision = 1
Property changes on: zc.recipe.zope3checkout/trunk/setup.cfg
___________________________________________________________________
Name: svn:eol-style
+ native
Added: zc.recipe.zope3checkout/trunk/setup.py
===================================================================
--- zc.recipe.zope3checkout/trunk/setup.py 2006-06-28 22:44:32 UTC (rev 68895)
+++ zc.recipe.zope3checkout/trunk/setup.py 2006-06-28 23:09:40 UTC (rev 68896)
@@ -0,0 +1,28 @@
+from setuptools import setup, find_packages
+
+name = "zc.recipe.zope3checkout"
+
+setup(
+ name = name,
+ version = "1.0",
+ author = "Jim Fulton",
+ author_email = "jim at zope.com",
+ description = "ZC Buildout recipe for installing a Zope 3 checkout",
+ long_description = open('README.txt').read(),
+ license = "ZPL 2.1",
+ keywords = "zope3 buildout",
+ url='http://svn.zope.org/zc.recipe.zope3checkout',
+ classifiers = [
+ 'Framework :: Buildout',
+ 'License :: OSI Approved :: Zope Public License',
+ ],
+
+ packages = find_packages('src'),
+ include_package_data = True,
+ package_dir = {'':'src'},
+ namespace_packages = ['zc', 'zc.recipe'],
+ install_requires = ['zc.buildout', 'zope.testing', 'setuptools'],
+ dependency_links = ['http://download.zope.org/distribution/'],
+ entry_points = {'zc.buildout':
+ ['default = zc.recipe.zope3checkout:Zope3Checkout']},
+ )
Property changes on: zc.recipe.zope3checkout/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: zc.recipe.zope3checkout/trunk/src/zc/__init__.py
===================================================================
--- zc.recipe.zope3checkout/trunk/src/zc/__init__.py 2006-06-28 22:44:32 UTC (rev 68895)
+++ zc.recipe.zope3checkout/trunk/src/zc/__init__.py 2006-06-28 23:09:40 UTC (rev 68896)
@@ -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.recipe.zope3checkout/trunk/src/zc/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: zc.recipe.zope3checkout/trunk/src/zc/recipe/__init__.py
===================================================================
--- zc.recipe.zope3checkout/trunk/src/zc/recipe/__init__.py 2006-06-28 22:44:32 UTC (rev 68895)
+++ zc.recipe.zope3checkout/trunk/src/zc/recipe/__init__.py 2006-06-28 23:09:40 UTC (rev 68896)
@@ -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.recipe.zope3checkout/trunk/src/zc/recipe/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: zc.recipe.zope3checkout/trunk/src/zc/recipe/zope3checkout/__init__.py
===================================================================
--- zc.recipe.zope3checkout/trunk/src/zc/recipe/zope3checkout/__init__.py 2006-06-28 22:44:32 UTC (rev 68895)
+++ zc.recipe.zope3checkout/trunk/src/zc/recipe/zope3checkout/__init__.py 2006-06-28 23:09:40 UTC (rev 68896)
@@ -0,0 +1,48 @@
+import os, re
+
+class Zope3Checkout:
+
+ def __init__(self, buildout, name, options):
+ self.buildout = buildout
+ self.name = name
+ self.options = options
+ python = buildout['buildout']['python']
+ options['executable'] = buildout[python]['executable']
+ options['location'] = os.path.join(
+ buildout['buildout']['parts-directory'],
+ self.name)
+
+ def install(self):
+ options = self.options
+ location = options['location']
+ if os.path.exists(location):
+ if self.buildout.get('offline') == 'true':
+ return location
+ os.chdir(location)
+ i, o = os.popen4('svn up')
+ i.close()
+ change = re.compile('[ADUCM] ').match
+ for l in o:
+ if change(l):
+ o.read()
+ o.close()
+ break
+ else:
+ # No change, so all done
+ o.close()
+ return location
+ else:
+ assert os.system('svn co %s %s' % (options['url'], location)
+ ) == 0
+ os.chdir(location)
+
+ assert os.spawnl(
+ os.P_WAIT, options['executable'], options['executable'],
+ 'setup.py',
+ 'build_ext', '-i',
+ 'install_data', '--install-dir', '.',
+ ) == 0
+
+ return location
+
+
Property changes on: zc.recipe.zope3checkout/trunk/src/zc/recipe/zope3checkout/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the Checkins
mailing list