[Checkins] SVN: z3c.i18n/trunk/ Fix up package data.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Nov 1 16:38:13 EDT 2007


Log message for revision 81374:
  Fix up package data.
  

Changed:
  A   z3c.i18n/trunk/CHANGES.txt
  A   z3c.i18n/trunk/README.txt
  A   z3c.i18n/trunk/bootstrap.py
  U   z3c.i18n/trunk/buildout.cfg
  D   z3c.i18n/trunk/setup.cfg
  U   z3c.i18n/trunk/setup.py
  U   z3c.i18n/trunk/src/z3c/i18n/README.txt
  U   z3c.i18n/trunk/src/z3c/i18n/iso.py

-=-
Added: z3c.i18n/trunk/CHANGES.txt
===================================================================
--- z3c.i18n/trunk/CHANGES.txt	                        (rev 0)
+++ z3c.i18n/trunk/CHANGES.txt	2007-11-01 20:38:12 UTC (rev 81374)
@@ -0,0 +1,17 @@
+=======
+CHANGES
+=======
+
+0.1.1 (2007-11-01)
+------------------
+
+- Improve package meta-data.
+
+0.1.0 (2007-03-22)
+------------------
+
+- Initial release.
+
+    * Listing of all terretories.
+
+    * List and translations of all languages.


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

Added: z3c.i18n/trunk/README.txt
===================================================================
--- z3c.i18n/trunk/README.txt	                        (rev 0)
+++ z3c.i18n/trunk/README.txt	2007-11-01 20:38:12 UTC (rev 81374)
@@ -0,0 +1 @@
+This package contains various i18n related convinience modules.


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

Added: z3c.i18n/trunk/bootstrap.py
===================================================================
--- z3c.i18n/trunk/bootstrap.py	                        (rev 0)
+++ z3c.i18n/trunk/bootstrap.py	2007-11-01 20:38:12 UTC (rev 81374)
@@ -0,0 +1,52 @@
+##############################################################################
+#
+# Copyright (c) 2006 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.
+#
+##############################################################################
+"""Bootstrap a buildout-based project
+
+Simply run this script in a directory containing a buildout.cfg.
+The script accepts buildout command-line options, so you can
+use the -c option to specify an alternate configuration file.
+
+$Id$
+"""
+
+import os, shutil, sys, tempfile, urllib2
+
+tmpeggs = tempfile.mkdtemp()
+
+ez = {}
+exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+                     ).read() in ez
+ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
+
+import pkg_resources
+
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+    cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
+ws = pkg_resources.working_set
+assert os.spawnle(
+    os.P_WAIT, sys.executable, sys.executable,
+    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
+    ) == 0
+
+ws.add_entry(tmpeggs)
+ws.require('zc.buildout')
+import zc.buildout.buildout
+zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
+shutil.rmtree(tmpeggs)


Property changes on: z3c.i18n/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
   + Id

Modified: z3c.i18n/trunk/buildout.cfg
===================================================================
--- z3c.i18n/trunk/buildout.cfg	2007-11-01 20:18:27 UTC (rev 81373)
+++ z3c.i18n/trunk/buildout.cfg	2007-11-01 20:38:12 UTC (rev 81374)
@@ -1,7 +1,6 @@
 [buildout]
 develop = .
 parts = test
-find-links = http://download.zope.org/distribution/
 
 [test]
 recipe = zc.recipe.testrunner

Deleted: z3c.i18n/trunk/setup.cfg
===================================================================
--- z3c.i18n/trunk/setup.cfg	2007-11-01 20:18:27 UTC (rev 81373)
+++ z3c.i18n/trunk/setup.cfg	2007-11-01 20:38:12 UTC (rev 81374)
@@ -1,3 +0,0 @@
-[egg_info]
-tag_build = .dev
-tag_svn_revision = 1

