From owner-svn-ports-head@freebsd.org Thu Nov 14 17:11:59 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 AF8971AE3D3; Thu, 14 Nov 2019 17:11:59 +0000 (UTC) (envelope-from ngie@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 47DShH2t9Kz49Bp; Thu, 14 Nov 2019 17:11:59 +0000 (UTC) (envelope-from ngie@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 472383A43; Thu, 14 Nov 2019 17:11:59 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xAEHBxXj077716; Thu, 14 Nov 2019 17:11:59 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xAEHBwBO077712; Thu, 14 Nov 2019 17:11:58 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201911141711.xAEHBwBO077712@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Enji Cooper Date: Thu, 14 Nov 2019 17:11:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r517602 - head/devel/py-mock X-SVN-Group: ports-head X-SVN-Commit-Author: ngie X-SVN-Commit-Paths: head/devel/py-mock X-SVN-Commit-Revision: 517602 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: Thu, 14 Nov 2019 17:11:59 -0000 Author: ngie (src committer) Date: Thu Nov 14 17:11:58 2019 New Revision: 517602 URL: https://svnweb.freebsd.org/changeset/ports/517602 Log: Upgrade devel/py-mock from 2.0.0 to 3.0.5 and fix "make test" target Version 3.0.5 includes multiple bugfixes and such for the backport library that will aid in writing tests where the environment doesn't contain `unittest.mock`. In order to ensure that the code actually works, I needed to run the tests. This required working around https://github.com/testing-cabal/mock/issues/469 by pulling the sources from the GitHub project that correspond with the release tag, as the source tarball tagged for the release doesn't contain the tests (prior to this change it would run 0 tests with `make test`, because there weren't any). Remove an unnecessary build dependency while here: pbr is no longer needed to build the package. Add py-pytest to TEST_DEPENDS, as running the tests as currently done via distutils doesn't work due to how the tests are enumerated. Conversely, remove the devel/py-tox dependency: it was never installed before due to a typo in the variable name and it adds a lot of unnecessary dependencies that aren't required when testing the port with `make test`. This helps keep the footprint down, which helps others upgrade the devel/py-mock port by itself. Address portlint issues while here. The changelog for the project can be found here on [GitHub](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst). PR: 241780 Approved by: jessekempf@gmail.com (maintainer timeout), woodsdb (ports) Discussed with: bdrewery, Vladimir.Chukharev@gmail.com Differential Revision: https://reviews.freebsd.org/D21654 Modified: head/devel/py-mock/Makefile head/devel/py-mock/distinfo Modified: head/devel/py-mock/Makefile ============================================================================== --- head/devel/py-mock/Makefile Thu Nov 14 16:55:22 2019 (r517601) +++ head/devel/py-mock/Makefile Thu Nov 14 17:11:58 2019 (r517602) @@ -2,9 +2,8 @@ # $FreeBSD$ PORTNAME= mock -PORTVERSION= 2.0.0 +PORTVERSION= 3.0.5 CATEGORIES= devel python -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jessekempf@gmail.com @@ -13,22 +12,25 @@ COMMENT= Mock unit tests for Python LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.3:devel/py-pbr@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}six>=1.9:devel/py-six@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.9:devel/py-six@${PY_FLAVOR} RUN_DEPENDS:= ${BUILD_DEPENDS} -TESTS_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} -NO_ARCH= yes USES= python 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} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:devel/py-funcsigs@${PY_FLAVOR} .endif do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + @cd ${WRKSRC} && pytest .include Modified: head/devel/py-mock/distinfo ============================================================================== --- head/devel/py-mock/distinfo Thu Nov 14 16:55:22 2019 (r517601) +++ head/devel/py-mock/distinfo Thu Nov 14 17:11:58 2019 (r517602) @@ -1,3 +1,3 @@ -TIMESTAMP = 1490606425 -SHA256 (mock-2.0.0.tar.gz) = b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba -SIZE (mock-2.0.0.tar.gz) = 73684 +TIMESTAMP = 1572976175 +SHA256 (testing-cabal-mock-3.0.5_GH0.tar.gz) = ff286cec703de8770f735269575ecb7d1c937b8851eba8de94d800df084e627c +SIZE (testing-cabal-mock-3.0.5_GH0.tar.gz) = 67887