[Checkins] SVN: cc.buildout_reports/tags/cc.buildout_reports-0.1/ Tagging 0.1 release.

Nathan Yergler nathan at yergler.net
Wed Aug 22 14:33:56 EDT 2007


Log message for revision 79143:
  Tagging 0.1 release.

Changed:
  A   cc.buildout_reports/tags/cc.buildout_reports-0.1/
  D   cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py
  A   cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py
  D   cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py
  A   cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py

-=-
Copied: cc.buildout_reports/tags/cc.buildout_reports-0.1 (from rev 79140, cc.buildout_reports/trunk)

Deleted: cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py
===================================================================
--- cc.buildout_reports/trunk/cc/buildout_reports/xxx.py	2007-08-22 18:06:04 UTC (rev 79140)
+++ cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py	2007-08-22 18:33:55 UTC (rev 79143)
@@ -1,80 +0,0 @@
-##############################################################################
-#
-# 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.
-#
-##############################################################################
-"""Generate a XXX/TODO report.
-"""
-
-import cc.buildout_reports
-
-import os
-import logging
-import subprocess
-import zc.buildout
-
-class XxxReport:
-    """Generate an HTML XXX/TODO comment report for the project.  Supports
-    the following configuration parameters:
-
-    * pattern: the pattern to scan for; if not specified, defaults to
-        (XXX|TODO)
-        
-    * report_file: the file to save the report to; if not specified, defaults
-        to XXXreport.html, stored in the buildout directory.  If specified
-        as a relative path, it is interpreted as relative to the buildout
-        directory.
-        
-    """
-    
-    def __init__(self, buildout, name, options):
-
-        self.buildout, self.name, self.options = buildout, name, options
-        
-        # perform sanity checking on parameters
-        
-        if 'pattern' not in options:
-            # no pattern to scan for provided; default to XXX|TODO
-            options['pattern'] = '?(XXX|TODO)'
-            
-            logging.getLogger(name).info(
-                "No comment pattern for XXX report specified; using %s",
-                options['pattern'])
-
-        if 'report_file' not in options:
-            # no output file provided; default to 'XXXreport.html'
-            options['report_file'] = os.path.join(
-                buildout['buildout']['directory'], 'XXXreport.html')
-            logging.getLogger(name).info(
-                "No output file for XXX report specified; using %s",
-                options['report_file'])
-        else:
-            # make sure the path is absolute
-            options['report_file'] = os.path.abspath(options['report_file'])
-
-
-    def install(self):
-        """Generate the XXX report for this project."""
-
-        paths = []
-        script_name = os.path.join(
-            os.path.dirname(cc.buildout_reports.__file__),
-            'xxx_report.sh')
-
-        subprocess.call([script_name,
-                         self.buildout['buildout']['directory'],
-                         self.options['report_file'],
-                         self.options['pattern']
-                         ])
-                
-        return [self.options['report_file']]
-
-    update = install

