From owner-svn-ports-head@freebsd.org Mon Dec 23 23:04:54 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 759661D2245; Mon, 23 Dec 2019 23:04:54 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47hZgV2VpVz48YG; Mon, 23 Dec 2019 23:04:54 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5142B1EF2A; Mon, 23 Dec 2019 23:04:54 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBNN4sEw022893; Mon, 23 Dec 2019 23:04:54 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBNN4rPE022884; Mon, 23 Dec 2019 23:04:53 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201912232304.xBNN4rPE022884@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Mon, 23 Dec 2019 23:04:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520750 - in head/devel: . py-factory-boy X-SVN-Group: ports-head X-SVN-Commit-Author: woodsb02 X-SVN-Commit-Paths: in head/devel: . py-factory-boy X-SVN-Commit-Revision: 520750 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2019 23:04:54 -0000 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ć 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@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 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