[Checkins] SVN: z3c.recipe.runscript/tags/0.1.3/ tag 0.1.3

Christophe Combelles ccomb at free.fr
Fri Oct 7 10:51:11 EST 2011


Log message for revision 123030:
  tag 0.1.3
  

Changed:
  A   z3c.recipe.runscript/tags/0.1.3/
  D   z3c.recipe.runscript/tags/0.1.3/CHANGES.txt
  A   z3c.recipe.runscript/tags/0.1.3/CHANGES.txt
  D   z3c.recipe.runscript/tags/0.1.3/setup.py
  A   z3c.recipe.runscript/tags/0.1.3/setup.py
  D   z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt
  A   z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt
  D   z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py
  A   z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py
  D   z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py
  A   z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py

-=-
Deleted: z3c.recipe.runscript/tags/0.1.3/CHANGES.txt
===================================================================
--- z3c.recipe.runscript/trunk/CHANGES.txt	2011-10-07 06:53:21 UTC (rev 123027)
+++ z3c.recipe.runscript/tags/0.1.3/CHANGES.txt	2011-10-07 15:51:10 UTC (rev 123030)
@@ -1,29 +0,0 @@
-=======
-CHANGES
-=======
-
-0.1.3 (unreleased)
-------------------
-
-- Nothing changed yet.
-
-
-0.1.2 (2010-09-22)
-------------------
-
-- Added test extra to declare test dependency on ``zope.testing``.
-
-- Using Python's ``doctest`` module instead of depreacted
-  ``zope.testing.doctest``.
-
-
-0.1.1 (2008-04-18)
-------------------
-
-- Bug: Fix release to include CHANGES.txt.
-
-
-0.1.0 (2007-07-30)
-------------------
-
-- Initial Release.

Copied: z3c.recipe.runscript/tags/0.1.3/CHANGES.txt (from rev 123029, z3c.recipe.runscript/trunk/CHANGES.txt)
===================================================================
--- z3c.recipe.runscript/tags/0.1.3/CHANGES.txt	                        (rev 0)
+++ z3c.recipe.runscript/tags/0.1.3/CHANGES.txt	2011-10-07 15:51:10 UTC (rev 123030)
@@ -0,0 +1,29 @@
+=======
+CHANGES
+=======
+
+0.1.3 (2011-10-07)
+------------------
+
+- Bug: fix Windows path support (containing semicolon such as 'c:\\')
+
+
+0.1.2 (2010-09-22)
+------------------
+
+- Added test extra to declare test dependency on ``zope.testing``.
+
+- Using Python's ``doctest`` module instead of depreacted
+  ``zope.testing.doctest``.
+
+
+0.1.1 (2008-04-18)
+------------------
+
+- Bug: Fix release to include CHANGES.txt.
+
+
+0.1.0 (2007-07-30)
+------------------
+
+- Initial Release.

Deleted: z3c.recipe.runscript/tags/0.1.3/setup.py
===================================================================
--- z3c.recipe.runscript/trunk/setup.py	2011-10-07 06:53:21 UTC (rev 123027)
+++ z3c.recipe.runscript/tags/0.1.3/setup.py	2011-10-07 15:51:10 UTC (rev 123030)
@@ -1,69 +0,0 @@
-##############################################################################
-#
-# 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$
-"""
-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.recipe.runscript',
-    version='0.1.3dev',
-    author = "Stephan Richter and the Zope Community",
-    author_email = "zope3-dev at zope.org",
-    description = "A recipe that runs any script to install a part.",
-    long_description=(
-        read('README.txt')
-        + '\n\n' +
-        'Detailed Documentation\n'
-        '**********************'
-        + '\n\n' +
-        read('src', 'z3c', 'recipe', 'runscript', 'README.txt')
-        + '\n\n' +
-        read('CHANGES.txt')
-        ),
-    license = "ZPL 2.1",
-    keywords = "buildout recipe",
-    classifiers = [
-        'Development Status :: 4 - Beta',
-        '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://cheeseshop.python.org/pypi/z3c.recipe.runscript',
-    packages = find_packages('src'),
-    include_package_data = True,
-    package_dir = {'':'src'},
-    namespace_packages = ['z3c', 'z3c.recipe'],
-    install_requires = [
-        'setuptools',
-        'zc.buildout'
-        ],
-    extras_require=dict(
-        test=[
-            'zope.testing',
-            ]),
-    entry_points = {'zc.buildout':
-                    ['default = z3c.recipe.runscript:Recipe']},
-    dependency_links = ['http://download.zope.org/distribution'],
-    zip_safe = False,
-    )

Copied: z3c.recipe.runscript/tags/0.1.3/setup.py (from rev 123029, z3c.recipe.runscript/trunk/setup.py)
===================================================================
--- z3c.recipe.runscript/tags/0.1.3/setup.py	                        (rev 0)
+++ z3c.recipe.runscript/tags/0.1.3/setup.py	2011-10-07 15:51:10 UTC (rev 123030)
@@ -0,0 +1,69 @@
+##############################################################################
+#
+# 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$
+"""
+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.recipe.runscript',
+    version='0.1.3',
+    author = "Stephan Richter and the Zope Community",
+    author_email = "zope3-dev at zope.org",
+    description = "A recipe that runs any script to install a part.",
+    long_description=(
+        read('README.txt')
+        + '\n\n' +
+        'Detailed Documentation\n'
+        '**********************'
+        + '\n\n' +
+        read('src', 'z3c', 'recipe', 'runscript', 'README.txt')
+        + '\n\n' +
+        read('CHANGES.txt')
+        ),
+    license = "ZPL 2.1",
+    keywords = "buildout recipe",
+    classifiers = [
+        'Development Status :: 4 - Beta',
+        '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://cheeseshop.python.org/pypi/z3c.recipe.runscript',
+    packages = find_packages('src'),
+    include_package_data = True,
+    package_dir = {'':'src'},
+    namespace_packages = ['z3c', 'z3c.recipe'],
+    install_requires = [
+        'setuptools',
+        'zc.buildout'
+        ],
+    extras_require=dict(
+        test=[
+            'zope.testing',
+            ]),
+    entry_points = {'zc.buildout':
+                    ['default = z3c.recipe.runscript:Recipe']},
+    dependency_links = ['http://download.zope.org/distribution'],
+    zip_safe = False,
+    )

