[Zope-CVS] SVN: zope.tales/trunk/ Eggify
Tres Seaver
tseaver at palladion.com
Tue Mar 7 07:48:54 EST 2006
Log message for revision 65852:
Eggify
Changed:
A zope.tales/trunk/INSTALL.txt
A zope.tales/trunk/develop.py
A zope.tales/trunk/setup.py
A zope.tales/trunk/src/
A zope.tales/trunk/src/zope/
A zope.tales/trunk/src/zope/__init__.py
A zope.tales/trunk/test.py
-=-
Added: zope.tales/trunk/INSTALL.txt
===================================================================
--- zope.tales/trunk/INSTALL.txt 2006-03-07 12:48:09 UTC (rev 65851)
+++ zope.tales/trunk/INSTALL.txt 2006-03-07 12:48:54 UTC (rev 65852)
@@ -0,0 +1,83 @@
+Installing This Package
+=======================
+
+Prerequisites
+-------------
+
+The installation steps below assume that you have the cool new 'setuptools'
+package installed in your Python. Here is where to get it:
+
+ $ wget http://peak.telecommunity.com/dist/ez_setup.py
+ $ /path/to/your/python ez_setup.py # req. write access to 'site-packages'
+
+
+ - Docs for EasyInstall:
+ http://peak.telecommunity.com/DevCenter/EasyInstall
+
+ - Docs for setuptools:
+ http://peak.telecommunity.com/DevCenter/setuptools
+
+ - Docs for eggs:
+ http://peak.telecommunity.com/DevCenter/PythonEggs
+
+
+Installing a Development Checkout
+---------------------------------
+
+Check out the package from subversion:
+
+ $ svn co svn+ssh://svn.zope.org/repos/main/zope.deprecation/trunk \
+ src/zope.deprecation
+ $ cd src/zope.deprecation
+
+Install it as a "devlopment egg" (which also installs its "hard"
+dependencies):
+
+ $ /path/to/your/python setup.py devel
+
+The installation of dependency eggs uses the 'setup.cfg' file in
+the checkout. You can supply '--find-links' on the command line to
+point it at a non-standard package repository.
+
+
+Running the Tests
+-----------------
+
+To test the package, you will also need the 'zope.testing' package, which
+can't (yet) be automatically installed. Eventually, you should be able to
+type:
+
+ $ /path/to/your/python setup.py test
+
+and have it install the "testing dependencies." Today, the workaround
+is to install it manually:
+
+ $ /path/to/easy_install --find-links="...." zope-testing
+
+You can then run the tests (finally) from the checkout directory:
+
+ $ /path/to/your/python test.py
+ Running:
+ .............
+ Ran 13 tests with 0 failures and 0 errors in 0.094 seconds.
+
+
+Installing a Source Distribution
+--------------------------------
+
+You can also install it from a source distribution:
+
+ $ /path/to/easy_install --find-links="...." -eb src zope-deprecation
+ $ cd src/zope.deprecation
+ $ /path/to/your/python setup.py devel
+
+
+Installing a Binary Egg
+-----------------------
+
+Install the package as a "binary egg" (which also installs its "hard"
+dependencies):
+
+ $ /path/to/easy_install --find-links="...." zope-deprecation
+
+
Property changes on: zope.tales/trunk/INSTALL.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Added: zope.tales/trunk/develop.py
===================================================================
--- zope.tales/trunk/develop.py 2006-03-07 12:48:09 UTC (rev 65851)
+++ zope.tales/trunk/develop.py 2006-03-07 12:48:54 UTC (rev 65852)
@@ -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()
Property changes on: zope.tales/trunk/develop.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: zope.tales/trunk/setup.py
===================================================================
--- zope.tales/trunk/setup.py 2006-03-07 12:48:09 UTC (rev 65851)
+++ zope.tales/trunk/setup.py 2006-03-07 12:48:54 UTC (rev 65852)
@@ -0,0 +1,47 @@
+##############################################################################
+#
+# 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.
+#
+##############################################################################
+"""Setup for zope.deprecation package
+
+$Id$
+"""
+
+import os
+
+
+try:
+ from setuptools import setup, Extension
+
+except ImportError, e:
+ from distutils.core import setup, Extension
+
+setup(name='zope.deprecation',
+ version='3.0',
+
+ url='http://svn.zope.org/zope.deprecation',
+ license='ZPL 2.1',
+ description='Zope 3 Deprection Framework',
+ author='Zope Corporation and Contributors',
+ author_email='zope3-dev at zope.org',
+ long_description='',
+
+ packages=['zope', 'zope.deprecation'],
+ package_dir = {'': os.path.join(os.path.dirname(__file__), 'src')},
+
+ namespace_packages=['zope',],
+ tests_require = ['zope.testing'],
+ include_package_data = True,
+
+ zip_safe = False,
+ )
+
Property changes on: zope.tales/trunk/setup.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: zope.tales/trunk/src/zope/__init__.py
===================================================================
--- zope.tales/trunk/src/zope/__init__.py 2006-03-07 12:48:09 UTC (rev 65851)
+++ zope.tales/trunk/src/zope/__init__.py 2006-03-07 12:48:54 UTC (rev 65852)
@@ -0,0 +1,6 @@
+# namespace package boilerplate
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError, e:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
Property changes on: zope.tales/trunk/src/zope/__init__.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: zope.tales/trunk/test.py
===================================================================
--- zope.tales/trunk/test.py 2006-03-07 12:48:09 UTC (rev 65851)
+++ zope.tales/trunk/test.py 2006-03-07 12:48:54 UTC (rev 65852)
@@ -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.deprecation',
+ '--tests-pattern', '^tests$',
+ ]
+
+sys.exit(testrunner.run(defaults))
+
Property changes on: zope.tales/trunk/test.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the Zope-CVS
mailing list