[Checkins] SVN: z3c.macroviewlet/trunk/ Make em ready for egg

Roger Ineichen roger at projekt01.ch
Fri Sep 21 18:02:41 EDT 2007


Log message for revision 79809:
  Make em ready for egg

Changed:
  _U  z3c.macroviewlet/trunk/
  A   z3c.macroviewlet/trunk/.installed.cfg
  A   z3c.macroviewlet/trunk/README.txt
  A   z3c.macroviewlet/trunk/bootstrap.py
  A   z3c.macroviewlet/trunk/buildout.cfg
  A   z3c.macroviewlet/trunk/setup.py
  _U  z3c.macroviewlet/trunk/src/
  U   z3c.macroviewlet/trunk/src/z3c/__init__.py

-=-

Property changes on: z3c.macroviewlet/trunk
___________________________________________________________________
Name: svn:ignore
   + bin
parts
develop-eggs


Added: z3c.macroviewlet/trunk/.installed.cfg
===================================================================
--- z3c.macroviewlet/trunk/.installed.cfg	                        (rev 0)
+++ z3c.macroviewlet/trunk/.installed.cfg	2007-09-21 22:02:41 UTC (rev 79809)
@@ -0,0 +1,29 @@
+[buildout]
+installed_develop_eggs = D:\svnZ3CDev\z3c.macroviewlet\develop-eggs\z3c.macroviewlet.egg-link
+parts = test
+
+[test]
+__buildout_installed__ = D:\svnZ3CDev\z3c.macroviewlet\parts\test
+	D:\svnZ3CDev\z3c.macroviewlet\bin\test.exe
+	D:\svnZ3CDev\z3c.macroviewlet\bin\test-script.py
+__buildout_signature__ = zc.recipe.testrunner-1.0.0b8-py2.4.egg zc.recipe.egg-1.0.0b6-py2.4.egg setuptools-0.6c7-py2.4.egg zope.testing-3.5.1-py2.4.egg zc.buildout-1.0.0b30-py2.4.egg zc.buildout-1.0.0b30-py2.4.egg
+_b = D:\svnZ3CDev\z3c.macroviewlet\bin
+_d = D:\svnZ3CDev\z3c.macroviewlet\develop-eggs
+_e = D:\home\.buildout\eggs
+bin-directory = D:\svnZ3CDev\z3c.macroviewlet\bin
+develop-eggs-directory = D:\svnZ3CDev\z3c.macroviewlet\develop-eggs
+eggs = z3c.macroviewlet [test]
+eggs-directory = D:\home\.buildout\eggs
+executable = C:\Python24\python.exe
+find-links = https://download.lovelysystems.com/eggs
+	http://download.zope.org/distribution
+index = http://download.zope.org/ppix
+location = D:\svnZ3CDev\z3c.macroviewlet\parts\test
+recipe = zc.recipe.testrunner
+script = D:\svnZ3CDev\z3c.macroviewlet\bin\test
+
+[buildout]
+installed_develop_eggs = D:\svnZ3CDev\z3c.macroviewlet\develop-eggs\z3c.macroviewlet.egg-link
+
+[buildout]
+parts = test

Added: z3c.macroviewlet/trunk/README.txt
===================================================================
--- z3c.macroviewlet/trunk/README.txt	                        (rev 0)
+++ z3c.macroviewlet/trunk/README.txt	2007-09-21 22:02:41 UTC (rev 79809)
@@ -0,0 +1,2 @@
+Macro viewlets are Zope 3 UI components. In particular they allow the developer
+to specify viewlets based on macros.


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

Added: z3c.macroviewlet/trunk/bootstrap.py
===================================================================
--- z3c.macroviewlet/trunk/bootstrap.py	                        (rev 0)
+++ z3c.macroviewlet/trunk/bootstrap.py	2007-09-21 22:02:41 UTC (rev 79809)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2007 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 79800 2007-09-21 18:49:58Z srichter $
+"""
+
+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: z3c.macroviewlet/trunk/bootstrap.py
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.macroviewlet/trunk/buildout.cfg
===================================================================
--- z3c.macroviewlet/trunk/buildout.cfg	                        (rev 0)
+++ z3c.macroviewlet/trunk/buildout.cfg	2007-09-21 22:02:41 UTC (rev 79809)
@@ -0,0 +1,7 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.macroviewlet [test]

Added: z3c.macroviewlet/trunk/setup.py
===================================================================
--- z3c.macroviewlet/trunk/setup.py	                        (rev 0)
+++ z3c.macroviewlet/trunk/setup.py	2007-09-21 22:02:41 UTC (rev 79809)
@@ -0,0 +1,82 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation 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.
+#
+##############################################################################
+"""Setup
+
+$Id: setup.py 79800 2007-09-21 18:49:58Z srichter $
+"""
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup (
+    name='z3c.macroviewlet',
+    version='1.0.0',
+    author = "Roger Ineichen and the Zope Community",
+    author_email = "zope3-dev at zope.org",
+    description = "Macro viewlets are a concept for register viewlets based on macros",
+    long_description=(
+        read('README.txt')
+        + '\n' +
+        'Detailed Documentation\n'
+        '**********************\n'
+        + '\n' +
+        read('src', 'z3c', 'macroviewlet', 'README.txt')
+        ),
+    license = "ZPL 2.1",
+    keywords = "zope3 template macro viewlet zpt pagetemplate",
+    classifiers = [
+        'Development Status :: 5 - Production/Stable',
+        'Environment :: Web Environment',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: Zope Public License',
+        'Programming Language :: Python',
+        'Natural Language :: English',
+        'Operating System :: OS Independent',
+        'Topic :: Internet :: WWW/HTTP',
+        'Framework :: Zope3'],
+    url = 'http://svn.zope.org/z3c.macroviewlet',
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['z3c'],
+    extras_require = dict(
+        test = [
+            'zope.app.testing',
+            'zope.testing',
+            'zope.viewlet',
+            'z3c.template',
+            'z3c.testing',],
+        ),
+    install_requires = [
+        'setuptools',
+        'zope.app.component',
+        'zope.app.pagetemplate',
+        'zope.app.publisher',
+        'zope.app.testing',
+        'zope.component',
+        'zope.configuration',
+        'zope.contentprovider',
+        'zope.interface',
+        'zope.pagetemplate',
+        'zope.publisher',
+        'zope.schema',
+        'zope.security',
+        'zope.testing',
+        'zope.traversing',
+        ],
+    dependency_links = ['http://download.zope.org/distribution'],
+    zip_safe = False,
+    )


Property changes on: z3c.macroviewlet/trunk/setup.py
___________________________________________________________________
Name: svn:eol-style
   + native


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


Modified: z3c.macroviewlet/trunk/src/z3c/__init__.py
===================================================================
--- z3c.macroviewlet/trunk/src/z3c/__init__.py	2007-09-21 21:47:25 UTC (rev 79808)
+++ z3c.macroviewlet/trunk/src/z3c/__init__.py	2007-09-21 22:02:41 UTC (rev 79809)
@@ -1,16 +1,7 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation 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.
-#
-##############################################################################
-"""
-$Id$
-"""
+try:
+    # Declare this a namespace package if pkg_resources is available.
+    import pkg_resources
+    pkg_resources.declare_namespace('z3c')
+except ImportError:
+    pass
+



More information about the Checkins mailing list