aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-02-06 00:37:09 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-02-06 00:37:09 +0000
commit4802bb19b9bda410442a33f1fb8f7a36a756f136 (patch)
tree882d2a08c6df9250e50ecb23eea5e1f53fa8e662
parentab6a1e619297de85a4736b78010de3730cd760c8 (diff)
downloadports-4802bb19b9bda410442a33f1fb8f7a36a756f136.tar.gz
ports-4802bb19b9bda410442a33f1fb8f7a36a756f136.zip
devel/py-pytest-mock: Update 1.10.4 → 3.10.0
PR: 269361 Approved by: olgeni@ (maintainer's timeout; 6+ months on bug#264762)
-rw-r--r--devel/py-pytest-mock/Makefile14
-rw-r--r--devel/py-pytest-mock/distinfo8
2 files changed, 8 insertions, 14 deletions
diff --git a/devel/py-pytest-mock/Makefile b/devel/py-pytest-mock/Makefile
index b3d7a3517b46..91d4b50041d2 100644
--- a/devel/py-pytest-mock/Makefile
+++ b/devel/py-pytest-mock/Makefile
@@ -1,12 +1,9 @@
PORTNAME= pytest-mock
-PORTVERSION= 1.10.4
+DISTVERSION= 3.10.0
CATEGORIES= devel python
MASTER_SITES= PYPI
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
WWW= https://github.com/pytest-dev/pytest-mock/
@@ -15,14 +12,13 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=5.0:devel/py-pytest@${PY_FLAVOR}
-USES= python:3.6+
-USE_PYTHON= autoplist concurrent distutils
+USES= python:3.7+
+USE_PYTHON= autoplist concurrent distutils pytest # 6 tests fail, see https://github.com/pytest-dev/pytest-mock/issues/340
NO_ARCH= yes
-do-test:
- @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs test_pytest_mock.py
+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 1edf1fe991bc..4d153a9441d9 100644
--- a/devel/py-pytest-mock/distinfo
+++ b/devel/py-pytest-mock/distinfo
@@ -1,5 +1,3 @@
-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
+TIMESTAMP = 1675642720
+SHA256 (pytest-mock-3.10.0.tar.gz) = fbbdb085ef7c252a326fd8cdcac0aa3b1333d8811f131bdcc701002e1be7ed4f
+SIZE (pytest-mock-3.10.0.tar.gz) = 28384