[Checkins] SVN: z3c.flashmessage/trunk/ - moved change log entries to CHANGES.txt

Michael Howitz mh at gocept.com
Sat Oct 2 09:20:33 EDT 2010


Log message for revision 117188:
  - moved change log entries to CHANGES.txt
  - fixed typos in README.txt
  - dropped test dependency on zope.app.testing
  - include CHANGES.txt in long_description
  

Changed:
  U   z3c.flashmessage/trunk/CHANGES.txt
  U   z3c.flashmessage/trunk/setup.py
  U   z3c.flashmessage/trunk/src/z3c/flashmessage/README.txt
  U   z3c.flashmessage/trunk/src/z3c/flashmessage/tests.py

-=-
Modified: z3c.flashmessage/trunk/CHANGES.txt
===================================================================
--- z3c.flashmessage/trunk/CHANGES.txt	2010-10-02 13:18:43 UTC (rev 117187)
+++ z3c.flashmessage/trunk/CHANGES.txt	2010-10-02 13:20:32 UTC (rev 117188)
@@ -1,21 +1,27 @@
-
 =======
 CHANGES
 =======
 
 1.1 (unreleased)
-----------------
+================
 
-* ...
+* Removed test dependency on `zope.app.testing`.
 
+
 1.0 (2007-12-06)
-----------------
+================
 
-* Updated dependency to zope.session instead of zope.app.session to get rid of
+* Updated dependency to `zope.session` instead of `zope.app.session` to get rid of
   deprecation warnings.
 
 
-Before 1.0
-----------
+1.0b2 (2007-09-12)
+==================
 
-No changes were tracked.
+* Bugfix: When there was more than one message in a source not all messages
+  would be returned by the receiver.
+
+1.0b1 (2007-08-22)
+==================
+
+* Initial public release.
\ No newline at end of file

Modified: z3c.flashmessage/trunk/setup.py
===================================================================
--- z3c.flashmessage/trunk/setup.py	2010-10-02 13:18:43 UTC (rev 117187)
+++ z3c.flashmessage/trunk/setup.py	2010-10-02 13:20:32 UTC (rev 117188)
@@ -1,19 +1,24 @@
 import os.path
 from setuptools import setup, find_packages
 
+def read(*path_elements):
+    return "\n\n" + file(os.path.join(*path_elements)).read()
 
+
 setup(
     name = "z3c.flashmessage",
     version = "1.1dev",
     author = "Jasper Op de Coul, Christian Theune",
     author_email = "jasper at infrae.com, ct at gocept.com",
     description = "A package for sending `flash messages` to users.",
-    long_description=file(os.path.join(
-        os.path.dirname(__file__), 'src', 'z3c', 'flashmessage',
-        'README.txt')).read(),
+    long_description=(
+        '.. contents::\n\n' +
+        read('src', 'z3c', 'flashmessage', 'README.txt') +
+        read('CHANGES.txt')
+        ),
     url = 'http://pypi.python.org/pypi/z3c.flashmessage/',
     license = "ZPL 2.1",
-    keywords = "zope3",
+    keywords = "zope3 message zope session",
     zip_safe=False,
     packages = find_packages('src'),
     include_package_data = True,
@@ -25,6 +30,8 @@
                         'zope.component',
                         'zope.session',
                         'zope.security'],
-    extras_require=dict(test=['zope.app.testing',
-                              'zope.app.zcmlfiles'])
+    extras_require=dict(test=[
+        'zope.app.zcmlfiles',
+        'zope.testing',
+        ])
 )

Modified: z3c.flashmessage/trunk/src/z3c/flashmessage/README.txt
===================================================================
--- z3c.flashmessage/trunk/src/z3c/flashmessage/README.txt	2010-10-02 13:18:43 UTC (rev 117187)
+++ z3c.flashmessage/trunk/src/z3c/flashmessage/README.txt	2010-10-02 13:20:32 UTC (rev 117188)
@@ -55,7 +55,7 @@
 There is a global receiver that queries all message sources that are set up as
 utilities. Let's set up a session message source as a utility:
 
->>> from zope.component import provideUtility 
+>>> from zope.component import provideUtility
 >>> provideUtility(source)
 >>> source.send(u'Test!')
 
@@ -116,8 +116,8 @@
 
 One solution is to configure your system to store flashmessages in
 RAM. You would do this by configuring a utility providing
-z3c.flashmessages.interfaces.IMessageSource with the factory set to
-z3c.flashmessages.sources.RAMMessageSource, and a specific name if
+``z3c.flashmessage.interfaces.IMessageSource`` with the factory set to
+``z3c.flashmessage.sources.RAMMessageSource``, and a specific name if
 your application expects one.
 
 RAM storage is much faster and removes the persistence issues
@@ -128,13 +128,3 @@
 supports session affinity (so a specific client always hits the same
 back end server).  This somewhat reduces the performance benefits of
 clustering.
-
-
-Changes
-=======
-
-1.0b2
------
-
-* Bugfix: When there was more than one message in a source not all messages
-  would be returned by the receiver.

Modified: z3c.flashmessage/trunk/src/z3c/flashmessage/tests.py
===================================================================
--- z3c.flashmessage/trunk/src/z3c/flashmessage/tests.py	2010-10-02 13:18:43 UTC (rev 117187)
+++ z3c.flashmessage/trunk/src/z3c/flashmessage/tests.py	2010-10-02 13:20:32 UTC (rev 117188)
@@ -4,18 +4,14 @@
 # $Id$
 """Test harness"""
 
-import unittest
 import doctest
-import os
-
-from zope.app.testing.functional import FunctionalDocFileSuite, ZCMLLayer
-import zope.security.management
+import z3c.flashmessage
+import zope.app.wsgi.testlayer
 import zope.publisher.browser
+import zope.security.management
 
 
-FlashMessageLayer = ZCMLLayer(
-    os.path.join(os.path.dirname(__file__), 'ftesting.zcml'),
-    __name__, 'FlashMessageLayer', allow_teardown=True)
+FlashMessageLayer = zope.app.wsgi.testlayer.BrowserLayer(z3c.flashmessage)
 
 
 def setUp(test):
@@ -24,15 +20,11 @@
     interaction = zope.security.management.getInteraction()
     interaction.add(request)
 
-def tearDown(test):
-    pass
 
 def test_suite():
-    suite = unittest.TestSuite()
-    test = FunctionalDocFileSuite('README.txt',
-                                  optionflags=doctest.ELLIPSIS,
-                                  setUp=setUp,
-                                  tearDown=tearDown)
-    test.layer = FlashMessageLayer
-    suite.addTest(test)
+    suite = doctest.DocFileSuite(
+        'README.txt',
+        optionflags=doctest.ELLIPSIS,
+        setUp=setUp)
+    suite.layer = FlashMessageLayer
     return suite



More information about the checkins mailing list