# HG changeset patch # User Jeff Hammel # Date 1362899028 28800 # Node ID 4d9a2a2fb8c07d13b4c4de4f04e8a798eb83c72e # Parent d30118837c1ae27aa9fcb6e388b8b085b4fe173c print out the localhost url and other minor fixes diff -r d30118837c1a -r 4d9a2a2fb8c0 setup.py --- a/setup.py Sun Dec 30 20:23:50 2012 -0800 +++ b/setup.py Sat Mar 09 23:03:48 2013 -0800 @@ -5,7 +5,7 @@ # description try: - filename = os.path.join(os.path.dirname(__file__), 'README.txt') + filename = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.txt') description = file(filename).read() except: description = '' @@ -27,7 +27,7 @@ author_email='jhammel@mozilla.com', url='http://k0s.org/', license='GPL', - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), + packages=['wsgintegrate'], include_package_data=True, zip_safe=False, install_requires=dependencies, diff -r d30118837c1a -r 4d9a2a2fb8c0 wsgintegrate/main.py --- a/wsgintegrate/main.py Sun Dec 30 20:23:50 2012 -0800 +++ b/wsgintegrate/main.py Sat Mar 09 23:03:48 2013 -0800 @@ -2,7 +2,11 @@ """ command line entry point for wsgintegrate -serves an application from a .ini file +serves an application from a .ini file +(really, a DAG) + +uses wsgiref, though could in theory make use of +other WSGI servers, if available (TODO) """ import sys @@ -54,6 +58,7 @@ return # serve it + print 'http://localhost:%d/' % options.port wsgiref(app=factory.load(), port=options.port) if __name__ == '__main__':