svn commit: r520750 - in head/devel: . py-factory-boy

Ben Woods woodsb02 at FreeBSD.org
Mon Dec 23 23:04:54 UTC 2019


Author: woodsb02
Date: Mon Dec 23 23:04:53 2019
New Revision: 520750
URL: https://svnweb.freebsd.org/changeset/ports/520750

Log:
  Add new port devel/py-factory-boy
  
  As a fixtures replacement tool, it aims to replace static, hard to maintain
  fixtures with easy-to-use factories for complex object. Instead of building an
  exhaustive test setup with every possible combination of corner cases,
  factory_boy allows you to use objects customized for the current test, while
  only declaring the test-specific fields
  
  WWW: https://github.com/FactoryBoy/factory_boy
  
  PR:		242805
  Submitted by:	Goran Mekić <meka at tilda.center>

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Dec 23 23:00:55 2019	(r520749)
+++ head/devel/Makefile	Mon Dec 23 23:04:53 2019	(r520750)
@@ -4411,6 +4411,7 @@
     SUBDIR += py-fabric
     SUBDIR += py-fabric1
     SUBDIR += py-fabric3
+    SUBDIR += py-factory-boy
     SUBDIR += py-fam
     SUBDIR += py-fastcache
     SUBDIR += py-fasteners

Added: head/devel/py-factory-boy/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-factory-boy/Makefile	Mon Dec 23 23:04:53 2019	(r520750)
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+PORTNAME=	factory_boy
+PORTVERSION=	2.12.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	meka at tilda.center
+COMMENT=	Create comlex objects for testing purposes
+
+LICENSE=	BSD
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Faker>=0:devel/py-Faker@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django30>=0:www/py-django30@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlalchemy13>=0:databases/py-sqlalchemy13@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mongoengine>=0:databases/py-mongoengine@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tox>=0:devel/py-tox@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}text-unidecode>=0:textproc/py-text-unidecode@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+TEST_ENV=	PYTHONPATH=${WRKSRC}/src
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m unittest discover \
+		-k test_alchemy \
+		-k test_base \
+		-k test_declarations \
+		-k test_django \
+		-k test_docs_internal \
+		-k test_faker \
+		-k test_fuzzy \
+		-k test_helpers \
+		-k test_using \
+		-k test_utils
+
+.include <bsd.port.mk>

Added: head/devel/py-factory-boy/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-factory-boy/distinfo	Mon Dec 23 23:04:53 2019	(r520750)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1577021657
+SHA256 (factory_boy-2.12.0.tar.gz) = faf48d608a1735f0d0a3c9cbf536d64f9132b547dae7ba452c4d99a79e84a370
+SIZE (factory_boy-2.12.0.tar.gz) = 153557

Added: head/devel/py-factory-boy/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-factory-boy/pkg-descr	Mon Dec 23 23:04:53 2019	(r520750)
@@ -0,0 +1,7 @@
+As a fixtures replacement tool, it aims to replace static, hard to maintain
+fixtures with easy-to-use factories for complex object. Instead of building an
+exhaustive test setup with every possible combination of corner cases,
+factory_boy allows you to use objects customized for the current test, while
+only declaring the test-specific fields
+
+WWW: https://github.com/FactoryBoy/factory_boy


More information about the svn-ports-head mailing list