summaryrefslogtreecommitdiff
path: root/www/py-WebTest
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2017-07-11 09:18:01 +0000
committeradam <adam@pkgsrc.org>2017-07-11 09:18:01 +0000
commit0a9a5f360685688dd9a33b6663b3787f721163dd (patch)
treec45a8d71218a3176adc709ab2addde720600e554 /www/py-WebTest
parentb82ca00da1db823024977736439dc216ade05c0b (diff)
downloadpkgsrc-0a9a5f360685688dd9a33b6663b3787f721163dd.tar.gz
This wraps any WSGI application and makes it easy to send test requests to
that application, without starting up an HTTP server. This provides convenient full-stack testing of applications written with any WSGI-compatible framework.
Diffstat (limited to 'www/py-WebTest')
-rw-r--r--www/py-WebTest/DESCR5
-rw-r--r--www/py-WebTest/Makefile27
-rw-r--r--www/py-WebTest/PLIST41
-rw-r--r--www/py-WebTest/distinfo7
-rw-r--r--www/py-WebTest/patches/patch-setup.py15
5 files changed, 95 insertions, 0 deletions
diff --git a/www/py-WebTest/DESCR b/www/py-WebTest/DESCR
new file mode 100644
index 00000000000..edcddfd895c
--- /dev/null
+++ b/www/py-WebTest/DESCR
@@ -0,0 +1,5 @@
+This wraps any WSGI application and makes it easy to send test requests to
+that application, without starting up an HTTP server.
+
+This provides convenient full-stack testing of applications written with any
+WSGI-compatible framework.
diff --git a/www/py-WebTest/Makefile b/www/py-WebTest/Makefile
new file mode 100644
index 00000000000..a7424af4c43
--- /dev/null
+++ b/www/py-WebTest/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2017/07/11 09:18:01 adam Exp $
+
+DISTNAME= WebTest-2.0.27
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= www python
+MASTER_SITES= ${MASTER_SITE_PYPI:=W/WebTest/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://webtest.pythonpaste.org/
+COMMENT= Helper to test WSGI applications
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-beautifulsoup4-[0-9]*:../../www/py-beautifulsoup4
+DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+DEPENDS+= ${PYPKGPREFIX}-WebOb>=1.2:../../www/py-WebOb
+DEPENDS+= ${PYPKGPREFIX}-waitress>=0.8.5:../../www/py-waitress
+BUILD_DEPENDS+= ${PYPKGPREFIX}-PasteDeploy-[0-9]*:../../www/py-PasteDeploy
+BUILD_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
+BUILD_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+BUILD_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
+BUILD_DEPENDS+= ${PYPKGPREFIX}-pyquery-[0-9]*:../../textproc/py-pyquery
+BUILD_DEPENDS+= ${PYPKGPREFIX}-WSGIProxy2-[0-9]*:../../www/py-WSGIProxy2
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-WebTest/PLIST b/www/py-WebTest/PLIST
new file mode 100644
index 00000000000..0b5536a83f5
--- /dev/null
+++ b/www/py-WebTest/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/11 09:18:01 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/webtest/__init__.py
+${PYSITELIB}/webtest/__init__.pyc
+${PYSITELIB}/webtest/__init__.pyo
+${PYSITELIB}/webtest/app.py
+${PYSITELIB}/webtest/app.pyc
+${PYSITELIB}/webtest/app.pyo
+${PYSITELIB}/webtest/compat.py
+${PYSITELIB}/webtest/compat.pyc
+${PYSITELIB}/webtest/compat.pyo
+${PYSITELIB}/webtest/debugapp.py
+${PYSITELIB}/webtest/debugapp.pyc
+${PYSITELIB}/webtest/debugapp.pyo
+${PYSITELIB}/webtest/ext.py
+${PYSITELIB}/webtest/ext.pyc
+${PYSITELIB}/webtest/ext.pyo
+${PYSITELIB}/webtest/forms.py
+${PYSITELIB}/webtest/forms.pyc
+${PYSITELIB}/webtest/forms.pyo
+${PYSITELIB}/webtest/http.py
+${PYSITELIB}/webtest/http.pyc
+${PYSITELIB}/webtest/http.pyo
+${PYSITELIB}/webtest/lint.py
+${PYSITELIB}/webtest/lint.pyc
+${PYSITELIB}/webtest/lint.pyo
+${PYSITELIB}/webtest/response.py
+${PYSITELIB}/webtest/response.pyc
+${PYSITELIB}/webtest/response.pyo
+${PYSITELIB}/webtest/sel.py
+${PYSITELIB}/webtest/sel.pyc
+${PYSITELIB}/webtest/sel.pyo
+${PYSITELIB}/webtest/utils.py
+${PYSITELIB}/webtest/utils.pyc
+${PYSITELIB}/webtest/utils.pyo
diff --git a/www/py-WebTest/distinfo b/www/py-WebTest/distinfo
new file mode 100644
index 00000000000..cfc7a13635a
--- /dev/null
+++ b/www/py-WebTest/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/07/11 09:18:01 adam Exp $
+
+SHA1 (WebTest-2.0.27.tar.gz) = 87bbb42f0f564bdc42862ef4ffadc55bd9650cc3
+RMD160 (WebTest-2.0.27.tar.gz) = b69eb0a999e1338533fc9d229e41cf81d2aa914a
+SHA512 (WebTest-2.0.27.tar.gz) = b0a202641cd428a55ff3456f3c7d36fdf11151ab78ecf0022d51513dc2860587efa3aa4594829a89244c245fd45ca3055da12fb421559ad8341a463f9e528ab1
+Size (WebTest-2.0.27.tar.gz) = 72603 bytes
+SHA1 (patch-setup.py) = 4fd4f1265ee26296bb1c0c12fa6b39ebc31cc7f3
diff --git a/www/py-WebTest/patches/patch-setup.py b/www/py-WebTest/patches/patch-setup.py
new file mode 100644
index 00000000000..684526d6b04
--- /dev/null
+++ b/www/py-WebTest/patches/patch-setup.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2017/07/11 09:18:01 adam Exp $
+
+Allow newer py-nose versions.
+
+--- /tmp/pkgsrc/www/py-WebTest/work/WebTest-2.0.27/setup.py.orig 2017-07-11 08:25:23.000000000 +0000
++++ /tmp/pkgsrc/www/py-WebTest/work/WebTest-2.0.27/setup.py
+@@ -15,7 +15,7 @@ install_requires = [
+ ]
+
+ tests_require = [
+- 'nose<1.3.0', 'coverage', 'mock',
++ 'nose', 'coverage', 'mock',
+ 'PasteDeploy', 'WSGIProxy2', 'pyquery'
+ ]
+