[Checkins] SVN: zc.i18n/trunk/ Fix tests and get ready for release.

Stephan Richter srichter at gmail.com
Fri Jul 24 02:35:34 EDT 2009


Log message for revision 102201:
  Fix tests and get ready for release.
  

Changed:
  U   zc.i18n/trunk/CHANGES.txt
  U   zc.i18n/trunk/buildout.cfg
  U   zc.i18n/trunk/setup.py
  U   zc.i18n/trunk/src/zc/i18n/date.py

-=-
Modified: zc.i18n/trunk/CHANGES.txt
===================================================================
--- zc.i18n/trunk/CHANGES.txt	2009-07-24 06:20:12 UTC (rev 102200)
+++ zc.i18n/trunk/CHANGES.txt	2009-07-24 06:35:34 UTC (rev 102201)
@@ -2,7 +2,15 @@
 CHANGES
 =======
 
+0.7.0 (2009-07-24)
+------------------
+
+- Fixed tests to work with latest package versions.
+
+- The buildout now also pulls in the test extras, which is required.
+
 0.6.1 (2008-05-20)
+------------------
 
 - No code changes, and only a very minor documentation tweak.
   Re-released to avoid confusion over package versions found in the wild.

Modified: zc.i18n/trunk/buildout.cfg
===================================================================
--- zc.i18n/trunk/buildout.cfg	2009-07-24 06:20:12 UTC (rev 102200)
+++ zc.i18n/trunk/buildout.cfg	2009-07-24 06:35:34 UTC (rev 102201)
@@ -4,4 +4,4 @@
 
 [test]
 recipe = zc.recipe.testrunner
-eggs = zc.i18n
+eggs = zc.i18n [test]

Modified: zc.i18n/trunk/setup.py
===================================================================
--- zc.i18n/trunk/setup.py	2009-07-24 06:20:12 UTC (rev 102200)
+++ zc.i18n/trunk/setup.py	2009-07-24 06:35:34 UTC (rev 102201)
@@ -21,42 +21,48 @@
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
-setup(name='zc.i18n',
-      version = '0.6.2dev',
-      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,
-      )
+setup(
+    name='zc.i18n',
+    version = '0.7.0',
+    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',
+              'zope.publisher',
+              ]),
+    install_requires=[
+        'setuptools',
+        'zope.i18n',
+        'zope.i18nmessageid',
+        'zope.interface',
+        ],
+    include_package_data = True,
+    zip_safe = False,
+    )

Modified: zc.i18n/trunk/src/zc/i18n/date.py
===================================================================
--- zc.i18n/trunk/src/zc/i18n/date.py	2009-07-24 06:20:12 UTC (rev 102200)
+++ zc.i18n/trunk/src/zc/i18n/date.py	2009-07-24 06:35:34 UTC (rev 102201)
@@ -82,7 +82,7 @@
     >>> normalize(request,dt)
     Traceback (most recent call last):
     ...
-    AmbiguousTimeError: 2006-03-26 03:30:00
+    NonExistentTimeError: 2006-03-26 03:30:00
 
     An ambiguous time:
 
@@ -98,4 +98,4 @@
         tzinfo = ITZInfo(request)
         dt = tzinfo.localize(dt, is_dst=None)
 
-    return dt.astimezone(pytz.utc)
\ No newline at end of file
+    return dt.astimezone(pytz.utc)



More information about the Checkins mailing list