Deleted: z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt
===================================================================
--- z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt	2011-10-07 06:53:21 UTC (rev 123027)
+++ z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt	2011-10-07 15:51:10 UTC (rev 123030)
@@ -1,71 +0,0 @@
-=================================
-The ``runscript`` Buildout Recipe
-=================================
-
-Some software is not easily installed using established build patterns, such
-as "configure, make, make install". In those cases you want to be able to use
-arbitrary scripts to build a particular part. This recipe provides a simple
-implementation to run a Python callable for each installing and updating a
-part.
-
-  >>> import os
-  >>> import z3c.recipe.runscript.tests
-  >>> scriptFilename = os.path.join(
-  ...     os.path.dirname(z3c.recipe.runscript.tests.__file__), 'fooscripts.py')
-
-Let's create a sample buildout to install it:
-
-    >>> write('buildout.cfg',
-    ... """
-    ... [buildout]
-    ... parts = foo
-    ...
-    ... [foo]
-    ... recipe = z3c.recipe.runscript
-    ... install-script = %s:installFoo
-    ... """ %scriptFilename)
-
-The ``install-script`` option specifies the module and the function to call
-during the part installation. The function takes the local and buildout
-options as arguments. See ``tests/fooscripts.py`` for details.
-
-When running buildout, the ``installFoo()`` function is called:
-
-    >>> print system('bin/buildout')
-    Installing foo.
-    Now executing ``installFoo()``
-
-If we run the buildout again, the update method will be called, but since we
-did not specify any, ntohing happens:
-
-    >>> print system('bin/buildout')
-    Updating foo.
-
-Let's now specify the update script as well, causing the ``updateFoo()``
-function to be called:
-
-    >>> write('buildout.cfg',
-    ... """
-    ... [buildout]
-    ... parts = foo
-    ...
-    ... [foo]
-    ... recipe = z3c.recipe.runscript
-    ... install-script = %s:installFoo
-    ... update-script = %s:updateFoo
-    ... """ %(scriptFilename, scriptFilename))
-
-But after a change like that, parts will be uninstalled and reinstalled:
-
-    >>> print system('bin/buildout')
-    Uninstalling foo.
-    Installing foo.
-    Now executing ``installFoo()``
-
-Only now we can update the part:
-
-    >>> print system('bin/buildout')
-    Updating foo.
-    Now executing ``updateFoo()``
-
-And that's it.

Copied: z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt (from rev 123028, z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/README.txt)
===================================================================
--- z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt	                        (rev 0)
+++ z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/README.txt	2011-10-07 15:51:10 UTC (rev 123030)
@@ -0,0 +1,71 @@
+=================================
+The ``runscript`` Buildout Recipe
+=================================
+
+Some software packages are not easily installed using established build patterns, such
+as "configure, make, make install". In those cases you want to be able to use
+arbitrary scripts to build a particular part. This recipe provides a simple
+implementation to run a Python callable for each installing and updating a
+part.
+
+    >>> import os
+    >>> import z3c.recipe.runscript.tests
+    >>> scriptFilename = os.path.join(
+    ...     os.path.dirname(z3c.recipe.runscript.tests.__file__), 'fooscripts.py')
+
+Let's create a sample buildout to install it:
+
+    >>> write('buildout.cfg',
+    ... """
+    ... [buildout]
+    ... parts = foo
+    ...
+    ... [foo]
+    ... recipe = z3c.recipe.runscript
+    ... install-script = %s:installFoo
+    ... """ %scriptFilename)
+
+The ``install-script`` option specifies the module and the function to call
+during the part installation. The function takes the local and buildout
+options as arguments. See ``tests/fooscripts.py`` for details.
+
+When running buildout, the ``installFoo()`` function is called:
+
+    >>> print system('bin/buildout')
+    Installing foo.
+    Now executing ``installFoo()``
+
+If we run the buildout again, the update method will be called, but since we
+did not specify any, nothing happens:
+
+    >>> print system('bin/buildout')
+    Updating foo.
+
+Let's now specify the update script as well, causing the ``updateFoo()``
+function to be called:
+
+    >>> write('buildout.cfg',
+    ... """
+    ... [buildout]
+    ... parts = foo
+    ...
+    ... [foo]
+    ... recipe = z3c.recipe.runscript
+    ... install-script = %s:installFoo
+    ... update-script = %s:updateFoo
+    ... """ %(scriptFilename, scriptFilename))
+
+But after a change like that, parts will be uninstalled and reinstalled:
+
+    >>> print system('bin/buildout')
+    Uninstalling foo.
+    Installing foo.
+    Now executing ``installFoo()``
+
+Only now we can update the part:
+
+    >>> print system('bin/buildout')
+    Updating foo.
+    Now executing ``updateFoo()``
+
+And that's it.

