[Checkins] SVN: z3c.reference/trunk/ buildoutify

Johannes Faigle johannes.faigle at lovelysystems.com
Tue Aug 21 10:15:53 EDT 2007


Log message for revision 79077:
  buildoutify

Changed:
  _U  z3c.reference/trunk/
  A   z3c.reference/trunk/CHANGES.txt
  A   z3c.reference/trunk/README.txt
  A   z3c.reference/trunk/bootstrap.py
  A   z3c.reference/trunk/buildout.cfg
  A   z3c.reference/trunk/setup.py
  A   z3c.reference/trunk/src/z3c/__init__.py

-=-

Property changes on: z3c.reference/trunk
___________________________________________________________________
Name: svn:ignore
   + bin
build
dist
develop-eggs
eggs
parts
.installed.cfg


Added: z3c.reference/trunk/CHANGES.txt
===================================================================
--- z3c.reference/trunk/CHANGES.txt	                        (rev 0)
+++ z3c.reference/trunk/CHANGES.txt	2007-08-21 14:15:53 UTC (rev 79077)
@@ -0,0 +1,9 @@
+=========================
+Changes for z3c.reference
+=========================
+
+Before first release
+====================
+
+- buildoutify
+

Added: z3c.reference/trunk/README.txt
===================================================================
--- z3c.reference/trunk/README.txt	                        (rev 0)
+++ z3c.reference/trunk/README.txt	2007-08-21 14:15:53 UTC (rev 79077)
@@ -0,0 +1,8 @@
+=============
+z3c.reference
+=============
+
+This package can be used to create references to views of arbitrary
+objects. Especially specific cropped/resized representations can be
+referenced via a image edit widget.
+

Added: z3c.reference/trunk/bootstrap.py
===================================================================
--- z3c.reference/trunk/bootstrap.py	                        (rev 0)
+++ z3c.reference/trunk/bootstrap.py	2007-08-21 14:15:53 UTC (rev 79077)
@@ -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$
+"""
+
+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: z3c.reference/trunk/buildout.cfg
===================================================================
--- z3c.reference/trunk/buildout.cfg	                        (rev 0)
+++ z3c.reference/trunk/buildout.cfg	2007-08-21 14:15:53 UTC (rev 79077)
@@ -0,0 +1,11 @@
+[buildout]
+develop = .
+parts = test importchecker
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.reference [test]
+
+[importchecker]
+recipe = lovely.recipe:importchecker
+

Added: z3c.reference/trunk/setup.py
===================================================================
--- z3c.reference/trunk/setup.py	                        (rev 0)
+++ z3c.reference/trunk/setup.py	2007-08-21 14:15:53 UTC (rev 79077)
@@ -0,0 +1,36 @@
+#!python
+from setuptools import setup, find_packages
+
+setup (
+    name='z3c.reference',
+    version='0.0.0a1',
+    author = "Lovely Systems",
+    author_email = "office at lovelysystems.com",
+    description = "Reference",
+    license = "ZPL 2.1",
+    keywords = "zope3 web20 zope reference",
+    url = 'svn://svn.zope.org/repos/main/z3c.reference',
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['z3c'],
+    extras_require = dict(
+        test = ['zope.app.testing',
+                'zope.testing',]
+        ),
+    install_requires = [
+        'ZODB3',
+        'zc.resourcelibrary',
+        'zope.app.component',
+        'zope.app.file',
+        'zope.app.form',
+        'zope.app.keyreference',
+        'zope.cachedescriptors',
+        'zope.dublincore',
+        'zope.interface',
+        'zope.location',
+        'zope.schema',
+        'zope.traversing'
+        ],
+    dependency_links = ['http://download.zope.org/distribution']
+    )

Added: z3c.reference/trunk/src/z3c/__init__.py
===================================================================
--- z3c.reference/trunk/src/z3c/__init__.py	                        (rev 0)
+++ z3c.reference/trunk/src/z3c/__init__.py	2007-08-21 14:15:53 UTC (rev 79077)
@@ -0,0 +1,5 @@
+# this is a namespace package
+try:
+    __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+    pass



More information about the Checkins mailing list