summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2006-04-05 05:11:49 +0000
committerTres Seaver <tseaver@palladion.com>2006-04-05 05:11:49 +0000
commit38fc9994b5fa0435ea49b255707cc16a158af1d3 (patch)
treebc0d339ce9e656ca9ebdfd82732e440f4024d6f3
parent9722605da9830b5d9036f0fd6943346b01f8b38f (diff)
downloadzope-pagetemplate-38fc9994b5fa0435ea49b255707cc16a158af1d3.tar.gz
Prepare historical releases.
-rw-r--r--develop.py21
-rw-r--r--src/zope/__init__.py7
-rw-r--r--test.py36
3 files changed, 64 insertions, 0 deletions
diff --git a/develop.py b/develop.py
new file mode 100644
index 0000000..f267763
--- /dev/null
+++ b/develop.py
@@ -0,0 +1,21 @@
+##############################################################################
+#
+# Copyright (c) 2004 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.
+#
+##############################################################################
+"""Workspace configuration wrapper script
+
+$Id$
+"""
+
+import workspace.develop
+
+workspace.develop.main()
diff --git a/src/zope/__init__.py b/src/zope/__init__.py
new file mode 100644
index 0000000..f60ff1b
--- /dev/null
+++ b/src/zope/__init__.py
@@ -0,0 +1,7 @@
+# namespace package boilerplate
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError, e:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
+
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..b16c6ce
--- /dev/null
+++ b/test.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+##############################################################################
+#
+# Copyright (c) 2004 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (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.
+#
+##############################################################################
+"""Sample test script using zope.testing.testrunner
+
+see zope.testing testrunner.txt
+
+$Id$
+"""
+
+import os, sys
+
+src = os.path.join(os.path.split(sys.argv[0])[0], 'src')
+sys.path.insert(0, src) # put at beginning to avoid one in site_packages
+
+from zope.testing import testrunner
+
+defaults = [
+ '--path', src,
+ '--package', 'zope.i18nmessageid',
+ '--tests-pattern', '^tests$',
+ ]
+
+sys.exit(testrunner.run(defaults))
+