[Midnightbsd-cvs] mports [24239] trunk/devel: add py-mock

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Sep 8 12:56:19 EDT 2018


Revision: 24239
          http://svnweb.midnightbsd.org/mports/?rev=24239
Author:   laffer1
Date:     2018-09-08 12:56:18 -0400 (Sat, 08 Sep 2018)
Log Message:
-----------
add py-mock

Modified Paths:
--------------
    trunk/devel/Makefile

Added Paths:
-----------
    trunk/devel/py-mock/
    trunk/devel/py-mock/Makefile
    trunk/devel/py-mock/distinfo
    trunk/devel/py-mock/pkg-descr

Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile	2018-09-08 16:55:05 UTC (rev 24238)
+++ trunk/devel/Makefile	2018-09-08 16:56:18 UTC (rev 24239)
@@ -511,6 +511,7 @@
 SUBDIR += py-isort
 SUBDIR += py-lxml
 SUBDIR += py-mccabe
+SUBDIR += py-mock
 SUBDIR += py-notify
 SUBDIR += py-orbit
 SUBDIR += py-parsedatetime

Added: trunk/devel/py-mock/Makefile
===================================================================
--- trunk/devel/py-mock/Makefile	                        (rev 0)
+++ trunk/devel/py-mock/Makefile	2018-09-08 16:56:18 UTC (rev 24239)
@@ -0,0 +1,33 @@
+# $MidnightBSD$
+
+PORTNAME=	mock
+PORTVERSION=	2.0.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Mock unit tests for Python
+
+LICENSE=	bsd2
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pbr>=1.3:devel/py-pbr \
+		${PYTHON_PKGNAMEPREFIX}six>=1.9:devel/py-six
+RUN_DEPENDS:=	${BUILD_DEPENDS}
+TESTS_DEPENDS=	${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox
+
+NO_ARCH=	yes
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3300
+RUN_DEPENDS+=  ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:devel/py-funcsigs
+.endif
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.post.mk>


Property changes on: trunk/devel/py-mock/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-mock/distinfo
===================================================================
--- trunk/devel/py-mock/distinfo	                        (rev 0)
+++ trunk/devel/py-mock/distinfo	2018-09-08 16:56:18 UTC (rev 24239)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1490606425
+SHA256 (mock-2.0.0.tar.gz) = b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba
+SIZE (mock-2.0.0.tar.gz) = 73684


Property changes on: trunk/devel/py-mock/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-mock/pkg-descr
===================================================================
--- trunk/devel/py-mock/pkg-descr	                        (rev 0)
+++ trunk/devel/py-mock/pkg-descr	2018-09-08 16:56:18 UTC (rev 24239)
@@ -0,0 +1,9 @@
+A Python Mocking and Patching Library for Testing
+
+mock is a Python module that provides a core Mock class. It is intended to
+reduce the need for creating a host of trivial stubs throughout your test suite.
+After performing an action, you can make assertions about which methods /
+attributes were used and arguments they were called with. You can also specify
+return values and set needed attributes in the normal way.
+
+WWW: https://pypi.org/project/mock/


Property changes on: trunk/devel/py-mock/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list