Skip to content

Commit

Permalink
devel/py-pytest-mock: Update 1.10.4 → 3.10.0
Browse files Browse the repository at this point in the history
PR:		269361
Approved by:	olgeni@ (maintainer's timeout; 6+ months on bug#264762)
  • Loading branch information
yurivict committed Feb 6, 2023
1 parent ab6a1e6 commit 4802bb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
14 changes: 5 additions & 9 deletions 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/
Expand All @@ -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>
8 changes: 3 additions & 5 deletions 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

0 comments on commit 4802bb1

Please sign in to comment.