[Checkins] SVN: z3c.sessionwidget/trunk/ eggified and buildoutified

Jodok Batlogg jodok.batlogg at lovelysystems.com
Sat May 26 16:15:13 EDT 2007


Log message for revision 75971:
  eggified and buildoutified

Changed:
  _U  z3c.sessionwidget/trunk/
  A   z3c.sessionwidget/trunk/bootstrap.py
  A   z3c.sessionwidget/trunk/buildout.cfg
  A   z3c.sessionwidget/trunk/setup.cfg
  A   z3c.sessionwidget/trunk/setup.py
  A   z3c.sessionwidget/trunk/src/z3c/__init__.py

-=-

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


Added: z3c.sessionwidget/trunk/bootstrap.py
===================================================================
--- z3c.sessionwidget/trunk/bootstrap.py	                        (rev 0)
+++ z3c.sessionwidget/trunk/bootstrap.py	2007-05-26 20:15:12 UTC (rev 75971)
@@ -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)


Property changes on: z3c.sessionwidget/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: z3c.sessionwidget/trunk/buildout.cfg
===================================================================
--- z3c.sessionwidget/trunk/buildout.cfg	                        (rev 0)
+++ z3c.sessionwidget/trunk/buildout.cfg	2007-05-26 20:15:12 UTC (rev 75971)
@@ -0,0 +1,7 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = z3c.sessionwidget [test]
\ No newline at end of file

Added: z3c.sessionwidget/trunk/setup.cfg
===================================================================
--- z3c.sessionwidget/trunk/setup.cfg	                        (rev 0)
+++ z3c.sessionwidget/trunk/setup.cfg	2007-05-26 20:15:12 UTC (rev 75971)
@@ -0,0 +1,2 @@
+[egg_info]
+tag_svn_revision = 1

Added: z3c.sessionwidget/trunk/setup.py
===================================================================
--- z3c.sessionwidget/trunk/setup.py	                        (rev 0)
+++ z3c.sessionwidget/trunk/setup.py	2007-05-26 20:15:12 UTC (rev 75971)
@@ -0,0 +1,34 @@
+from setuptools import setup, find_packages
+
+setup(
+    name = "z3c.sessionwidget",
+    version = "0.1dev",
+    author = "Zope Contributors",
+    author_email = "zope3-dev at zope.org",
+    description = "Session Input Widget",
+    license = "ZPL 2.1",
+    keywords = "zope3 session widget",
+    url = 'http://svn.zope.org/z3c.sessionwidget',
+    classifiers = [
+        'Development Status :: 3 - Alpha',
+        "License :: OSI Approved :: Zope Public License",
+        "Framework :: Zope :: UI"],
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['z3c'],
+    zip_safe = False,
+    extras_require = dict(test=['zope.component',
+                                'zope.app.testing',
+                                'zope.testing',
+                                'zope.publisher',
+                               ]),
+    install_requires = ['setuptools',
+                        'zope.app.form',
+                        'zope.app.session',
+                        'zope.interface',
+                        'zope.location',
+                        'zope.schema',
+                        'zope.security',
+                        ],
+    )


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

Added: z3c.sessionwidget/trunk/src/z3c/__init__.py
===================================================================
--- z3c.sessionwidget/trunk/src/z3c/__init__.py	                        (rev 0)
+++ z3c.sessionwidget/trunk/src/z3c/__init__.py	2007-05-26 20:15:12 UTC (rev 75971)
@@ -0,0 +1,23 @@
+##############################################################################
+#
+# Copyright (c) 2004 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.
+#
+##############################################################################
+#
+# This file is necessary to make this directory a package.
+
+try:
+    # Declare this a namespace package if pkg_resources is available.
+    import pkg_resources
+    pkg_resources.declare_namespace('z3c')
+except ImportError:
+    pass
+


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



More information about the Checkins mailing list