Deleted: z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py
===================================================================
--- z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/__init__.py	2011-10-07 06:53:21 UTC (rev 123027)
+++ z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py	2011-10-07 15:51:10 UTC (rev 123030)
@@ -1,49 +0,0 @@
-##############################################################################
-#
-# 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.
-#
-##############################################################################
-import imp
-import os
-
-class Recipe:
-
-    def __init__(self, buildout, name, options):
-        self.name, self.options, self.buildout = name, options, buildout
-        options['location'] = options['prefix'] = os.path.join(
-            buildout['buildout']['parts-directory'],
-            name)
-
-    def callScript(self, script):
-        filename, callable = script.split(':')
-        filename = os.path.abspath(filename)
-        module = imp.load_source('script', filename)
-        # Run the script with all options
-        getattr(module, callable)(self.options, self.buildout)
-
-    def install(self):
-        # Create directory
-        dest = self.options['location']
-        if not os.path.exists(dest):
-            os.mkdir(dest)
-        # Retrieve ans run the script with all options
-        script = self.options['install-script']
-        self.callScript(script)
-        return dest
-
-    def update(self):
-        if 'update-script' not in self.options:
-            return
-        # Retrieve ans run the script with all options
-        script = self.options['update-script']
-        self.callScript(script)
-
-

Copied: z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py (from rev 123028, z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/__init__.py)
===================================================================
--- z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py	                        (rev 0)
+++ z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/__init__.py	2011-10-07 15:51:10 UTC (rev 123030)
@@ -0,0 +1,49 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+import imp
+import os
+
+class Recipe:
+
+    def __init__(self, buildout, name, options):
+        self.name, self.options, self.buildout = name, options, buildout
+        options['location'] = options['prefix'] = os.path.join(
+            buildout['buildout']['parts-directory'],
+            name)
+
+    def callScript(self, script):
+        filename, callable = script.rsplit(':', 1)
+        filename = os.path.abspath(filename)
+        module = imp.load_source('script', filename)
+        # Run the script with all options
+        getattr(module, callable)(self.options, self.buildout)
+
+    def install(self):
+        # Create directory
+        dest = self.options['location']
+        if not os.path.exists(dest):
+            os.mkdir(dest)
+        # Retrieve ans run the script with all options
+        script = self.options['install-script']
+        self.callScript(script)
+        return dest
+
+    def update(self):
+        if 'update-script' not in self.options:
+            return
+        # Retrieve ans run the script with all options
+        script = self.options['update-script']
+        self.callScript(script)
+
+

Deleted: z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py
===================================================================
--- z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/tests/test_doc.py	2011-10-07 06:53:21 UTC (rev 123027)
+++ z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py	2011-10-07 15:51:10 UTC (rev 123030)
@@ -1,31 +0,0 @@
-##############################################################################
-#
-# 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.
-#
-##############################################################################
-"""z3c.recipe.runscript test setup."""
-import doctest
-import unittest
-import zc.buildout.testing
-
-
-def setUp(test):
-    zc.buildout.testing.buildoutSetUp(test)
-    zc.buildout.testing.install_develop('z3c.recipe.runscript', test)
-
-
-def test_suite():
-    return doctest.DocFileSuite(
-        '../README.txt',
-        setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
-        optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
-        )
-

Copied: z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py (from rev 123028, z3c.recipe.runscript/trunk/src/z3c/recipe/runscript/tests/test_doc.py)
===================================================================
--- z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py	                        (rev 0)
+++ z3c.recipe.runscript/tags/0.1.3/src/z3c/recipe/runscript/tests/test_doc.py	2011-10-07 15:51:10 UTC (rev 123030)
@@ -0,0 +1,32 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""z3c.recipe.runscript test setup."""
+import doctest
+import unittest
+import zc.buildout.testing
+from os.path import join, pardir
+
+
+def setUp(test):
+    zc.buildout.testing.buildoutSetUp(test)
+    zc.buildout.testing.install_develop('z3c.recipe.runscript', test)
+
+
+def test_suite():
+    return doctest.DocFileSuite(
+        join(pardir, 'README.txt'),
+        setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
+        optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS,
+        )
+



More information about the checkins mailing list