[Checkins] SVN: zope.dottedname/t tagging 3.4.3
Chris Withers
chris at simplistix.co.uk
Wed Dec 3 04:18:43 EST 2008
Log message for revision 93567:
tagging 3.4.3
Changed:
A zope.dottedname/tags/3.4.3/
D zope.dottedname/tags/3.4.3/CHANGES.txt
A zope.dottedname/tags/3.4.3/CHANGES.txt
D zope.dottedname/tags/3.4.3/README.txt
A zope.dottedname/tags/3.4.3/README.txt
D zope.dottedname/tags/3.4.3/setup.py
A zope.dottedname/tags/3.4.3/setup.py
D zope.dottedname/tags/3.4.3/src/
A zope.dottedname/tags/3.4.3/src/
D zope.dottedname/tags/3.4.3/src/zope/
A zope.dottedname/tags/3.4.3/src/zope/
D zope.dottedname/tags/3.4.3/src/zope/dottedname/resolve.txt
D zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py
A zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py
U zope.dottedname/trunk/setup.py
-=-
Deleted: zope.dottedname/tags/3.4.3/CHANGES.txt
===================================================================
--- zope.dottedname/trunk/CHANGES.txt 2008-12-02 18:33:31 UTC (rev 93549)
+++ zope.dottedname/tags/3.4.3/CHANGES.txt 2008-12-03 09:18:42 UTC (rev 93567)
@@ -1,19 +0,0 @@
-=======
-CHANGES
-=======
-
-3.4.2 (2007-10-02)
-------------------
-
-- Fix broken release.
-
-3.4.1 (2007-10-02)
-------------------
-
-- Updated package meta-data.
-
-
-3.4.0 (2007-07-19)
-------------------
-
-- Initial Zope-independent release.
Copied: zope.dottedname/tags/3.4.3/CHANGES.txt (from rev 93550, zope.dottedname/trunk/CHANGES.txt)
===================================================================
--- zope.dottedname/tags/3.4.3/CHANGES.txt (rev 0)
+++ zope.dottedname/tags/3.4.3/CHANGES.txt 2008-12-03 09:18:42 UTC (rev 93567)
@@ -0,0 +1,23 @@
+CHANGES
+=======
+
+3.4.3 (2008-12-02)
+------------------
+
+- More documentation and tests.
+
+3.4.2 (2007-10-02)
+------------------
+
+- Fix broken release.
+
+3.4.1 (2007-10-02)
+------------------
+
+- Updated package meta-data.
+
+
+3.4.0 (2007-07-19)
+------------------
+
+- Initial Zope-independent release.
Deleted: zope.dottedname/tags/3.4.3/README.txt
===================================================================
--- zope.dottedname/trunk/README.txt 2008-12-02 18:33:31 UTC (rev 93549)
+++ zope.dottedname/tags/3.4.3/README.txt 2008-12-03 09:18:42 UTC (rev 93567)
@@ -1,11 +0,0 @@
-======================
-Dotted Name Resolution
-======================
-
-Overview
---------
-
-The ``zope.dottedname.resolve`` module provides a function for resolving
-dotted names. Dotted names are resolved by importing modules and by
-getting attributes from imported modules. Names with leading dots are
-relative.
Copied: zope.dottedname/tags/3.4.3/README.txt (from rev 93550, zope.dottedname/trunk/README.txt)
===================================================================
--- zope.dottedname/tags/3.4.3/README.txt (rev 0)
+++ zope.dottedname/tags/3.4.3/README.txt 2008-12-03 09:18:42 UTC (rev 93567)
@@ -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' (built-in)>
+
+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
Deleted: zope.dottedname/tags/3.4.3/setup.py
===================================================================
--- zope.dottedname/trunk/setup.py 2008-12-02 18:33:31 UTC (rev 93549)
+++ zope.dottedname/tags/3.4.3/setup.py 2008-12-03 09:18:42 UTC (rev 93567)
@@ -1,62 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Setup for zope.documenttemplate package
-
-$Id$
-"""
-import os
-from setuptools import setup, find_packages
-
-def read(*rnames):
- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-
-setup(name="zope.dottedname",
- version = '3.4.3dev',
- author='Zope Corporation and Contributors',
- author_email='zope3-dev at zope.org',
- description='Resolver for Python dotted names.',
- long_description=(
- read('README.txt')
- + '\n\n' +
- 'Detailed Documentation' +
- '----------------------'
- + '\n\n' +
- read('src', 'zope', 'dottedname', 'resolve.txt')
- + '\n\n' +
- read('CHANGES.txt')
- ),
- keywords = 'resolve dotted name',
- classifiers = [
- 'Development Status :: 5 - Production/Stable',
- 'Environment :: Web Environment',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: Zope Public License',
- 'Programming Language :: Python',
- 'Natural Language :: English',
- 'Operating System :: OS Independent',
- 'Topic :: Internet :: WWW/HTTP',
- 'Framework :: Zope3'],
- url='http://cheeseshop.python.org/pypi/zope.dottedname',
- license='ZPL 2.1',
- packages=find_packages('src'),
- package_dir = {'': 'src'},
- namespace_packages=['zope'],
- extras_require = dict(
- test=['zope.testing'],
- ),
- install_requires = ['setuptools'],
- include_package_data=True,
- zip_safe = False
- )
-
Copied: zope.dottedname/tags/3.4.3/setup.py (from rev 93551, zope.dottedname/trunk/setup.py)
===================================================================
--- zope.dottedname/tags/3.4.3/setup.py (rev 0)
+++ zope.dottedname/tags/3.4.3/setup.py 2008-12-03 09:18:42 UTC (rev 93567)
@@ -0,0 +1,55 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id$
+"""
+import os
+from setuptools import setup, find_packages
+
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name="zope.dottedname",
+ version = '3.4.3',
+ author='Zope Corporation and Contributors',
+ author_email='zope-dev at zope.org',
+ description='Resolver for Python dotted names.',
+ long_description='\n\n'.join(
+ read('README.txt'),
+ read('CHANGES.txt'),
+ ),
+ keywords = 'resolve dotted name',
+ classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Zope Public License',
+ 'Programming Language :: Python',
+ 'Natural Language :: English',
+ 'Operating System :: OS Independent',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Framework :: Zope3'],
+ url='http://pypi.python.org/pypi/zope.dottedname',
+ license='ZPL 2.1',
+ packages=find_packages('src'),
+ package_dir = {'': 'src'},
+ namespace_packages=['zope'],
+ extras_require = dict(
+ test=['zope.testing'],
+ ),
+ install_requires = ['setuptools'],
+ include_package_data=True,
+ zip_safe = False
+ )
+
Deleted: zope.dottedname/tags/3.4.3/src/zope/dottedname/resolve.txt
===================================================================
--- zope.dottedname/trunk/src/zope/dottedname/resolve.txt 2008-12-02 18:33:31 UTC (rev 93549)
+++ zope.dottedname/tags/3.4.3/src/zope/dottedname/resolve.txt 2008-12-03 09:18:42 UTC (rev 93567)
@@ -1,32 +0,0 @@
-Resolution of dotted names
-==========================
-
-The ``zope.dottedname.resolve`` module provides a function for resolving
-dotted names. Dotted names are resolved by importing modules and by
-getting attributes from imported modules. Names with leading dots are
-relative.
-
-To illustrate, we'll use the dotted name resolver to access objects in
-the ``os`` module::
-
- >>> from zope.dottedname.resolve import resolve
- >>> resolve('os.path.split').__name__
- 'split'
-
-Here, we used an absolute name. We can also using a relative name::
-
- >>> resolve('.split').__name__
- Traceback (most recent call last):
- ...
- ValueError: relative name without base module
-
-But we need to provide the module the name is relative to::
-
- >>> resolve('.split', 'os.path').__name__
- 'split'
-
- >>> resolve('..system', 'os.path').__name__
- 'system'
-
- >>> resolve('...datetime', 'os.path').__name__
- 'datetime'
Deleted: zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py
===================================================================
--- zope.dottedname/trunk/src/zope/dottedname/tests.py 2008-12-02 18:33:31 UTC (rev 93549)
+++ zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py 2008-12-03 09:18:42 UTC (rev 93567)
@@ -1,28 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""test resolution of dotted names
-
-$Id$
-"""
-import unittest
-from zope.testing import doctest
-
-def test_suite():
- return unittest.TestSuite((
- doctest.DocFileSuite('resolve.txt'),
- ))
-
-if __name__ == '__main__':
- unittest.main(defaultTest='test_suite')
-
Copied: zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py (from rev 93550, zope.dottedname/trunk/src/zope/dottedname/tests.py)
===================================================================
--- zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py (rev 0)
+++ zope.dottedname/tags/3.4.3/src/zope/dottedname/tests.py 2008-12-03 09:18:42 UTC (rev 93567)
@@ -0,0 +1,31 @@
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""test resolution of dotted names
+
+$Id$
+"""
+import os,unittest
+from zope.testing.doctest import DocFileSuite,REPORT_NDIFF,ELLIPSIS
+
+def test_suite():
+ return unittest.TestSuite((
+ DocFileSuite(
+ os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..','..','README.txt')),
+ optionflags=REPORT_NDIFF|ELLIPSIS
+ ),
+ ))
+
+if __name__ == '__main__':
+ unittest.main(defaultTest='test_suite')
+
Modified: zope.dottedname/trunk/setup.py
===================================================================
--- zope.dottedname/trunk/setup.py 2008-12-03 08:21:02 UTC (rev 93566)
+++ zope.dottedname/trunk/setup.py 2008-12-03 09:18:42 UTC (rev 93567)
@@ -11,8 +11,7 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Setup for zope.documenttemplate package
-
+"""
$Id$
"""
import os
@@ -22,7 +21,7 @@
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name="zope.dottedname",
- version = '3.4.3dev',
+ version = '3.4.4dev',
author='Zope Corporation and Contributors',
author_email='zope-dev at zope.org',
description='Resolver for Python dotted names.',
More information about the Checkins
mailing list