# HG changeset patch # User Walter Cruz # Date 1204307673 10800 # Node ID 3cdd7f281e2846adae5f67393d14ee8cc36f6a3c # Parent 85ebb726f0314149502ceabb957fe229e3545ee6 Transformando tudo em um egg diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/build/lib/nose_notify/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/build/lib/nose_notify/__init__.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,1 @@ +# diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/build/lib/nose_notify/nose_notify.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/build/lib/nose_notify/nose_notify.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,39 @@ +import sys +from nose.plugins.base import Plugin + +from StringIO import StringIO + +import pygtk +pygtk.require('2.0') +import pynotify +from new import instancemethod + +def writeln(self,*args): + for i in args: + self.write(i) + self.write("\n") + +class NoseNotifyPlugin(Plugin): + + enabled = True + score = 1000 + name = "NotifyPlugin" + + def __init__(self): + self.stdout = [] + self._buf = StringIO() + self._buf.writeln = instancemethod(writeln,self._buf,StringIO) + + def configure(self, options, conf): + pass + + def options(self, parser, env): + pass + + def finalize(self, result): + result.stream = self._buf + result.printSummary(0,2) + pynotify.init("Basics") + n = pynotify.Notification("Tests", self._buf.getvalue()) + n.show() + return None \ No newline at end of file diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/build/lib/nose_notify/run_nose.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/build/lib/nose_notify/run_nose.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,5 @@ +import unittest +from nose.plugins.plugintest import run +from notify_test import NotifyPlugin + +run(suite=unittest.TestSuite(tests=[]),plugins=[NotifyPlugin()]) \ No newline at end of file diff -r 85ebb726f031 -r 3cdd7f281e28 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 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/PKG-INFO --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/PKG-INFO Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,10 @@ +Metadata-Version: 1.0 +Name: nose-notify +Version: 0.2dev +Summary: Nose Notify +Home-page: UNKNOWN +Author: Walter Rodrigo de Sá Cruz +Author-email: walter.php@gmail.com +License: GPL +Description: Nose Notify +Platform: UNKNOWN diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/SOURCES.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/SOURCES.txt Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,12 @@ +setup.cfg +setup.py +nose_notify/__init__.py +nose_notify/nose_notify.py +nose_notify/run_nose.py +nose_notify.egg-info/PKG-INFO +nose_notify.egg-info/SOURCES.txt +nose_notify.egg-info/dependency_links.txt +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 diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/dependency_links.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/dependency_links.txt Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,1 @@ + diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/entry_points.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/entry_points.txt Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,3 @@ +[nose.plugins.0.10] +NoseNotify = nose_notify.nose_notify:NoseNotifyPlugin + diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/paster_plugins.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/paster_plugins.txt Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,1 @@ +PasteScript diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/top_level.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/top_level.txt Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,1 @@ +nose_notify diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify.egg-info/zip-safe --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify.egg-info/zip-safe Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,1 @@ + diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify/__init__.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify/__init__.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,1 @@ +# diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify/nose_notify.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify/nose_notify.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,39 @@ +import sys +from nose.plugins.base import Plugin + +from StringIO import StringIO + +import pygtk +pygtk.require('2.0') +import pynotify +from new import instancemethod + +def writeln(self,*args): + for i in args: + self.write(i) + self.write("\n") + +class NoseNotifyPlugin(Plugin): + + enabled = True + score = 1000 + name = "NotifyPlugin" + + def __init__(self): + self.stdout = [] + self._buf = StringIO() + self._buf.writeln = instancemethod(writeln,self._buf,StringIO) + + def configure(self, options, conf): + pass + + def options(self, parser, env): + pass + + def finalize(self, result): + result.stream = self._buf + result.printSummary(0,2) + pynotify.init("Basics") + n = pynotify.Notification("Tests", self._buf.getvalue()) + n.show() + return None \ No newline at end of file diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/nose_notify/run_nose.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/nose_notify/run_nose.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,5 @@ +import unittest +from nose.plugins.plugintest import run +from notify_test import NotifyPlugin + +run(suite=unittest.TestSuite(tests=[]),plugins=[NotifyPlugin()]) \ No newline at end of file diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/setup.cfg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/setup.cfg Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,3 @@ +[egg_info] +tag_build = dev +tag_svn_revision = true diff -r 85ebb726f031 -r 3cdd7f281e28 nose_notify/setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nose_notify/setup.py Fri Feb 29 14:54:33 2008 -0300 @@ -0,0 +1,28 @@ +from setuptools import setup, find_packages +import sys, os + +version = '0.2' + +setup(name='nose_notify', + version=version, + description="Nose Notify", + long_description="""\ +Nose Notify""", + classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + keywords='', + author='Walter Rodrigo de S\xe1 Cruz', + author_email='walter.php@gmail.com', + url='', + license='GPL', + packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), + include_package_data=True, + zip_safe=True, + install_requires=[ + # -*- Extra requirements: -*- + ], + entry_points = { + 'nose.plugins.0.10': [ + 'NoseNotify= nose_notify.nose_notify:NoseNotifyPlugin' + ] + } + ) diff -r 85ebb726f031 -r 3cdd7f281e28 notify_test.py --- a/notify_test.py Fri Feb 29 14:33:14 2008 -0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,39 +0,0 @@ -import sys -from nose.plugins.base import Plugin - -from StringIO import StringIO - -import pygtk -pygtk.require('2.0') -import pynotify -from new import instancemethod - -def writeln(self,*args): - for i in args: - self.write(i) - self.write("\n") - -class NotifyPlugin(Plugin): - - enabled = True - score = 1000 - name = "NotifyPlugin" - - def __init__(self): - self.stdout = [] - self._buf = StringIO() - self._buf.writeln = instancemethod(writeln,self._buf,StringIO) - - def configure(self, options, conf): - pass - - def options(self, parser, env): - pass - - def finalize(self, result): - result.stream = self._buf - result.printSummary(0,2) - pynotify.init("Basics") - n = pynotify.Notification("Tests", self._buf.getvalue()) - n.show() - return None \ No newline at end of file diff -r 85ebb726f031 -r 3cdd7f281e28 run_nose.py --- a/run_nose.py Fri Feb 29 14:33:14 2008 -0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -import unittest -from nose.plugins.plugintest import run -from notify_test import NotifyPlugin - -run(suite=unittest.TestSuite(tests=[]),plugins=[NotifyPlugin()]) \ No newline at end of file