Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2026 01:06:26 +0000
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5b6315ddef29 - main - devel/py-pytest-mock: Update to 3.15.1
Message-ID:  <6a052012.23cd8.7b54dc73@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by olgeni:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b6315ddef29e1f07ae9e0b8d91c4af1c2c3de2b

commit 5b6315ddef29e1f07ae9e0b8d91c4af1c2c3de2b
Author:     Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2026-05-14 00:50:29 +0000
Commit:     Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2026-05-14 01:01:53 +0000

    devel/py-pytest-mock: Update to 3.15.1
    
    Tweaks on top of the PR patch:
    
    - Use DISTVERSION (referenced by ${DISTVERSION} in DISTNAME) instead
      of PORTVERSION.
    - Add py-wheel to BUILD_DEPENDS (required by USE_PYTHON=pep517 with the
      setuptools build backend).
    - Bump pytest dep to >=6.2.5 to match upstream pyproject.toml.
    
    PR:             273337
    Submitted by:   takefu
---
 devel/py-pytest-mock/Makefile  | 20 +++++++++++---------
 devel/py-pytest-mock/distinfo  |  6 +++---
 devel/py-pytest-mock/pkg-descr |  3 ++-
 3 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/devel/py-pytest-mock/Makefile b/devel/py-pytest-mock/Makefile
index d58ae2d86f5a..6184befb2391 100644
--- a/devel/py-pytest-mock/Makefile
+++ b/devel/py-pytest-mock/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	pytest-mock
-DISTVERSION=	3.10.0
-PORTREVISION=	1
+DISTVERSION=	3.15.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
 
 MAINTAINER=	olgeni@FreeBSD.org
 COMMENT=	Thin wrapper around the mock package for easier use with py.test
@@ -12,14 +12,16 @@ WWW=		https://github.com/pytest-dev/pytest-mock/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=5.0:devel/py-pytest@${PY_FLAVOR}
-
-USES=		python
-USE_PYTHON=	autoplist concurrent distutils pytest # 6 tests fail, see https://github.com/pytest-dev/pytest-mock/issues/340
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=6.2.5:devel/py-pytest@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>0:devel/py-pytest-asyncio@${PY_FLAVOR}
 
+USES=		pytest python:3.9+
+USE_PYTHON=	autoplist concurrent pep517
+PYTEST_ARGS=	--assert=plain
 NO_ARCH=	yes
 
-TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-
 .include <bsd.port.mk>
diff --git a/devel/py-pytest-mock/distinfo b/devel/py-pytest-mock/distinfo
index 4d153a9441d9..b9db6ed427a6 100644
--- a/devel/py-pytest-mock/distinfo
+++ b/devel/py-pytest-mock/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1675642720
-SHA256 (pytest-mock-3.10.0.tar.gz) = fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f
-SIZE (pytest-mock-3.10.0.tar.gz) = 28384
+TIMESTAMP = 1778639819
+SHA256 (pytest_mock-3.15.1.tar.gz) = 1849a238f6f396da19762269de72cb1814ab44416fa73a8686deac10b0d87a0f
+SIZE (pytest_mock-3.15.1.tar.gz) = 34036
diff --git a/devel/py-pytest-mock/pkg-descr b/devel/py-pytest-mock/pkg-descr
index 1500a21d307d..19042f606ce7 100644
--- a/devel/py-pytest-mock/pkg-descr
+++ b/devel/py-pytest-mock/pkg-descr
@@ -1 +1,2 @@
-Thin wrapper around the mock package for easier use with py.test.
+This plugin provides a mocker fixture which is a thin-wrapper around the
+patching API provided by the mock package.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a052012.23cd8.7b54dc73>