HTTP proxying tools for WSGI apps
Created attachment 340322 [details] wsgiproxy-0.2.2.ebuild
dev-python/wsgiproxy2 is there - do we need both?
While testing if Mozilla Sync Server Core (bug 459514) works with wsgiproxy2 I notice it wants to install a truckload of new dependencies (20 packages). Is this really needed? According to https://pypi.python.org/pypi/WSGIProxy2, requests, restkit and urllib3 are optional. Wouldn't it be cleaner to have USE flags for them instead of just pulling them all in?
Looks like several packages need some work, like dev-python/pastedeploy (which is already in portage): Traceback (most recent call last): File "/etc/mozilla-sync-server/server.wsgi", line 74, in <module> application = loadapp('config:%s'% ini_file) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp return loadobj(APP, uri, name=name, **kw) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 271, in loadobj global_conf=global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext global_conf=global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig return loader.get_context(object_type, name, global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 454, in get_context section) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use object_type, name=use, global_conf=global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 406, in get_context global_conf=global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext global_conf=global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg return loader.get_context(object_type, name, global_conf) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 620, in get_context object_type, name=name) File "/usr/lib64/python2.7/site-packages/paste/deploy/loadwsgi.py", line 640, in find_egg_entry_point pkg_resources.require(self.spec) File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 691, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 589, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: wsgiproxy unable to load app 0 (mountpoint='') (callable not found or import error)
After digging a bit further, it seems that the problem is not in pastedeploy. After correctly patching mozilla-sync-server-core, it works with dev-python/wsgiproxy2. Feel free to close this bug, I'll update my overlay and bug 459514.