[Checkins] SVN: zope.app.xmlrpcintrospection/trunk/ Get ready for release.

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Nov 4 15:42:31 EST 2007


Log message for revision 81488:
  Get ready for release.
  

Changed:
  A   zope.app.xmlrpcintrospection/trunk/CHANGES.txt
  A   zope.app.xmlrpcintrospection/trunk/README.txt
  U   zope.app.xmlrpcintrospection/trunk/buildout.cfg
  D   zope.app.xmlrpcintrospection/trunk/setup.cfg
  U   zope.app.xmlrpcintrospection/trunk/setup.py
  _U  zope.app.xmlrpcintrospection/trunk/src/
  U   zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/README.txt
  U   zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/ftesting.zcml
  A   zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/tests/test_functional.py

-=-
Added: zope.app.xmlrpcintrospection/trunk/CHANGES.txt
===================================================================
--- zope.app.xmlrpcintrospection/trunk/CHANGES.txt	                        (rev 0)
+++ zope.app.xmlrpcintrospection/trunk/CHANGES.txt	2007-11-04 20:42:31 UTC (rev 81488)
@@ -0,0 +1,8 @@
+=======
+CHANGES
+=======
+
+3.4.0 (2007-11-03)
+------------------
+
+- Initial release independent of the main Zope tree.


Property changes on: zope.app.xmlrpcintrospection/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: zope.app.xmlrpcintrospection/trunk/README.txt
===================================================================
--- zope.app.xmlrpcintrospection/trunk/README.txt	                        (rev 0)
+++ zope.app.xmlrpcintrospection/trunk/README.txt	2007-11-04 20:42:31 UTC (rev 81488)
@@ -0,0 +1 @@
+This Zope 3 package provides an XML-RPC introspection mechanism.


Property changes on: zope.app.xmlrpcintrospection/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: zope.app.xmlrpcintrospection/trunk/buildout.cfg
===================================================================
--- zope.app.xmlrpcintrospection/trunk/buildout.cfg	2007-11-04 20:24:18 UTC (rev 81487)
+++ zope.app.xmlrpcintrospection/trunk/buildout.cfg	2007-11-04 20:42:31 UTC (rev 81488)
@@ -1,9 +1,7 @@
 [buildout]
-develop = . 
+develop = .
 parts = test
-find-links = http://download.zope.org/distribution/
 
 [test]
 recipe = zc.recipe.testrunner
-defaults = ['--tests-pattern', '^f?tests$']
 eggs = zope.app.xmlrpcintrospection [test]

Deleted: zope.app.xmlrpcintrospection/trunk/setup.cfg
===================================================================
--- zope.app.xmlrpcintrospection/trunk/setup.cfg	2007-11-04 20:24:18 UTC (rev 81487)
+++ zope.app.xmlrpcintrospection/trunk/setup.cfg	2007-11-04 20:42:31 UTC (rev 81488)
@@ -1,2 +0,0 @@
-[egg_info]
-tag_svn_revision = 1
\ No newline at end of file

Modified: zope.app.xmlrpcintrospection/trunk/setup.py
===================================================================
--- zope.app.xmlrpcintrospection/trunk/setup.py	2007-11-04 20:24:18 UTC (rev 81487)
+++ zope.app.xmlrpcintrospection/trunk/setup.py	2007-11-04 20:42:31 UTC (rev 81488)
@@ -1,6 +1,6 @@
 ##############################################################################
 #
