
tseaver at palladion
Feb 28, 2006, 7:35 PM
Post #1 of 1
(462 views)
Permalink
|
|
SVN: zope.structuredtext/trunk/ Add eggifying setuptools support.
|
|
Log message for revision 65638: Add eggifying setuptools support. Changed: A zope.structuredtext/trunk/INSTALL.txt A zope.structuredtext/trunk/setup.py A zope.structuredtext/trunk/src/zope/__init__.py A zope.structuredtext/trunk/test.py -=- Copied: zope.structuredtext/trunk/INSTALL.txt (from rev 65637, zope.i18nmessageid/trunk/INSTALL.txt) =================================================================== --- zope.i18nmessageid/trunk/INSTALL.txt 2006-03-01 03:20:02 UTC (rev 65637) +++ zope.structuredtext/trunk/INSTALL.txt 2006-03-01 03:35:23 UTC (rev 65638) @@ -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.structuredtext/trunk \ + src/zope.structuredtext + $ cd src/zope.structuredtext + +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-structuredtext + $ cd src/zope.structuredtext + $ /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-structuredtext + + Copied: zope.structuredtext/trunk/setup.py (from rev 65637, zope.i18nmessageid/trunk/setup.py) =================================================================== --- zope.i18nmessageid/trunk/setup.py 2006-03-01 03:20:02 UTC (rev 65637) +++ zope.structuredtext/trunk/setup.py 2006-03-01 03:35:23 UTC (rev 65638) @@ -0,0 +1,44 @@ +############################################################################## +# +# Copyright (c) 2006 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.structuredtext package + +$Id$ +""" + +import os + +try: + from setuptools import setup, Extension +except ImportError, e: + from distutils.core import setup, Extension + +setup(name='zope_structuredtext', + version='3.2', + + url='http://svn.zope.org/zope.structuredtext', + license='ZPL 2.1', + description='Zope 3 Structured Text', + author='Zope Corporation and Contributors', + author_email='zope3-dev [at] zope', + long_description='', + + packages=['zope', 'zope.structuredtext'], + package_dir = {'': 'src'}, + + namespace_packages=['zope',], + tests_require = ['zope_testing'], + include_package_data = True, + + zip_safe = False, + ) Copied: zope.structuredtext/trunk/src/zope/__init__.py (from rev 65637, zope.i18nmessageid/trunk/src/zope/__init__.py) Copied: zope.structuredtext/trunk/test.py (from rev 65637, zope.i18nmessageid/trunk/test.py) =================================================================== --- zope.i18nmessageid/trunk/test.py 2006-03-01 03:20:02 UTC (rev 65637) +++ zope.structuredtext/trunk/test.py 2006-03-01 03:35:23 UTC (rev 65638) @@ -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.structuredtext', + '--tests-pattern', '^tests$', + ] + +sys.exit(testrunner.run(defaults)) + _______________________________________________ Zope-CVS maillist - Zope-CVS [at] zope http://mail.zope.org/mailman/listinfo/zope-cvs Zope CVS instructions: http://dev.zope.org/CVS
|