diff --git a/devel/Makefile b/devel/Makefile index 2252b9b5d067..e6fc105f51d4 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4004,6 +4004,7 @@ SUBDIR += py-posix_ipc SUBDIR += py-pp SUBDIR += py-pqueue + SUBDIR += py-pretend SUBDIR += py-prettytable SUBDIR += py-prioritized_methods SUBDIR += py-prompt_toolkit diff --git a/devel/py-pretend/Makefile b/devel/py-pretend/Makefile new file mode 100644 index 000000000000..edb5df3e6b4f --- /dev/null +++ b/devel/py-pretend/Makefile @@ -0,0 +1,24 @@ +# Created by: Kubilay Kocak +# $FreeBSD$ + +PORTNAME= pretend +PORTVERSION= 1.0.8 +DISTVERSIONPREFIX= v +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= Library for stubbing in Python + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.rst + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest + +USES= python +USE_PYTHON= autoplist distutils + +USE_GITHUB= yes +GH_ACCOUNT= alex + +.include diff --git a/devel/py-pretend/distinfo b/devel/py-pretend/distinfo new file mode 100644 index 000000000000..2ad1ecb9d334 --- /dev/null +++ b/devel/py-pretend/distinfo @@ -0,0 +1,2 @@ +SHA256 (alex-pretend-v1.0.8_GH0.tar.gz) = ba52bf8e6b3cda7319a70a3257476cedca7ba10c0cd142aff4935227f4f74142 +SIZE (alex-pretend-v1.0.8_GH0.tar.gz) = 5509 diff --git a/devel/py-pretend/pkg-descr b/devel/py-pretend/pkg-descr new file mode 100644 index 000000000000..e17cf5f430be --- /dev/null +++ b/devel/py-pretend/pkg-descr @@ -0,0 +1,9 @@ +Pretend is a library to make stubbing with Python easier. + +What is stubbing? + +Stubbing is a technique for writing tests. You may hear the term mixed +up with mocks, fakes, or doubles. Basically a stub is an object that +returns pre-canned responses, rather than doing any computation. + +WWW: https://github.com/alex/pretend