pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-test-localserver Add py-pytest-localserver-0....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f88d6845f674
branches:  trunk
changeset: 369425:f88d6845f674
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Sep 29 14:13:32 2017 +0000

description:
Add py-pytest-localserver-0.3.7:

pytest-localserver is a plugin for the pytest testing framework which
enables you to test server connections locally.

Sometimes monkeypatching urllib2.urlopen() just does not cut it, for
instance if you work with urllib2.Request, define your own
openers/handlers or work with httplib. In these cases it may come in
handy to have an HTTP server running locally which behaves just like the
real thing.

diffstat:

 devel/py-test-localserver/DESCR    |   8 ++++++++
 devel/py-test-localserver/Makefile |  25 +++++++++++++++++++++++++
 devel/py-test-localserver/PLIST    |  25 +++++++++++++++++++++++++
 devel/py-test-localserver/distinfo |   6 ++++++
 4 files changed, 64 insertions(+), 0 deletions(-)

diffs (80 lines):

diff -r ad4e9fff2f2e -r f88d6845f674 devel/py-test-localserver/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-localserver/DESCR   Fri Sep 29 14:13:32 2017 +0000
@@ -0,0 +1,8 @@
+pytest-localserver is a plugin for the pytest testing framework which
+enables you to test server connections locally.
+
+Sometimes monkeypatching urllib2.urlopen() just does not cut it, for
+instance if you work with urllib2.Request, define your own
+openers/handlers or work with httplib. In these cases it may come in
+handy to have an HTTP server running locally which behaves just like the
+real thing.
diff -r ad4e9fff2f2e -r f88d6845f674 devel/py-test-localserver/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-localserver/Makefile        Fri Sep 29 14:13:32 2017 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2017/09/29 14:13:32 joerg Exp $
+
+DISTNAME=      pytest-localserver-0.3.7
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-localserver/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://bitbucket.org/pytest-dev/pytest-localserver/
+COMMENT=       py.test plugin to test server connections locally
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-werkzeug>=0.10:../../www/py-werkzeug
+# Tests
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test>=2.0.0:../../devel/py-test
+BUILD_DEPENDS+=                ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+
+USE_LANGUAGES=         # none
+
+do-test:
+       cd ${WRKSRC}/tests && py.test-${PYVERSSUFFIX}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ad4e9fff2f2e -r f88d6845f674 devel/py-test-localserver/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-localserver/PLIST   Fri Sep 29 14:13:32 2017 +0000
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/29 14:13:32 joerg 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}/pytest_localserver/__init__.py
+${PYSITELIB}/pytest_localserver/__init__.pyc
+${PYSITELIB}/pytest_localserver/__init__.pyo
+${PYSITELIB}/pytest_localserver/ca.crt
+${PYSITELIB}/pytest_localserver/http.py
+${PYSITELIB}/pytest_localserver/http.pyc
+${PYSITELIB}/pytest_localserver/http.pyo
+${PYSITELIB}/pytest_localserver/https.py
+${PYSITELIB}/pytest_localserver/https.pyc
+${PYSITELIB}/pytest_localserver/https.pyo
+${PYSITELIB}/pytest_localserver/plugin.py
+${PYSITELIB}/pytest_localserver/plugin.pyc
+${PYSITELIB}/pytest_localserver/plugin.pyo
+${PYSITELIB}/pytest_localserver/server.pem
+${PYSITELIB}/pytest_localserver/smtp.py
+${PYSITELIB}/pytest_localserver/smtp.pyc
+${PYSITELIB}/pytest_localserver/smtp.pyo
diff -r ad4e9fff2f2e -r f88d6845f674 devel/py-test-localserver/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-test-localserver/distinfo        Fri Sep 29 14:13:32 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/09/29 14:13:32 joerg Exp $
+
+SHA1 (pytest-localserver-0.3.7.tar.gz) = ee41ed58398be75929b0a38005fa2ef1d2c678b4
+RMD160 (pytest-localserver-0.3.7.tar.gz) = 8da2903d5bae3205866cec85f8889654ad3edaf3
+SHA512 (pytest-localserver-0.3.7.tar.gz) = 48d7e6a27965dafa1d5e5af1efb6118cc1c1c28ac4a46ae2d61b6b804292a126f481295bf13976f66f505789238f3365ff16e6f1207c8bc7fb4b258759fd4d99
+Size (pytest-localserver-0.3.7.tar.gz) = 19772 bytes



Home | Main Index | Thread Index | Old Index