Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459508 - dev-python/wsgiproxy-0.2.2 (new package)
Summary: dev-python/wsgiproxy-0.2.2 (new package)
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-02-27 13:16 UTC by Stijn Tintel
Modified: 2013-04-23 11:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
wsgiproxy-0.2.2.ebuild (wsgiproxy-0.2.2.ebuild,493 bytes, text/plain)
2013-02-27 13:16 UTC, Stijn Tintel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Tintel 2013-02-27 13:16:19 UTC
HTTP proxying tools for WSGI apps
Comment 1 Stijn Tintel 2013-02-27 13:16:44 UTC
Created attachment 340322 [details]
wsgiproxy-0.2.2.ebuild
Comment 2 Patrick Lauer gentoo-dev 2013-04-23 05:44:21 UTC
dev-python/wsgiproxy2 is there - do we need both?
Comment 3 Stijn Tintel 2013-04-23 09:40:30 UTC
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?
Comment 4 Stijn Tintel 2013-04-23 11:01:08 UTC
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)
Comment 5 Stijn Tintel 2013-04-23 11:49:59 UTC
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.