[Repoze-dev] Repoze CVS: .cvsignore README.txt setup.py
Tres Seaver
tseaver at agendaless.com
Mon Sep 10 23:12:17 UTC 2007
Update of /home/repoze/cvs/repoze.obob
In directory laguna.palladion.com:/tmp/cvs-serv12748
Added Files:
.cvsignore README.txt setup.py
Log Message:
- Skeleton package.
--- NEW FILE: .cvsignore ---
repoze.obob.egg-info
--- NEW FILE: setup.py ---
__version__ = '0.1'
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
setup(name='repoze.obob',
version=__version__,
description='Zope-like publisher as WSGI application',
long_description=""" Long description XXX """,
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: Zope Public License",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
"Framework :: Zope3",
],
keywords='web application server wsgi zope',
author="Agendaless Consulting",
author_email="reopze-dev at lists.repoze.org",
url="http://www.repoze.org",
license="ZPL 2.0",
packages=find_packages(),
include_package_data=True,
namespace_packages=['repoze'],
zip_safe=False,
install_requires=['ZODB3','PasteScript','WSGIUtils'],
test_suite='repoze.obob.tests',
entry_points="""
[paste.app_factory]
obob = repoze.obob:make_obob
""",
)
--- NEW FILE: README.txt ---
Overview
repoze.obob is a reconstruction of the "bobo" precursor of Zope (the
"object publisher" portion), stripped down to be used as a possible
application endpoint in the 'repoze' stack.
Installation
Installing setuptools
repoze.obob depends on setuptools for its installation. To install
setuptools:
- Download ez_setup.py from
http://peak.telecommunity.com/dist/ez_setup.py
- Run ez_setup.py using Python 2.4.3 or better. You can use
http://peak.telecommunity.com/dist/virtual-python.py if you're
running a UNIX system to avoid polluting your "system" Python's
"site-packages" directory with repoze-required eggs.
Installing repoze
- After ez_setup.py is finished installing setuptools, run::
$pyprefix/bin/python setup.py develop
This will cause all packages required by repoze.obob (except for Zope 2)
to be installed as Python eggs in the Python site-packages
directory and will cause the code from within the repoze
directory to be used during execution.
Installing Zope2 as a Library
- Because we are using 'paste' to drive the application server, we
really only need to get the Zope2 $SOFTWARE_HOME packages onto
the Python search path. Here is one recipe::
$ wget http://www.zope.org/Products/Zope/2.10.4/Zope-2.10.4-final.tgz
$ tar xzf Zope-2.10.4-final.tgz
$ cd Zope-2.10.4-final
$ $pyprefix/bin/python setup.py build_ext -i
$ echo `pwd`/lib/python > $pyprefix/lib/python2.4/site-packages/Zope.pth
To test::
$ $pyprefix/bin/python -c "import Zope2"
Starting
Testing repoze.obob
- To all run repoze tests, cd to the top-level repoze checkout dir and
run::
PYTHONPATH=/your/zope2/software_home $pyprefix/bin/python test.py
If you installed Zope2 as a library above, you should be able to
leave off the PYTHONPATH assignement.
Running repoze
- To start a server that serves up a demo app on port 8080, cd to the
top-level repoze checkout dir and run::
PYTHONPATH=/your/zope2/software_home $pyprefix/bin/paster serve sample-repoze.ini
If you installed Zope2 as a library above, you should be able to
leave off the PYTHONPATH assignement.
When you visit http://localhost:8080/ in a browser, you should
see the Zope 2 quickstart page. The request log will be printed
to the console.
_______________________________________________
Repoze-dev mailing list
Repoze-dev at lists.repoze.org
http://lists.repoze.org/mailman/listinfo/repoze-dev
More information about the Repoze-dev
mailing list