diff options
-rw-r--r-- | devel/py-wsgi_intercept/Makefile | 13 | ||||
-rw-r--r-- | devel/py-wsgi_intercept/distinfo | 6 | ||||
-rw-r--r-- | devel/py-wsgi_intercept/pkg-descr | 24 |
3 files changed, 33 insertions, 10 deletions
diff --git a/devel/py-wsgi_intercept/Makefile b/devel/py-wsgi_intercept/Makefile index 9e72b997d556..7c132e9beee0 100644 --- a/devel/py-wsgi_intercept/Makefile +++ b/devel/py-wsgi_intercept/Makefile @@ -2,19 +2,22 @@ # $FreeBSD$ PORTNAME= wsgi_intercept -PORTVERSION= 1.4.1 +PORTVERSION= 1.9.1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org -COMMENT= WSGI application in place of a real uri for testing +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= WSGI application in place of a real URI for testing LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE -NO_ARCH= yes +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes .include <bsd.port.mk> diff --git a/devel/py-wsgi_intercept/distinfo b/devel/py-wsgi_intercept/distinfo index b1b06f6a4ff4..8455a8274e10 100644 --- a/devel/py-wsgi_intercept/distinfo +++ b/devel/py-wsgi_intercept/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1478983348 -SHA256 (wsgi_intercept-1.4.1.tar.gz) = a244cd7de9a06fab53d769668190d912d77e5d36aa38b6034d4413084c6f1458 -SIZE (wsgi_intercept-1.4.1.tar.gz) = 26489 +TIMESTAMP = 1578401172 +SHA256 (wsgi_intercept-1.9.1.tar.gz) = 692552188a52281edbcbfb03584a340ab8fa66e7259d1b0ae9254e627713784d +SIZE (wsgi_intercept-1.9.1.tar.gz) = 29123 diff --git a/devel/py-wsgi_intercept/pkg-descr b/devel/py-wsgi_intercept/pkg-descr index 4e1678057beb..e921721dc5aa 100644 --- a/devel/py-wsgi_intercept/pkg-descr +++ b/devel/py-wsgi_intercept/pkg-descr @@ -1,3 +1,23 @@ -wsgi_intercept installs a WSGI application in place of a real URI for testing. +Testing a WSGI application sometimes involves starting a server at a local host +and port, then pointing your test code to that address. Instead, this library +lets you intercept calls to any specific host/port combination and redirect them +into a WSGI application importable by your test program. Thus, you can avoid +spawning multiple processes or threads to test your Web app. -WWW: https://pypi.org/project/wsgi_intercept/ +wsgi_intercept works with a variety of HTTP clients in Python 2.7, 3.5 and +beyond, and in pypy. +- urllib2 +- urllib.request +- httplib +- http.client +- httplib2 +- requests +- urllib3 + +wsgi_intercept works by replacing httplib.HTTPConnection with a subclass, +wsgi_intercept.WSGI_HTTPConnection. This class then redirects specific +server/port combinations into a WSGI application by emulating a socket. If no +intercept is registered for the host and port requested, those requests are +passed on to the standard handler. + +WWW: https://github.com/cdent/wsgi-intercept |