[Checkins] SVN: zope.event/trunk/ Fix package's mailing list address and homepage.
Dan Korostelev
nadako at gmail.com
Tue Mar 3 15:41:26 EST 2009
Log message for revision 97458:
Fix package's mailing list address and homepage.
Remove pre-python 2.4 testing patch.
Update documentation a bit.
Changed:
U zope.event/trunk/README.txt
U zope.event/trunk/setup.py
U zope.event/trunk/src/zope/event/tests.py
-=-
Modified: zope.event/trunk/README.txt
===================================================================
--- zope.event/trunk/README.txt 2009-03-03 20:00:37 UTC (rev 97457)
+++ zope.event/trunk/README.txt 2009-03-03 20:41:25 UTC (rev 97458)
@@ -2,13 +2,11 @@
zope.event
**********
-The zope.event package provides a simple event system. It provides:
+The ``zope.event`` package provides a simple event system. It provides:
- An event publishing system
- A very simple event-dispatching system on which more sophisticated
- event dispatching systems can be built. (For example, a type-based
- event dispatching system that builds on zope.event can be found in
- zope.component.
-
-.. contents::
+ event dispatching systems can be built. For example, a type-based
+ event dispatching system that builds on ``zope.event`` can be found in
+ ``zope.component``.
Modified: zope.event/trunk/setup.py
===================================================================
--- zope.event/trunk/setup.py 2009-03-03 20:00:37 UTC (rev 97457)
+++ zope.event/trunk/setup.py 2009-03-03 20:41:25 UTC (rev 97458)
@@ -23,16 +23,14 @@
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-name = 'zope.event'
-
setup(
- name=name,
- version='3.4.1a1',
- url='http://www.python.org/pypi/'+name,
+ name='zope.event',
+ version='3.4.1',
+ url='http://pypi.python.org/pypi/zope.event',
license='ZPL 2.1',
- description='Zope Event Publication',
+ description='Very basic event publishing system',
author='Zope Corporation and Contributors',
- author_email='zope3-dev at zope.org',
+ author_email='zope-dev at zope.org',
long_description=(
read('README.txt')
+ '\n' +
@@ -42,7 +40,7 @@
read('src', 'zope', 'event', 'README.txt')
+ '\n' +
'Download\n'
- '**********************\n'
+ '********\n'
),
packages=find_packages('src'),
package_dir={'': 'src'},
Modified: zope.event/trunk/src/zope/event/tests.py
===================================================================
--- zope.event/trunk/src/zope/event/tests.py 2009-03-03 20:00:37 UTC (rev 97457)
+++ zope.event/trunk/src/zope/event/tests.py 2009-03-03 20:41:25 UTC (rev 97458)
@@ -15,43 +15,10 @@
$Id$
"""
+import unittest
+import doctest
-import os, doctest, new, unittest
-
-try:
- DocFileSuite = doctest.DocFileSuite # >= Python 2.4.0a2
-except AttributeError:
- # <= Python 2.4.0a1
-
- def DocFileSuite(*paths):
- """Utility to create doc tests from readme files
-
- Eventually, this, or something like it, will be part of doctest
- """
- # It's not entirely obvious how to connection this single string
- # with unittest. For now, re-use the _utest() function that comes
- # standard with doctest in Python 2.3. One problem is that the
- # error indicator doesn't point to the line of the doctest file
- # that failed.
- t = doctest.Tester(globs={'__name__': '__main__'})
- suite = unittest.TestSuite()
- dir = os.path.split(__file__)[0]
- for path in paths:
- path = os.path.join(dir, path)
- source = open(path).read()
- def runit(path=path, source=source):
- doctest._utest(t, path, source, path, 0)
- runit = new.function(runit.func_code, runit.func_globals, path,
- runit.func_defaults, runit.func_closure)
- f = unittest.FunctionTestCase(runit,
- description="doctest from %s" % path)
- suite.addTest(f)
- return suite
-
def test_suite():
return unittest.TestSuite((
- DocFileSuite('README.txt'),
+ doctest.DocFileSuite('README.txt'),
))
-
-if __name__ == '__main__':
- unittest.main(defaultTest='test_suite')
More information about the Checkins
mailing list