-# Copyright (c) 2006 Zope Corporation and Contributors.
+# Copyright (c) 2007 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -15,30 +15,52 @@
 
 $Id$
 """
-
 import os
+from setuptools import setup, find_packages
 
-from setuptools import setup, find_packages, Extension
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
 setup(name='zope.app.xmlrpcintrospection',
-      version = '3.4.0b1',
-      url='http://svn.zope.org/zope.app.xmlrpcintrospection',
-      license='ZPL 2.1',
+      version = '3.4.0',
       author='Zope Corporation and Contributors',
       author_email='zope3-dev at zope.org',
-	  packages=find_packages('src'),
-	  package_dir = {'': 'src'},
+      description='XML-RPC Method Introspection Support for Zope 3',
+      long_description=(
+          read('README.txt')
+          + '\n\n' +
+          'Detailed Dcoumentation\n' +
+          '----------------------\n'
+          + '\n\n' +
+          read('src', 'zope', 'app', 'xmlrpcintrospection', 'README.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      keywords = "zope3 xmlrpcintrospection site local component",
+      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.app.xmlrpcintrospection',
+      license='ZPL 2.1',
+      packages=find_packages('src'),
+      package_dir = {'': 'src'},
+      namespace_packages=['zope', 'zope.app'],
       extras_require=dict(test=['zope.app.testing',
                                 'zope.app.folder',
                                 'zope.app.securitypolicy',
                                 'zope.app.zcmlfiles']),
-      namespace_packages=['zope', 'zope.app'],
       install_requires=['setuptools',
                         'zope.component',
                         'zope.interface',
                         'zope.publisher',
                         ],
       include_package_data = True,
-
       zip_safe = False,
       )


Property changes on: zope.app.xmlrpcintrospection/trunk/src
___________________________________________________________________
Name: svn:ignore
   + zope.app.xmlrpcintrospection.egg-info


Modified: zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/README.txt
===================================================================
--- zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/README.txt	2007-11-04 20:24:18 UTC (rev 81487)
+++ zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/README.txt	2007-11-04 20:42:31 UTC (rev 81488)
@@ -1,7 +1,6 @@
 ====================
 XMLRPC Introspection
 ====================
-$Id$
 
 What's introspection now ?
 --------------------------
@@ -13,19 +12,22 @@
 
 It registers three new xmlrpc methods:
 
-    - `listMethods()`: Lists all xmlrpc methods (ie views) registered for the current object
+    - `listMethods()`: Lists all xmlrpc methods (ie views) registered for the
+      current object
 
-    - `methodHelp(method_name)`: Returns the method documentation of the given method.
+    - `methodHelp(method_name)`: Returns the method documentation of the given
+      method.
 
-    - `methodSignature(method_name)`: Returns the method documentation of the given method.
+    - `methodSignature(method_name)`: Returns the method documentation of the
+      given method.
 
 
 How do I use it ?
 -----------------
 
 Basically, if you want to add introspection into your XMLRPCView, you just
-have to add a decorator for each method of the view, that specifies the return type of the
-method and the argument types.
+have to add a decorator for each method of the view, that specifies the return
+type of the method and the argument types.
 
 The decorator is called `xmlrpccallable`
 
@@ -37,7 +39,8 @@
   ...         """ my help """
   ...         return '%s %s, %s, lalalala, you and me, lalalala' % (a, b, c)
 
-`myMethod()` will then be introspectable. (find a full examples below, grep for (*))
+`myMethod()` will then be introspectable. (find a full examples below, grep
+for (*))
 
 
 How does it works ?

Modified: zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/ftesting.zcml
===================================================================
--- zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/ftesting.zcml	2007-11-04 20:24:18 UTC (rev 81487)
+++ zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/ftesting.zcml	2007-11-04 20:42:31 UTC (rev 81488)
@@ -14,7 +14,7 @@
   <include package="zope.app.securitypolicy" />
 
   <securityPolicy
-    component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
 
   <role id="zope.Anonymous" title="Everybody"
                  description="All users have this role implicitly" />

Copied: zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/tests/test_functional.py (from rev 81487, zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/ftests.py)
===================================================================
--- zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/tests/test_functional.py	                        (rev 0)
+++ zope.app.xmlrpcintrospection/trunk/src/zope/app/xmlrpcintrospection/tests/test_functional.py	2007-11-04 20:42:31 UTC (rev 81488)
@@ -0,0 +1,70 @@
+##############################################################################
+#
+# Copyright (c) 2004 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.
+#
+##############################################################################
+"""Functional tests for xmlrpcintrospection
+
+$Id$
+"""
+
+import re
+import zope.interface
+import zope.app.folder.folder
+import zope.publisher.interfaces.xmlrpc
+from zope.testing import renormalizing
+from zope.app.testing import ztapi, functional, setup
+from zope.app.xmlrpcintrospection.testing import XmlrpcIntrospectionLayer
+
+
+def setUp(test):
+    setup.setUpTestAsModule(test, 'zope.app.xmlrpcintrospection.README')
+
+
+def tearDown(test):
+    # clean up the views we registered:
+
+    # we use the fact that registering None unregisters whatever is
+    # registered. We can't use an unregistration call because that
+    # requires the object that was registered and we don't have that handy.
+    # (OK, we could get it if we want. Maybe later.)
+
+    ztapi.provideView(zope.app.folder.folder.IFolder,
+                        zope.publisher.interfaces.xmlrpc.IXMLRPCRequest,
+                        zope.interface,
+                        'contents',
+                        None,
+                        )
+    ztapi.provideView(zope.app.folder.folder.IFolder,
+                        zope.publisher.interfaces.xmlrpc.IXMLRPCRequest,
+                        zope.interface,
+                        'contents',
+                        None,
+                        )
+
+    setup.tearDownTestAsModule(test)
+
+
+checker = renormalizing.RENormalizing([
+    (re.compile(r"HTTP/1\.([01]) (\d\d\d) .*"), r"HTTP/1.\1 \2 <MESSAGE>"),
+    ])
+
+
+def test_suite():
+    suite = functional.FunctionalDocFileSuite(
+        '../README.txt', setUp=setUp, tearDown=tearDown, checker=checker)
+    suite.layer = XmlrpcIntrospectionLayer
+    return suite
+
+
+if __name__ == '__main__':
+    import unittest
+    unittest.main(defaultTest='test_suite')



More information about the Checkins mailing list