From owner-svn-ports-all@freebsd.org Tue Nov 19 00:37:29 2019 Return-Path: Delivered-To: svn-ports-all@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 B14091CDFA1; Tue, 19 Nov 2019 00:37:29 +0000 (UTC) (envelope-from koobs@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 47H6NT4FM0z3H6v; Tue, 19 Nov 2019 00:37:29 +0000 (UTC) (envelope-from koobs@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 6B99B2205; Tue, 19 Nov 2019 00:37:29 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xAJ0bTfm062888; Tue, 19 Nov 2019 00:37:29 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xAJ0bTvq062886; Tue, 19 Nov 2019 00:37:29 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201911190037.xAJ0bTvq062886@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Tue, 19 Nov 2019 00:37:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r517932 - head/devel/py-mock X-SVN-Group: ports-head X-SVN-Commit-Author: koobs X-SVN-Commit-Paths: head/devel/py-mock X-SVN-Commit-Revision: 517932 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2019 00:37:29 -0000 Author: koobs Date: Tue Nov 19 00:37:28 2019 New Revision: 517932 URL: https://svnweb.freebsd.org/changeset/ports/517932 Log: devel/py-mock: Take MAINTAINER'ship, level up ports compliance * Use upstream (setup.cfg) summary as COMMENT * Fix dependencies (six is not a build time dependency) * Use GitHub (tests not packaged in PyPI sdist) * Standardize pytest invocation (show skip reasons, one line per test) * Use upstream (setup.cfg) description as pkg-descr * Use upstream (setup.cfg) home-page as pkg-descr WWW URL PR: 241780 Approved by: portmgr (unmaintained port. blanket(s): ports compliance, bugfix(es)) MFH: No (3.x might be API incompatible for consumers, unclear) Modified: head/devel/py-mock/Makefile head/devel/py-mock/pkg-descr Modified: head/devel/py-mock/Makefile ============================================================================== --- head/devel/py-mock/Makefile Tue Nov 19 00:34:16 2019 (r517931) +++ head/devel/py-mock/Makefile Tue Nov 19 00:37:28 2019 (r517932) @@ -6,31 +6,30 @@ PORTVERSION= 3.0.5 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org -COMMENT= Mock unit tests for Python +MAINTAINER= koobs@FreeBSD.org +COMMENT= Rolling backport of unittest.mock for all Pythons LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.9:devel/py-six@${PY_FLAVOR} -RUN_DEPENDS:= ${BUILD_DEPENDS} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} USES= python +USE_GITHUB= yes # tests not packages in PyPI sdist USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes -USE_GITHUB= yes GH_ACCOUNT= testing-cabal .include -.if ${PYTHON_REL} < 3300 -RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:devel/py-funcsigs@${PY_FLAVOR} +.if ${PYTHON_VER} < 3.3 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=1:devel/py-funcsigs@${PY_FLAVOR} .endif do-test: - @cd ${WRKSRC} && pytest + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= .include Modified: head/devel/py-mock/pkg-descr ============================================================================== --- head/devel/py-mock/pkg-descr Tue Nov 19 00:34:16 2019 (r517931) +++ head/devel/py-mock/pkg-descr Tue Nov 19 00:37:28 2019 (r517932) @@ -1,9 +1,11 @@ -A Python Mocking and Patching Library for Testing +mock is a library for testing in Python. It allows you to replace parts of +your system under test with mock objects and make assertions about how +they have been used. -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. +mock is now part of the Python standard library, available as +unittest.mock in Python 3.3 onwards. -WWW: https://pypi.org/project/mock/ +This package contains a rolling backport of the standard library mock code +compatible with Python 2.7 and 3.4 and up. + +WWW: https://mock.readthedocs.org/en/latest/