[Checkins] SVN: zope.app.i18nfile/trunk/ - Get ready for release.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Oct 24 16:24:02 EDT 2007
Log message for revision 81056:
- Get ready for release.
- Move ftests.py to tests.py.
- Fix deprecation warning.
Changed:
A zope.app.i18nfile/trunk/CHANGES.txt
U zope.app.i18nfile/trunk/README.txt
U zope.app.i18nfile/trunk/buildout.cfg
D zope.app.i18nfile/trunk/setup.cfg
U zope.app.i18nfile/trunk/setup.py
_U zope.app.i18nfile/trunk/src/
D zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/ftests.py
U zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nfile.py
U zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nimage.py
A zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/tests.py
-=-
Added: zope.app.i18nfile/trunk/CHANGES.txt
===================================================================
--- zope.app.i18nfile/trunk/CHANGES.txt (rev 0)
+++ zope.app.i18nfile/trunk/CHANGES.txt 2007-10-24 20:24:02 UTC (rev 81056)
@@ -0,0 +1,8 @@
+=======
+CHANGES
+=======
+
+3.4.0 (2007-10-24)
+------------------
+
+- Initial release independent of the main Zope tree.
Property changes on: zope.app.i18nfile/trunk/CHANGES.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: zope.app.i18nfile/trunk/README.txt
===================================================================
--- zope.app.i18nfile/trunk/README.txt 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/README.txt 2007-10-24 20:24:02 UTC (rev 81056)
@@ -1,4 +1,2 @@
-zope.app.i18nfile
-===============
-
-See, src/zope/app/i18nfile/README.txt
+This package provides an extension to the File and Image content components
+for Zope 3, allowing the content to be localized.
Modified: zope.app.i18nfile/trunk/buildout.cfg
===================================================================
--- zope.app.i18nfile/trunk/buildout.cfg 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/buildout.cfg 2007-10-24 20:24:02 UTC (rev 81056)
@@ -1,9 +1,7 @@
[buildout]
develop = .
parts = test
-find-links = http://download.zope.org/distribution/
[test]
recipe = zc.recipe.testrunner
-defaults = ['--tests-pattern', '^f?tests$']
eggs = zope.app.i18nfile [test]
Deleted: zope.app.i18nfile/trunk/setup.cfg
===================================================================
--- zope.app.i18nfile/trunk/setup.cfg 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/setup.cfg 2007-10-24 20:24:02 UTC (rev 81056)
@@ -1,2 +0,0 @@
-[egg_info]
-tag_svn_revision = 1
\ No newline at end of file
Modified: zope.app.i18nfile/trunk/setup.py
===================================================================
--- zope.app.i18nfile/trunk/setup.py 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/setup.py 2007-10-24 20:24:02 UTC (rev 81056)
@@ -15,24 +15,48 @@
$Id$
"""
-
import os
-
from setuptools import setup, find_packages
+def read(*rnames):
+ return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+
setup(name = 'zope.app.i18nfile',
- version = '3.4.0b1',
- url = 'http://svn.zope.org/zope.app.i18nfile',
- license = 'ZPL 2.1',
- description = 'Zope app.i18nfile',
- author = 'Zope Corporation and Contributors',
- author_email = 'zope3-dev at zope.org',
- long_description = "",
-
- packages = find_packages('src'),
+ version = '3.4.0',
+ author='Zope Corporation and Contributors',
+ author_email='zope3-dev at zope.org',
+ description='I18n File and Image -- Zope 3 Content Components',
+ long_description=(
+ read('README.txt')
+ + '\n\n' +
+ 'Detailed Dcoumentation\n' +
+ '----------------------\n'
+ + '\n\n' +
+ read('src', 'zope', 'app', 'i18nfile', 'browser', 'i18nfile.txt')
+ + '\n\n' +
+ read('src', 'zope', 'app', 'i18nfile', 'browser', 'i18nimage.txt')
+ + '\n\n' +
+ read('CHANGES.txt')
+ ),
+ keywords = "zope3 i18n l10n file image content",
+ 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.i18nfile',
+ license='ZPL 2.1',
+ packages=find_packages('src'),
package_dir = {'': 'src'},
-
- namespace_packages = ['zope', 'zope.app'],
+ namespace_packages=['zope', 'zope.app'],
+ extras_require = dict(test=['zope.app.testing',
+ 'zope.app.securitypolicy',
+ 'zope.app.zcmlfiles']),
install_requires = ['setuptools',
'ZODB3',
'zope.app.file',
@@ -40,10 +64,6 @@
'zope.interface',
'zope.size',
],
- extras_require = dict(test=['zope.app.testing',
- 'zope.app.securitypolicy',
- 'zope.app.zcmlfiles']),
include_package_data = True,
-
zip_safe = False,
)
Property changes on: zope.app.i18nfile/trunk/src
___________________________________________________________________
Name: svn:ignore
+ zope.app.i18nfile.egg-info
Deleted: zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/ftests.py
===================================================================
--- zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/ftests.py 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/ftests.py 2007-10-24 20:24:02 UTC (rev 81056)
@@ -1,42 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 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 i18n versions of several content objects.
-
-$Id$
-"""
-
-__docformat__ = 'restructuredtext'
-
-import re
-import unittest
-from zope.testing import renormalizing
-from zope.app.testing.functional import FunctionalDocFileSuite
-from zope.app.i18nfile.testing import I18nFileLayer
-
-
-checker = renormalizing.RENormalizing([
- (re.compile(r"HTTP/1\.1 200 .*"), "HTTP/1.1 200 OK"),
- (re.compile(r"HTTP/1\.1 303 .*"), "HTTP/1.1 303 See Other"),
- ])
-
-
-def test_suite():
- suite = unittest.TestSuite()
- i18nfile = FunctionalDocFileSuite("i18nfile.txt", checker=checker)
- i18nfile.layer = I18nFileLayer
- suite.addTest(i18nfile)
- i18nimage = FunctionalDocFileSuite("i18nimage.txt", checker=checker)
- i18nimage.layer = I18nFileLayer
- suite.addTest(i18nimage)
- return suite
Modified: zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nfile.py
===================================================================
--- zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nfile.py 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nfile.py 2007-10-24 20:24:02 UTC (rev 81056)
@@ -19,7 +19,7 @@
from urllib import quote
from zope.i18n.negotiator import negotiator
-from zope.app.i18n import ZopeMessageFactory as _
+from zope.i18nmessageid import ZopeMessageFactory as _
class I18nFileView(object):
Modified: zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nimage.py
===================================================================
--- zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nimage.py 2007-10-24 19:22:04 UTC (rev 81055)
+++ zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/i18nimage.py 2007-10-24 20:24:02 UTC (rev 81056)
@@ -22,7 +22,7 @@
from zope.i18n.negotiator import negotiator
from zope.size import ISized
-from zope.app.i18n import ZopeMessageFactory as _
+from zope.i18nmessageid import ZopeMessageFactory as _
from zope.app.file.browser.image import ImageData
Copied: zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/tests.py (from rev 81055, zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/ftests.py)
===================================================================
--- zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/tests.py (rev 0)
+++ zope.app.i18nfile/trunk/src/zope/app/i18nfile/browser/tests.py 2007-10-24 20:24:02 UTC (rev 81056)
@@ -0,0 +1,42 @@
+##############################################################################
+#
+# Copyright (c) 2001, 2002 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 i18n versions of several content objects.
+
+$Id$
+"""
+
+__docformat__ = 'restructuredtext'
+
+import re
+import unittest
+from zope.testing import renormalizing
+from zope.app.testing.functional import FunctionalDocFileSuite
+from zope.app.i18nfile.testing import I18nFileLayer
+
+
+checker = renormalizing.RENormalizing([
+ (re.compile(r"HTTP/1\.1 200 .*"), "HTTP/1.1 200 OK"),
+ (re.compile(r"HTTP/1\.1 303 .*"), "HTTP/1.1 303 See Other"),
+ ])
+
+
+def test_suite():
+ suite = unittest.TestSuite()
+ i18nfile = FunctionalDocFileSuite("i18nfile.txt", checker=checker)
+ i18nfile.layer = I18nFileLayer
+ suite.addTest(i18nfile)
+ i18nimage = FunctionalDocFileSuite("i18nimage.txt", checker=checker)
+ i18nimage.layer = I18nFileLayer
+ suite.addTest(i18nimage)
+ return suite
More information about the Checkins
mailing list