[Checkins] SVN: z3c.autoinclude/trunk/s add back in slinkp's test,
but make it fail properly now instead of improperly
Ethan Jucovy
ejucovy at openplans.org
Fri Apr 18 17:52:24 EDT 2008
Log message for revision 85477:
add back in slinkp's test, but make it fail properly now instead of improperly
Changed:
U z3c.autoinclude/trunk/setup.py
U z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt
-=-
Modified: z3c.autoinclude/trunk/setup.py
===================================================================
--- z3c.autoinclude/trunk/setup.py 2008-04-18 21:35:29 UTC (rev 85476)
+++ z3c.autoinclude/trunk/setup.py 2008-04-18 21:52:23 UTC (rev 85477)
@@ -5,7 +5,7 @@
open('CHANGES.txt').read())
setup(name='z3c.autoinclude',
- version='0.3dev',
+ version='0.2.1dev',
description="Automatically include ZCML for dependencies.",
long_description=long_description,
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers
Modified: z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt
===================================================================
--- z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt 2008-04-18 21:35:29 UTC (rev 85476)
+++ z3c.autoinclude/trunk/src/z3c/autoinclude/README.txt 2008-04-18 21:52:23 UTC (rev 85477)
@@ -301,10 +301,14 @@
``base2`` is a namespace package. ``base2.plug`` is a package that
-defines a plugin for base2.
+defines a plugin for base2; it extends ``base2``s namespace.
-# >>> import base2
-# >>> dummy = xmlconfig.file(resource_filename('base2', 'configure.zcml'),
-# ... package=base2)
-# >>> pprint(test_log)
-# [u'base2.plug has been loaded']
+ >>> clear_test_log()
+ >>> import base2
+ >>> from pkg_resources import Requirement, resource_filename
+ >>> req = Requirement.parse('base2')
+ >>> import os
+ >>> filename = resource_filename(req, os.path.join('base2', 'configure.zcml'))
+ >>> dummy = xmlconfig.file(filename, package=base2)
+ >>> pprint(test_log)
+ [u'base2.plug has been loaded']
More information about the Checkins
mailing list