Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2019 12:22:27 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r500959 - head/devel/py-pytest-mock
Message-ID:  <201905071222.x47CMRfe044087@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue May  7 12:22:26 2019
New Revision: 500959
URL: https://svnweb.freebsd.org/changeset/ports/500959

Log:
  devel/py-pytest-mock: Update to 1.10.4
  
    - Conditionalise mock dependency (Python 2.x only)
    - Add upstream patches to fix test failures with mock 3.x
    - Verbosify test target and print skipped messages/reasons
    - Pet portlint: NO_ARCH in USE/USES section
  
  Changelog:
  
    https://github.com/pytest-dev/pytest-mock/blob/1.10.4/CHANGELOG.rst
  
  Reviewed by:		olgeni
  Approved by:		olgeni (maintainer)
  Differential Revision:	D20167

Modified:
  head/devel/py-pytest-mock/Makefile
  head/devel/py-pytest-mock/distinfo

Modified: head/devel/py-pytest-mock/Makefile
==============================================================================
--- head/devel/py-pytest-mock/Makefile	Tue May  7 12:03:40 2019	(r500958)
+++ head/devel/py-pytest-mock/Makefile	Tue May  7 12:22:26 2019	(r500959)
@@ -1,11 +1,14 @@
 # $FreeBSD$
 
 PORTNAME=	pytest-mock
-PORTVERSION=	1.7.1
+PORTVERSION=	1.10.4
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
+PATCH_SITES=	https://github.com/pytest-dev/${PORTNAME}/commit/
+PATCHFILES=	b3badafebedea3605c90eb22a68adff2885a8bb0.patch:-p1
+
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Thin wrapper around the mock package for easier use with py.test
 
@@ -13,13 +16,20 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR}
 
-NO_ARCH=	yes
-USES+=		python
+USES=		python
 USE_PYTHON=	autoplist concurrent distutils
 
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_VER} < 3.0
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+.endif
+
 do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs test_pytest_mock.py
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/devel/py-pytest-mock/distinfo
==============================================================================
--- head/devel/py-pytest-mock/distinfo	Tue May  7 12:03:40 2019	(r500958)
+++ head/devel/py-pytest-mock/distinfo	Tue May  7 12:22:26 2019	(r500959)
@@ -1,3 +1,5 @@
-TIMESTAMP = 1520337354
-SHA256 (pytest-mock-1.7.1.tar.gz) = b879dff61e31fcd4727c227c182f15f222a155293cc64ed5a02d55e0020cf949
-SIZE (pytest-mock-1.7.1.tar.gz) = 20176
+TIMESTAMP = 1557059422
+SHA256 (pytest-mock-1.10.4.tar.gz) = 5bf5771b1db93beac965a7347dc81c675ec4090cb841e49d9d34637a25c30568
+SIZE (pytest-mock-1.10.4.tar.gz) = 18790
+SHA256 (b3badafebedea3605c90eb22a68adff2885a8bb0.patch) = 8c6d1028175b1a524cbcb1df3aeaa725fed9a1aa3ad0499a242ac65b65e855e0
+SIZE (b3badafebedea3605c90eb22a68adff2885a8bb0.patch) = 1667



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905071222.x47CMRfe044087>