[Checkins] SVN: zope.dottedname/trunk/ Move the README.txt in the egg, since it contains tests and we want test to work with the released egg.
Sylvain Viollon
sylvain at infrae.com
Tue Jan 27 09:15:28 EST 2009
Log message for revision 95202:
Move the README.txt in the egg, since it contains tests and we want test to work with the released egg.
Changed:
U zope.dottedname/trunk/CHANGES.txt
D zope.dottedname/trunk/README.txt
U zope.dottedname/trunk/setup.py
A zope.dottedname/trunk/src/zope/dottedname/README.txt
U zope.dottedname/trunk/src/zope/dottedname/tests.py
-=-
Modified: zope.dottedname/trunk/CHANGES.txt
===================================================================
--- zope.dottedname/trunk/CHANGES.txt 2009-01-27 14:10:55 UTC (rev 95201)
+++ zope.dottedname/trunk/CHANGES.txt 2009-01-27 14:15:28 UTC (rev 95202)
@@ -1,10 +1,10 @@
CHANGES
=======
-3.4.5 (unreleased)
+3.4.5 (2009-01-27)
------------------
-- ...
+- Move README.txt in the egg, so tests works with the released egg as well.
3.4.4 (2009-01-27)
------------------
Deleted: zope.dottedname/trunk/README.txt
===================================================================
--- zope.dottedname/trunk/README.txt 2009-01-27 14:10:55 UTC (rev 95201)
+++ zope.dottedname/trunk/README.txt 2009-01-27 14:15:28 UTC (rev 95202)
@@ -1,61 +0,0 @@
-======================
-Dotted Name Resolution
-======================
-
-The ``zope.dottedname`` module provides one function, ``resolve`` that
-resolves strings containing dotted names into the appropriate python
-object.
-
-Dotted names are resolved by importing modules and by getting
-attributes from imported modules. Names may be relative, provided the
-module they are relative to is supplied.
-
-Here are some examples of importing absolute names::
-
- >>> from zope.dottedname.resolve import resolve
-
- >>> resolve('unittest')
- <module 'unittest' from '...'>
-
- >>> resolve('datetime.datetime')
- <type 'datetime.datetime'>
-
- >>> resolve('datetime.datetime.now')
- <built-in method now of type object at ...>
-
- >>> resolve('non existent module')
- Traceback (most recent call last):
- ...
- ImportError: No module named non existent module
-
- >>> resolve('__doc__')
- Traceback (most recent call last):
- ...
- ImportError: No module named __doc__
-
- >>> resolve('datetime.foo')
- Traceback (most recent call last):
- ...
- ImportError: No module named foo
-
- >>> resolve('os.path.split').__name__
- 'split'
-
-Here are some examples of importing relative names::
-
- >>> resolve('.split', 'os.path')
- <function split at ...>
-
- >>> resolve('..system', 'os.path')
- <built-in function system>
-
- >>> resolve('...datetime', 'os.path')
- <module 'datetime' from '...'>
-
-NB: When relative names are imported, a module the name is relative to
-**must** be supplied::
-
- >>> resolve('.split').__name__
- Traceback (most recent call last):
- ...
- ValueError: relative name without base module
Modified: zope.dottedname/trunk/setup.py
===================================================================
--- zope.dottedname/trunk/setup.py 2009-01-27 14:10:55 UTC (rev 95201)
+++ zope.dottedname/trunk/setup.py 2009-01-27 14:15:28 UTC (rev 95202)
@@ -26,7 +26,7 @@
author_email='zope-dev at zope.org',
description='Resolver for Python dotted names.',
long_description='\n\n'.join((
- read('README.txt'),
+ read('src', 'zope', 'dottedname', 'README.txt'),
read('CHANGES.txt'),
)),
keywords = 'resolve dotted name',
Copied: zope.dottedname/trunk/src/zope/dottedname/README.txt (from rev 95186, zope.dottedname/trunk/README.txt)
===================================================================
--- zope.dottedname/trunk/src/zope/dottedname/README.txt (rev 0)
+++ zope.dottedname/trunk/src/zope/dottedname/README.txt 2009-01-27 14:15:28 UTC (rev 95202)
@@ -0,0 +1,61 @@
+======================
+Dotted Name Resolution
+======================
+
+The ``zope.dottedname`` module provides one function, ``resolve`` that
+resolves strings containing dotted names into the appropriate python
+object.
+
+Dotted names are resolved by importing modules and by getting
+attributes from imported modules. Names may be relative, provided the
+module they are relative to is supplied.
+
+Here are some examples of importing absolute names::
+
+ >>> from zope.dottedname.resolve import resolve
+
+ >>> resolve('unittest')
+ <module 'unittest' from '...'>
+
+ >>> resolve('datetime.datetime')
+ <type 'datetime.datetime'>
+
+ >>> resolve('datetime.datetime.now')
+ <built-in method now of type object at ...>
+
+ >>> resolve('non existent module')
+ Traceback (most recent call last):
+ ...
+ ImportError: No module named non existent module
+
+ >>> resolve('__doc__')
+ Traceback (most recent call last):
+ ...
+ ImportError: No module named __doc__
+
+ >>> resolve('datetime.foo')
+ Traceback (most recent call last):
+ ...
+ ImportError: No module named foo
+
+ >>> resolve('os.path.split').__name__
+ 'split'
+
+Here are some examples of importing relative names::
+
+ >>> resolve('.split', 'os.path')
+ <function split at ...>
+
+ >>> resolve('..system', 'os.path')
+ <built-in function system>
+
+ >>> resolve('...datetime', 'os.path')
+ <module 'datetime' from '...'>
+
+NB: When relative names are imported, a module the name is relative to
+**must** be supplied::
+
+ >>> resolve('.split').__name__
+ Traceback (most recent call last):
+ ...
+ ValueError: relative name without base module
Property changes on: zope.dottedname/trunk/src/zope/dottedname/README.txt
___________________________________________________________________
Added: svn:mergeinfo
+
Added: svn:eol-style
+ native
Modified: zope.dottedname/trunk/src/zope/dottedname/tests.py
===================================================================
--- zope.dottedname/trunk/src/zope/dottedname/tests.py 2009-01-27 14:10:55 UTC (rev 95201)
+++ zope.dottedname/trunk/src/zope/dottedname/tests.py 2009-01-27 14:15:28 UTC (rev 95202)
@@ -21,7 +21,7 @@
def test_suite():
return unittest.TestSuite((
DocFileSuite(
- os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..','..','README.txt')),
+ os.path.abspath(os.path.join(os.path.dirname(__file__), 'README.txt')),
optionflags=REPORT_NDIFF|ELLIPSIS,
module_relative=False,
),
More information about the Checkins
mailing list