Modified: z3c.i18n/trunk/setup.py
===================================================================
--- z3c.i18n/trunk/setup.py	2007-11-01 20:18:27 UTC (rev 81373)
+++ z3c.i18n/trunk/setup.py	2007-11-01 20:38:12 UTC (rev 81374)
@@ -1,34 +1,68 @@
+##############################################################################
+#
+# 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 z3c.i18n package
+
+$Id$
+"""
+import os
 from setuptools import setup, find_packages
 
-setup(
-    name = "z3c.i18n",
-    version = "0.1",
-    author = "Zope Contributors",
-    author_email = "zope3-dev at zope.org",
-    description = "I18n utils for zope3",
-    license = "ZPL 2.1",
-    keywords = "zope3 i18n",
-    url='http://svn.zope.org/z3c.i18n',
-    classifiers = [
-        'Development Status :: 3 - Alpha',
-        "License :: OSI Approved :: Zope Public License",
-        "Framework :: Zope :: UI",
-        ],
-    packages = find_packages('src'),
-    include_package_data = True,
-    package_dir = {'':'src'},
-    namespace_packages = ['z3c'],
-    zip_safe=False,
-    install_requires = [
-        'setuptools',
-        'zope.component',
-        'zope.i18n',
-        'zope.i18nmessageid',
-        'zope.interface',
-        'zope.schema',
-        ],
-    extras_require = {
-        'test': ['zope.testing', 'zope.app.testing'],
-        },
-    dependency_links = ['http://download.zope.org/distribution/'],
-    )
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
+setup(name='z3c.i18n',
+      version = '0.1.1',
+      author='Zope Corporation and Contributors',
+      author_email='zope3-dev at zope.org',
+      description="Extensions to Zope's I18n Support",
+      long_description=(
+          read('README.txt')
+          + '\n\n' +
+          'Detailed Dcoumentation\n' +
+          '======================\n'
+          + '\n\n' +
+          read('src', 'z3c', 'i18n', 'README.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      keywords = "zope3 i18n language territory",
+      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/z3c.i18n',
+      license='ZPL 2.1',
+      packages=find_packages('src'),
+      package_dir = {'': 'src'},
+      namespace_packages=['z3c'],
+      extras_require = {
+          'test': ['zope.testing', 'zope.app.testing'],
+          },
+      install_requires = [
+          'setuptools',
+          'zope.component',
+          'zope.i18n',
+          'zope.i18nmessageid',
+          'zope.interface',
+          'zope.schema',
+          ],
+      include_package_data = True,
+      zip_safe = False,
+      )

Modified: z3c.i18n/trunk/src/z3c/i18n/README.txt
===================================================================
--- z3c.i18n/trunk/src/z3c/i18n/README.txt	2007-11-01 20:18:27 UTC (rev 81373)
+++ z3c.i18n/trunk/src/z3c/i18n/README.txt	2007-11-01 20:38:12 UTC (rev 81374)
@@ -4,8 +4,8 @@
 
 This package contains various i18n related convinience modules.
 
-Translationdomains
-==================
+Translation Domains
+-------------------
 
 The following translation domains are registered based on the
 ``zope.i18n.locales´´ package:
@@ -15,7 +15,7 @@
 z3c.i18n.iso.territories: Translates all available terrritories
 
 Vocabularies
-============
+------------
 
 Based on the translation domains mentioned above, there are two
 vocabularies registered. The terms of these vocabularies have a

Modified: z3c.i18n/trunk/src/z3c/i18n/iso.py
===================================================================
--- z3c.i18n/trunk/src/z3c/i18n/iso.py	2007-11-01 20:18:27 UTC (rev 81373)
+++ z3c.i18n/trunk/src/z3c/i18n/iso.py	2007-11-01 20:38:12 UTC (rev 81374)
@@ -22,9 +22,9 @@
 class DisplayNameTranslationDomain(object):
 
     """base class for displayname based translation domains"""
-    
+
     implements(ITranslationDomain)
-    
+
     def translate(self, msgid, mapping=None, context=None,
                   target_language=None, default=None):
         '''See interface ITranslationDomain'''
@@ -85,7 +85,7 @@
     iso.languages domain as titles
 
     >>> fac = LanguageVocabularyFactory()
-    >>> voc = fac(None) 
+    >>> voc = fac(None)
     >>> voc
     <zope.schema.vocabulary.SimpleVocabulary object at ...>
 
@@ -126,8 +126,8 @@
             term = SimpleTerm(key,title=_languages(key,value))
             self.terms.append(term)
         self.vocab = SimpleVocabulary(self.terms)
-    
 
+
     def __call__(self,context):
         return self.vocab
 
@@ -141,7 +141,7 @@
     iso.territory domain as titles
 
     >>> fac = TerritoryVocabularyFactory()
-    >>> voc = fac(None) 
+    >>> voc = fac(None)
     >>> voc
     <zope.schema.vocabulary.SimpleVocabulary object at ...>
 
@@ -165,7 +165,7 @@
     """
 
     implements(IVocabularyFactory)
-    
+
     def __init__(self):
         self.terms = []
         # excluding fallback etc
@@ -175,9 +175,9 @@
             term = SimpleTerm(key,title=_territories(key,value))
             self.terms.append(term)
         self.vocab = SimpleVocabulary(self.terms)
-    
 
+
     def __call__(self,context):
         return self.vocab
-        
+
 territoryVocabularyFactory = TerritoryVocabularyFactory()



More information about the Checkins mailing list