Copied: cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py (from rev 79142, cc.buildout_reports/trunk/cc/buildout_reports/xxx.py)
===================================================================
--- cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py	                        (rev 0)
+++ cc.buildout_reports/tags/cc.buildout_reports-0.1/cc/buildout_reports/xxx.py	2007-08-22 18:33:55 UTC (rev 79143)
@@ -0,0 +1,88 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Generate a XXX/TODO report.
+"""
+
+import cc.buildout_reports
+
+import os
+import stat
+import logging
+import subprocess
+import zc.buildout
+
+class XxxReport:
+    """Generate an HTML XXX/TODO comment report for the project.  Supports
+    the following configuration parameters:
+
+    * pattern: the pattern to scan for; if not specified, defaults to
+        (XXX|TODO)
+        
+    * report_file: the file to save the report to; if not specified, defaults
+        to XXXreport.html, stored in the buildout directory.  If specified
+        as a relative path, it is interpreted as relative to the buildout
+        directory.
+        
+    """
+    
+    def __init__(self, buildout, name, options):
+
+        self.buildout, self.name, self.options = buildout, name, options
+        
+        # perform sanity checking on parameters
+        
+        if 'pattern' not in options:
+            # no pattern to scan for provided; default to XXX|TODO
+            options['pattern'] = '?(XXX|TODO)'
+            
+            logging.getLogger(name).info(
+                "No comment pattern for XXX report specified; using %s",
+                options['pattern'])
+
+        if 'report_file' not in options:
+            # no output file provided; default to 'XXXreport.html'
+            options['report_file'] = os.path.join(
+                buildout['buildout']['directory'], 'XXXreport.html')
+            logging.getLogger(name).info(
+                "No output file for XXX report specified; using %s",
+                options['report_file'])
+        else:
+            # make sure the path is absolute
+            options['report_file'] = os.path.abspath(options['report_file'])
+
+
+        # determine the name of our script
+        self.script_name = os.path.join(
+            os.path.dirname(cc.buildout_reports.__file__),
+            'xxx_report.sh')
+
+        # make sure it's executable
+        if not(os.access(self.script_name, os.X_OK)):
+            # attempt to chmod it... sigh...
+            os.chmod(self.script_name,
+                     stat.S_IRUSR|stat.S_IWUSR|stat.S_IXUSR|
+                     stat.S_IXGRP|stat.S_IXOTH)
+
+    def install(self):
+        """Generate the XXX report for this project."""
+
+        subprocess.call([self.script_name,
+                         self.buildout['buildout']['directory'],
+                         self.options['report_file'],
+                         self.options['pattern']
+                         ])
+                
+        return [self.options['report_file']]
+
+    update = install

Deleted: cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py
===================================================================
--- cc.buildout_reports/trunk/setup.py	2007-08-22 18:06:04 UTC (rev 79140)
+++ cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py	2007-08-22 18:33:55 UTC (rev 79143)
@@ -1,63 +0,0 @@
-##############################################################################
-#
-# 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.
-#
-##############################################################################
-"""zc.buildout recipes for generating developer reports
-"""
-
-import os
-from setuptools import setup, find_packages
-
-def read(*rnames):
-    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-setup(
-    name = "cc.buildout_reports",
-    version = "0.1",
-    packages = find_packages('.'),
-    namespace_packages = ['cc',],
-    
-    # scripts and dependencies
-    install_requires = ['setuptools',
-                        'zc.buildout',
-                        ],
-
-    entry_points = {'zc.buildout':['xxx = cc.buildout_reports:XxxReport'],
-                    },
-    zip_safe = False,
-    
-    # author metadata
-    author = 'Nathan R. Yergler',
-    author_email = 'nathan at creativecommons.org',
-    description = "Recipes for generating developer reports with zc.buildout.",
-    long_description = (
-        read('README.txt')
-        + '\n' +
-        read('CHANGES.txt')
-        + '\n' +
-        'Download\n'
-        '**********************\n'
-        ),
-    license = 'ZPL 2.1',
-    keywords = 'development build tools buildout',
-    url = 'http://python.org/pypi/cc.buildout_reports/',
-
-    classifiers = [
-       'Framework :: Buildout',
-       'Development Status :: 4 - Beta',
-       'Intended Audience :: Developers',
-       'License :: OSI Approved :: Zope Public License',
-       'Topic :: Software Development :: Build Tools',
-       'Topic :: Software Development :: Libraries :: Python Modules',
-       ],
- 
-    )

Copied: cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py (from rev 79142, cc.buildout_reports/trunk/setup.py)
===================================================================
--- cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py	                        (rev 0)
+++ cc.buildout_reports/tags/cc.buildout_reports-0.1/setup.py	2007-08-22 18:33:55 UTC (rev 79143)
@@ -0,0 +1,64 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""zc.buildout recipes for generating developer reports
+"""
+
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(
+    name = "cc.buildout_reports",
+    version = "0.1",
+    packages = find_packages('.'),
+    namespace_packages = ['cc',],
+    
+    # scripts and dependencies
+    install_requires = ['setuptools',
+                        'zc.buildout',
+                        ],
+
+    entry_points = {'zc.buildout':['xxx = cc.buildout_reports:XxxReport'],
+                    },
+    zip_safe = False,
+    include_package_data = True,
+    
+    # author metadata
+    author = 'Nathan R. Yergler',
+    author_email = 'nathan at creativecommons.org',
+    description = "Recipes for generating developer reports with zc.buildout.",
+    long_description = (
+        read('README.txt')
+        + '\n' +
+        read('CHANGES.txt')
+        + '\n' +
+        'Download\n'
+        '**********************\n'
+        ),
+    license = 'ZPL 2.1',
+    keywords = 'development build tools buildout',
+    url = 'http://python.org/pypi/cc.buildout_reports/',
+
+    classifiers = [
+       'Framework :: Buildout',
+       'Development Status :: 4 - Beta',
+       'Intended Audience :: Developers',
+       'License :: OSI Approved :: Zope Public License',
+       'Topic :: Software Development :: Build Tools',
+       'Topic :: Software Development :: Libraries :: Python Modules',
+       ],
+ 
+    )



More information about the Checkins mailing list