[Checkins] SVN: zope.tal/trunk/ - Removed unnecessary 'dummyengine'
dependency on zope.i18n to
Chris McDonough
chrism at plope.com
Wed Nov 14 14:34:43 EST 2007
Log message for revision 81843:
- Removed unnecessary 'dummyengine' dependency on zope.i18n to
simplify distribution.
- Supprort ability to run tests using "setup.py test".
- Stop pinning (no longer required) zope.traversing and
zope.app.publisher versions in buildout.cfg.
Changed:
U zope.tal/trunk/CHANGES.txt
U zope.tal/trunk/buildout.cfg
U zope.tal/trunk/setup.py
U zope.tal/trunk/src/zope/tal/dummyengine.py
-=-
Modified: zope.tal/trunk/CHANGES.txt
===================================================================
--- zope.tal/trunk/CHANGES.txt 2007-11-14 17:08:10 UTC (rev 81842)
+++ zope.tal/trunk/CHANGES.txt 2007-11-14 19:34:42 UTC (rev 81843)
@@ -2,6 +2,17 @@
CHANGES
=======
+Next Release
+------------
+
+- Removed unnecessary 'dummyengine' dependency on zope.i18n to
+ simplify distribution.
+
+- Supprort ability to run tests using "setup.py test".
+
+- Stop pinning (no longer required) zope.traversing and
+ zope.app.publisher versions in buildout.cfg.
+
3.4.0 (2007-10-03)
------------------
@@ -14,6 +25,5 @@
- Updated dependency for ``zope.i18n`` that requires the correct version of
zope.security to avoid a hidden dependency issue in zope.security.
-
Note: The code changes before 3.4.0b1 where not tracked as an individual
package and have been documented in the Zope 3 changelog.
Modified: zope.tal/trunk/buildout.cfg
===================================================================
--- zope.tal/trunk/buildout.cfg 2007-11-14 17:08:10 UTC (rev 81842)
+++ zope.tal/trunk/buildout.cfg 2007-11-14 19:34:42 UTC (rev 81843)
@@ -1,12 +1,7 @@
[buildout]
develop = .
parts = test
-versions = versions
[test]
recipe = zc.recipe.testrunner
eggs = zope.tal
-
-[versions]
-zope.traversing = 3.4.0
-zope.app.publisher = 3.4.0
Modified: zope.tal/trunk/setup.py
===================================================================
--- zope.tal/trunk/setup.py 2007-11-14 17:08:10 UTC (rev 81842)
+++ zope.tal/trunk/setup.py 2007-11-14 19:34:42 UTC (rev 81843)
@@ -16,11 +16,30 @@
$Id$
"""
import os
+import sys
from setuptools import setup, find_packages
+here = os.path.dirname(__file__)
+
def read(*rnames):
- return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+ return open(os.path.join(here, *rnames)).read()
+def alltests():
+ # use the zope.testing testrunner machinery to find all the
+ # test suites we've put under ourselves
+ from zope.testing.testrunner import get_options
+ from zope.testing.testrunner import find_suites
+ from zope.testing.testrunner import configure_logging
+ configure_logging()
+ from unittest import TestSuite
+ here = os.path.abspath(os.path.dirname(sys.argv[0]))
+ args = sys.argv[:]
+ src = os.path.join(here, 'src')
+ defaults = ['--test-path', src]
+ options = get_options(args, defaults)
+ suites = list(find_suites(options))
+ return TestSuite(suites)
+
setup(name='zope.tal',
version = '3.4.1dev',
author='Zope Corporation and Contributors',
@@ -50,9 +69,12 @@
extras_require = dict(
test=['zope.testing',
]),
+ test_suite="__main__.alltests", # to support "setup.py test"
+ tests_require = ['zope.i18nmessageid',
+ 'zope.interface',
+ 'zope.testing'],
install_requires=['setuptools',
'zope.i18nmessageid',
- 'zope.i18n',
'zope.interface',
],
include_package_data = True,
Modified: zope.tal/trunk/src/zope/tal/dummyengine.py
===================================================================
--- zope.tal/trunk/src/zope/tal/dummyengine.py 2007-11-14 17:08:10 UTC (rev 81842)
+++ zope.tal/trunk/src/zope/tal/dummyengine.py 2007-11-14 19:34:42 UTC (rev 81843)
@@ -21,7 +21,6 @@
from zope.tal.taldefs import NAME_RE, TALExpressionError, ErrorInfo
from zope.tal.interfaces import ITALExpressionCompiler, ITALExpressionEngine
from zope.i18nmessageid import Message
-from zope.i18n.interfaces import ITranslationDomain
Default = object()
@@ -261,7 +260,6 @@
class DummyTranslationDomain(object):
- implements(ITranslationDomain)
domain = ''
More information about the Checkins
mailing list