svn commit: r409576 - in head/devel: . py-pytest-localserver

Kubilay Kocak koobs at FreeBSD.org
Fri Feb 26 03:43:20 UTC 2016


Author: koobs
Date: Fri Feb 26 03:43:18 2016
New Revision: 409576
URL: https://svnweb.freebsd.org/changeset/ports/409576

Log:
  [NEW] devel/py-pytest-localserver: Py.test Plugin to test server connections locally
  
  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. Well, look no further!
  
  WWW: https://bitbucket.org/pytest-dev/pytest-localserver/

Added:
  head/devel/py-pytest-localserver/
  head/devel/py-pytest-localserver/Makefile   (contents, props changed)
  head/devel/py-pytest-localserver/distinfo   (contents, props changed)
  head/devel/py-pytest-localserver/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri Feb 26 02:40:35 2016	(r409575)
+++ head/devel/Makefile	Fri Feb 26 03:43:18 2016	(r409576)
@@ -4264,6 +4264,7 @@
     SUBDIR += py-pytest
     SUBDIR += py-pytest-cache
     SUBDIR += py-pytest-capturelog
+    SUBDIR += py-pytest-localserver
     SUBDIR += py-pytest-runner
     SUBDIR += py-pytest-timeout
     SUBDIR += py-pytest-xdist

Added: head/devel/py-pytest-localserver/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pytest-localserver/Makefile	Fri Feb 26 03:43:18 2016	(r409576)
@@ -0,0 +1,29 @@
+# Created by: Kubilay Kocak <koobs at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	pytest-localserver
+PORTVERSION=	0.3.5
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs at FreeBSD.org
+COMMENT=	Py.test Plugin to test server connections locally
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \
+		${PYTHON_PKGNAMEPREFIX}werkzeug>=0.10:${PORTSDIR}/www/py-werkzeug
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \
+		${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+
+.include <bsd.port.mk>

Added: head/devel/py-pytest-localserver/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pytest-localserver/distinfo	Fri Feb 26 03:43:18 2016	(r409576)
@@ -0,0 +1,2 @@
+SHA256 (pytest-localserver-0.3.5.tar.gz) = 97a8db7f530afdd009513ebdd86731b51e866fad82595bf92f456d93e5d57837
+SIZE (pytest-localserver-0.3.5.tar.gz) = 18856

Added: head/devel/py-pytest-localserver/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pytest-localserver/pkg-descr	Fri Feb 26 03:43:18 2016	(r409576)
@@ -0,0 +1,10 @@
+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. Well, look no further!
+
+WWW: https://bitbucket.org/pytest-dev/pytest-localserver/


More information about the svn-ports-all mailing list