Add a NEWS file and an example of using the wsgi server along with a link to Spawning; Set version number to 0.6.1 for a release.

This commit is contained in:
donovan
2008-07-07 13:17:39 -07:00
parent b0e4872d12
commit cd1b86488e
3 changed files with 39 additions and 1 deletions

18
NEWS Normal file
View File

@@ -0,0 +1,18 @@
0.6.x
=====
Fixes some long-standing bugs where sometimes failures in accept() or connect() would cause the coroutine that was waiting to be double-resumed, most often resulting in SwitchingToDeadGreenlet exceptions as well as weird tuple-unpacking exceptions in the CoroutinePool main loop.
0.6.1: Added eventlet.tpool.killall. Blocks until all of the threadpool threads have been told to exit and join()ed. Meant to be used to clean up the threadpool on exit or if calling execv. Used by Spawning.
0.5.x
=====
"The Pycon 2008 Refactor": The first release which incorporates libevent support. Also comes with significant refactoring and code cleanup, especially to the eventlet.wsgi http server. Docstring coverage is much higher and there is new extensive documentation: http://wiki.secondlife.com/wiki/Eventlet/Documentation
The point releases of 0.5.x fixed some bugs in the wsgi server, most notably handling of Transfer-Encoding: chunked; previously, it would happily send chunked encoding to clients which asked for HTTP/1.0, which isn't legal.
0.2
=====
Initial re-release of forked linden branch.

20
examples/wsgi.py Normal file
View File

@@ -0,0 +1,20 @@
"""This is a simple example of running a wsgi application with eventlet.
For a more fully-featured server which supports multiple processes,
multiple threads, and graceful code reloading, see:
http://pypi.python.org/pypi/Spawning/
"""
from eventlet import api, wsgi
def hello_world(env, start_response):
if env['PATH_INFO'] != '/':
start_response('404 Not Found', [('Content-Type', 'text/plain')])
return ['Not Found\r\n']
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['Hello, World!\r\n']
wsgi.server(api.tcp_listener(('', 8080)), hello_world)

View File

@@ -6,7 +6,7 @@ from setuptools import find_packages, setup
setup(
name='eventlet',
version='0.7pre',
version='0.6.1',
description='Coroutine-based networking library',
author='Linden Lab',
author_email='eventletdev@lists.secondlife.com',