[Checkins] SVN: z3c.baseregistry/trunk/ Use ZopeMessageFactory from zope.i18nmessageid

Roger Ineichen roger at projekt01.ch
Sat Nov 17 18:13:31 EST 2007


Log message for revision 81902:
  Use ZopeMessageFactory from zope.i18nmessageid
  Prepare for release, added more setup/buildout data

Changed:
  A   z3c.baseregistry/trunk/CHANGES.txt
  A   z3c.baseregistry/trunk/README.txt
  U   z3c.baseregistry/trunk/buildout.cfg
  U   z3c.baseregistry/trunk/setup.py
  _U  z3c.baseregistry/trunk/src/
  U   z3c.baseregistry/trunk/src/z3c/__init__.py
  U   z3c.baseregistry/trunk/src/z3c/baseregistry/browser/base.py
  U   z3c.baseregistry/trunk/src/z3c/baseregistry/zcml.py

-=-
Added: z3c.baseregistry/trunk/CHANGES.txt
===================================================================
--- z3c.baseregistry/trunk/CHANGES.txt	                        (rev 0)
+++ z3c.baseregistry/trunk/CHANGES.txt	2007-11-17 23:13:31 UTC (rev 81902)
@@ -0,0 +1,10 @@
+=======
+CHANGES
+=======
+
+Version 0.1.0 (unreleased)
+--------------------------
+
+- Initial Release
+
+- replace import of ZopeMessageFactory


Property changes on: z3c.baseregistry/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Added: z3c.baseregistry/trunk/README.txt
===================================================================
--- z3c.baseregistry/trunk/README.txt	                        (rev 0)
+++ z3c.baseregistry/trunk/README.txt	2007-11-17 23:13:31 UTC (rev 81902)
@@ -0,0 +1,3 @@
+The purpose of this package is to define, populate and use multiple
+``IComponents`` instances using filesystem-based development -- in other
+words, Python code and ZCML.


Property changes on: z3c.baseregistry/trunk/README.txt
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: z3c.baseregistry/trunk/buildout.cfg
===================================================================
--- z3c.baseregistry/trunk/buildout.cfg	2007-11-17 19:53:18 UTC (rev 81901)
+++ z3c.baseregistry/trunk/buildout.cfg	2007-11-17 23:13:31 UTC (rev 81902)
@@ -4,4 +4,4 @@
 
 [test]
 recipe = zc.recipe.testrunner
-eggs = z3c.baseregistry [test]
\ No newline at end of file
+eggs = z3c.baseregistry [test]

Modified: z3c.baseregistry/trunk/setup.py
===================================================================
--- z3c.baseregistry/trunk/setup.py	2007-11-17 19:53:18 UTC (rev 81901)
+++ z3c.baseregistry/trunk/setup.py	2007-11-17 23:13:31 UTC (rev 81902)
@@ -1,35 +1,71 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation 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
+
+$Id:$
+"""
+import os
 from setuptools import setup, find_packages
 
-setup(
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup (
     name = "z3c.baseregistry",
     version = "0.1dev",
-    author = "Zope Contributors",
+    author = "Stephan Richter, Roger Ineichen and the Zope Community",
     author_email = "zope3-dev at zope.org",
     description = "Manage IComponents instances using Python code and ZCML.",
+    long_description=(
+        read('README.txt')
+        + '\n\n' +
+        read('CHANGES.txt')
+        ),
     license = "ZPL 2.1",
     keywords = "zope3 baseregistry",
-    url = 'http://svn.zope.org/z3c.baseregistry',
     classifiers = [
-        'Development Status :: 3 - Alpha',
-        "License :: OSI Approved :: Zope Public License",
-        "Framework :: Zope :: UI"],
+        'Development Status :: 4 - Beta',
+        '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/z3c.baseregistry',
     packages = find_packages('src'),
     include_package_data = True,
     package_dir = {'':'src'},
     namespace_packages = ['z3c'],
+    extras_require = dict(
+        test=[
+            'zope.app.testing',
+            'zope.testing',
+            ],
+        ),
+    install_requires = [
+        'setuptools',
+        'zope.app.component',
+        'zope.app.i18n',
+        'zope.app.pagetemplate',
+        'zope.component',
+        'zope.configuration',
+        'zope.formlib',
+        'zope.i18nmessageid',
+        'zope.interface',
+        'zope.schema',
+        ],
     zip_safe = False,
-    extras_require = dict(test=['zope.app.testing',
-                                'zope.testing',
-                               ]),
-    install_requires = ['setuptools',
-                        'zope.app.component',
-                        'zope.app.i18n',
-                        'zope.app.pagetemplate',
-                        'zope.component',
-                        'zope.configuration',
-                        'zope.formlib',
-                        'zope.i18nmessageid',
-                        'zope.interface',
-                        'zope.schema',
-                        ],
 )


Property changes on: z3c.baseregistry/trunk/src
___________________________________________________________________
Name: svn:ignore
   + z3c.baseregistry.egg-info


Modified: z3c.baseregistry/trunk/src/z3c/__init__.py
===================================================================
--- z3c.baseregistry/trunk/src/z3c/__init__.py	2007-11-17 19:53:18 UTC (rev 81901)
+++ z3c.baseregistry/trunk/src/z3c/__init__.py	2007-11-17 23:13:31 UTC (rev 81902)
@@ -1,2 +1,7 @@
-# Make a package.
-
+# this is a namespace package
+try:
+    import pkg_resources
+    pkg_resources.declare_namespace(__name__)
+except ImportError:
+    import pkgutil
+    __path__ = pkgutil.extend_path(__path__, __name__)

Modified: z3c.baseregistry/trunk/src/z3c/baseregistry/browser/base.py
===================================================================
--- z3c.baseregistry/trunk/src/z3c/baseregistry/browser/base.py	2007-11-17 19:53:18 UTC (rev 81901)
+++ z3c.baseregistry/trunk/src/z3c/baseregistry/browser/base.py	2007-11-17 23:13:31 UTC (rev 81902)
@@ -19,8 +19,8 @@
 import zope.interface
 import zope.component
 import zope.schema
+from zope.i18nmessageid import ZopeMessageFactory as _
 from zope.app.component import vocabulary
-from zope.app.i18n import ZopeMessageFactory as _
 from zope.app.pagetemplate import ViewPageTemplateFile
 from zope.formlib import form
 

Modified: z3c.baseregistry/trunk/src/z3c/baseregistry/zcml.py
===================================================================
--- z3c.baseregistry/trunk/src/z3c/baseregistry/zcml.py	2007-11-17 19:53:18 UTC (rev 81901)
+++ z3c.baseregistry/trunk/src/z3c/baseregistry/zcml.py	2007-11-17 23:13:31 UTC (rev 81902)
@@ -21,9 +21,8 @@
 import zope.configuration.config
 import zope.configuration.fields
 from zope.configuration.exceptions import ConfigurationError
+from zope.i18nmessageid import ZopeMessageFactory as _
 
-from zope.i18nmessageid import MessageFactory
-_ = MessageFactory('zope')
 
 class IRegisterInDirective(zope.interface.Interface):
     """Use the specified registry for registering the contained components."""



More information about the Checkins mailing list