# HG changeset patch # User Walter Cruz # Date 1204554534 10800 # Node ID 927dfc9d1f8a34cf57462a33a5d508fc40f32775 # Parent c047cd63d175ac54b23c0228ef90aadff4461fb0 Adding license and making the command line switch work diff -r c047cd63d175 -r 927dfc9d1f8a nose_notify/build/lib/nose_notify/nose_notify.py --- a/nose_notify/build/lib/nose_notify/nose_notify.py Fri Feb 29 18:57:44 2008 -0300 +++ b/nose_notify/build/lib/nose_notify/nose_notify.py Mon Mar 03 11:28:54 2008 -0300 @@ -76,16 +76,15 @@ def startTest(self, test): pass - #self._buf.write(test.shortDescription() or str(test)) def stopTest(self, test): pass - #self._buf.write(' ') def configure(self, options, conf): if options.with_notify: self.enabled = True + return def options(self, parser, env): Plugin.options(self, parser, env) - parser.add_option("--with-notify",dest='with_notify',default=False) \ No newline at end of file + parser.add_option("--with-notify", action='store_true', dest='with_notify', default = False, help= 'Use gnome notify' ) \ No newline at end of file diff -r c047cd63d175 -r 927dfc9d1f8a nose_notify/dist/nose_notify-0.2dev-py2.5.egg Binary file nose_notify/dist/nose_notify-0.2dev-py2.5.egg has changed diff -r c047cd63d175 -r 927dfc9d1f8a nose_notify/nose_notify.egg-info/SOURCES.txt --- a/nose_notify/nose_notify.egg-info/SOURCES.txt Fri Feb 29 18:57:44 2008 -0300 +++ b/nose_notify/nose_notify.egg-info/SOURCES.txt Mon Mar 03 11:28:54 2008 -0300 @@ -9,4 +9,4 @@ nose_notify.egg-info/entry_points.txt nose_notify.egg-info/paster_plugins.txt nose_notify.egg-info/top_level.txt -nose_notify.egg-info/zip-safe +nose_notify.egg-info/zip-safe \ No newline at end of file diff -r c047cd63d175 -r 927dfc9d1f8a nose_notify/nose_notify/nose_notify.py --- a/nose_notify/nose_notify/nose_notify.py Fri Feb 29 18:57:44 2008 -0300 +++ b/nose_notify/nose_notify/nose_notify.py Mon Mar 03 11:28:54 2008 -0300 @@ -1,3 +1,24 @@ +# Copyright (C) 2008 by Walter Cruz +# walter.php@gmail.com +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the +# Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# Public License can be found at http://www.gnu.org/copyleft/gpl.html + + import sys from nose.plugins.base import Plugin @@ -76,16 +97,15 @@ def startTest(self, test): pass - #self._buf.write(test.shortDescription() or str(test)) def stopTest(self, test): pass - #self._buf.write(' ') def configure(self, options, conf): if options.with_notify: self.enabled = True + return def options(self, parser, env): Plugin.options(self, parser, env) - parser.add_option("--with-notify",dest='with_notify',default=False) \ No newline at end of file + parser.add_option("--with-notify", action='store_true', dest='with_notify', default = False, help= 'Use gnome notify' ) \ No newline at end of file