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

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Nov 3 02:22:19 EDT 2007


Log message for revision 81428:
  Fix package data.
  

Changed:
  _U  zc.i18n/trunk/
  A   zc.i18n/trunk/CHANGES.txt
  A   zc.i18n/trunk/README.txt
  A   zc.i18n/trunk/bootstrap.py
  A   zc.i18n/trunk/buildout.cfg
  U   zc.i18n/trunk/setup.py
  _U  zc.i18n/trunk/src/
  U   zc.i18n/trunk/src/zc/i18n/duration.txt

-=-

Property changes on: zc.i18n/trunk
___________________________________________________________________
Name: svn:ignore
   + .installed.cfg
bin
develop-eggs
dist
parts


Added: zc.i18n/trunk/CHANGES.txt
===================================================================
--- zc.i18n/trunk/CHANGES.txt	                        (rev 0)
+++ zc.i18n/trunk/CHANGES.txt	2007-11-03 06:22:18 UTC (rev 81428)
@@ -0,0 +1,18 @@
+=======
+CHANGES
+=======
+
+0.5.2 (2007-11-03)
+------------------
+
+- Improve package data.
+
+0.5.1 (2006-05-24)
+------------------
+
+- Package data update.
+
+0.5.0 (2006-05-24)
+------------------
+
+- Initial release.


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

Added: zc.i18n/trunk/README.txt
===================================================================
--- zc.i18n/trunk/README.txt	                        (rev 0)
+++ zc.i18n/trunk/README.txt	2007-11-03 06:22:18 UTC (rev 81428)
@@ -0,0 +1,2 @@
+This package provides additional I18n and L10n features. In particular it
+provides an API to compute the time duratrions over various timezones.


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

Added: zc.i18n/trunk/bootstrap.py
===================================================================
--- zc.i18n/trunk/bootstrap.py	                        (rev 0)
+++ zc.i18n/trunk/bootstrap.py	2007-11-03 06:22:18 UTC (rev 81428)
@@ -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: zc.i18n/trunk/bootstrap.py
___________________________________________________________________
Name: svn:keywords
   + Id

Added: zc.i18n/trunk/buildout.cfg
===================================================================
--- zc.i18n/trunk/buildout.cfg	                        (rev 0)
+++ zc.i18n/trunk/buildout.cfg	2007-11-03 06:22:18 UTC (rev 81428)
@@ -0,0 +1,7 @@
+[buildout]
+develop = .
+parts = test
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = zc.i18n

Modified: zc.i18n/trunk/setup.py
===================================================================
--- zc.i18n/trunk/setup.py	2007-11-03 05:53:06 UTC (rev 81427)
+++ zc.i18n/trunk/setup.py	2007-11-03 06:22:18 UTC (rev 81428)
@@ -1,23 +1,62 @@
+##############################################################################
+#
+# 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.viewlet package
+
+$Id: setup.py 81038 2007-10-24 14:34:17Z srichter $
+"""
+import os
 from setuptools import setup, find_packages
 
-setup(
-    name="zc.i18n",
-    version="0.6.1dev",
-    packages=find_packages('src', exclude=["*.tests", "*.ftests"]),
-    
-    package_dir= {'':'src'},
-    
-    namespace_packages=['zc'],
-    package_data = {
-    '': ['*.txt', '*.zcml'],
-    },
+def read(*rnames):
+    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
-    zip_safe=False,
-    author='Zope Project',
-    author_email='zope3-dev at zope.org',
-    description="""\
-zc.i18n contains a i18n related helper code.
-""",
-    license='ZPL',
-    keywords="zope zope3",
-    )
+setup(name='zc.i18n',
+      version = '0.5.2',
+      author='Zope Corporation and Contributors',
+      author_email='zope3-dev at zope.org',
+      description='Additional I18n Support APIs',
+      long_description=(
+          read('README.txt')
+          + '\n\n' +
+          'Detailed Dcoumentation\n' +
+          '======================\n'
+          + '\n\n' +
+          read('src', 'zc', 'i18n', 'duration.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      keywords = "zope3 i18n date time duration",
+      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/zc.i18n',
+      license='ZPL 2.1',
+      packages=find_packages('src'),
+      package_dir = {'': 'src'},
+      namespace_packages=['zc'],
+      extras_require=dict(test=['zope.testing']),
+      install_requires=['setuptools',
+                        'zope.i18n',
+                        'zope.i18nmessageid',
+                        'zope.interface'],
+      include_package_data = True,
+      zip_safe = False,
+      )


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


Modified: zc.i18n/trunk/src/zc/i18n/duration.txt
===================================================================
--- zc.i18n/trunk/src/zc/i18n/duration.txt	2007-11-03 05:53:06 UTC (rev 81427)
+++ zc.i18n/trunk/src/zc/i18n/duration.txt	2007-11-03 06:22:18 UTC (rev 81428)
@@ -1,3 +1,7 @@
+=========================
+Time Duration Computation
+=========================
+
 The duration format code is not ideal, but as the code notes, the icu library
 does not appear to support internationalizing dates.  Therefore, this approach
 tries to get close enough to be flexible enough for most localization.  Only



More information about the Checkins mailing list