Commit 610dce7e authored by Baiju Muthukadan's avatar Baiju Muthukadan

Initial commit of zope.app.container for eggification.

parent 0ed4135a
zope.app.apidoc Package Changelog
=================================
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.app.container/trunk \
src/zope.app.container
$ cd src/zope.app.container
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.app.container
$ cd src/zope.app.container
$ /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.app.container
exclude setup.cfg
zope.app.container Package Readme
=================================
Overview
--------
This package define interfaces of container components, and provides
sample container implementations.
Changes
-------
See CHANGES.txt.
Installation
------------
See INSTALL.txt.
Developer Resources
-------------------
- Subversion browser:
http://svn.zope.org/zope.app.container/
- Read-only Subversion checkout:
$ svn co svn://svn.zope.org/repos/main/zope.app.container/trunk
- Writable Subversion checkout:
$ svn co svn+ssh://userid@svn.zope.org/repos/main/zope.app.container/trunk
[development]
depends = zope.testing
[egg_info]
tag_build = .dev
tag_svn_revision = 1
##############################################################################
#
# 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.app.container package
$Id$
"""
import os
try:
from setuptools import setup, Extension
except ImportError, e:
from distutils.core import setup, Extension
setup(name='zope.app.container',
version='3.4-dev',
url='http://svn.zope.org/zope.app.container',
license='ZPL 2.1',
description='Zope container',
author='Zope Corporation and Contributors',
author_email='zope3-dev@zope.org',
long_description="This package define interfaces of"
"container components, and provides"
"sample container implementations.",
packages=['zope', 'zope.app', 'zope.app.container',
'zope.app.container.tests',
'zope.app.container.ftests',
'zope.app.container.browser',
'zope.app.container.browser.tests',
'zope.app.container.browser.ftests'
],
package_dir = {'': 'src'},
ext_modules=[Extension("zope.app.container._zope_app_container_contained",
[os.path.join("src", "zope", "app", "container",
"_zope_app_container_contained.c")
], include_dirs=['include']),
],
namespace_packages=['zope', 'zope.app'],
tests_require = ['zope.testing'],
install_requires=['zope.interface',
'zope.cachedescriptors',
'zope.dottedname',
'zope.schema',
'zope.component',
'zope.event',
'zope.location',
'zope.exceptions',
'zope.security',
'zope.lifecycleevent',
'zope.i18nmessageid',
'zope.filerepresentation',
'zope.size',
'zope.traversing',
'zope.publisher',
'zope.dublincore',
'zope.copypastemove',
],
include_package_data = True,
zip_safe = False,
)
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
# this is a namespace package
try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
#!/usr/bin/env python
##############################################################################
#
# Copyright (c) 2006 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
here = os.path.abspath(os.path.dirname(sys.argv[0]))
# Remove this directory from path:
sys.path[:] = [p for p in sys.path if os.path.abspath(p) != here]
src = os.path.join(here, '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.app.container',
'--tests-pattern', '^f?tests$',
]
sys.exit(testrunner.run(defaults))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment