# HG changeset patch # User Jeff Hammel # Date 1308239253 25200 # Node ID 043088856f0da1ec05e4fdcd0ffd5016f59b72a3 # Parent 041ba864496fd2364504dac3a5d44a3e2e2f32a6 clean up this bridge a bit diff -r 041ba864496f -r 043088856f0d hgpaste/__init__.py --- a/hgpaste/__init__.py Wed Feb 17 16:38:29 2010 +0000 +++ b/hgpaste/__init__.py Thu Jun 16 08:47:33 2011 -0700 @@ -1,1 +1,1 @@ -# +from factory import * diff -r 041ba864496f -r 043088856f0d hgpaste/factory.py --- a/hgpaste/factory.py Wed Feb 17 16:38:29 2010 +0000 +++ b/hgpaste/factory.py Thu Jun 16 08:47:33 2011 -0700 @@ -1,5 +1,12 @@ -def make_app(global_conf, config_file): +__all__ = ['wsgi_app', 'make_app'] + +def wsgi_app(config_file): + """wsgi application""" from mercurial import demandimport; demandimport.enable() from mercurial.hgweb.hgwebdir_mod import hgwebdir application = hgwebdir(config_file) - return application + return application + +def make_app(global_conf, config_file): + """make an app for paster""" + return wsgi_app(config_file) diff -r 041ba864496f -r 043088856f0d setup.py --- a/setup.py Wed Feb 17 16:38:29 2010 +0000 +++ b/setup.py Thu Jun 16 08:47:33 2011 -0700 @@ -1,11 +1,10 @@ from setuptools import setup, find_packages -import sys, os -version = '0.1' +version = '0.1.1' setup(name='hgpaste', version=version, - description="front-end to serve a hg webdir with paste", + description="front-end to serve a hg webdir with paste and other", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers