py-setuptools. Also change the lang/python module to use the new devel/py2-setuptools for python2 ports ok sthen@
35 lines
725 B
Makefile
35 lines
725 B
Makefile
# $OpenBSD: Makefile,v 1.14 2021/05/21 19:50:30 kmos Exp $
|
|
|
|
COMMENT = thin-wrapper around mock package for easier use with pytest
|
|
|
|
MODPY_EGG_VERSION = 1.6.0
|
|
DISTNAME = pytest-mock-${MODPY_EGG_VERSION}
|
|
PKGNAME = ${DISTNAME:S/py/py-/}
|
|
CATEGORIES = devel
|
|
REVISION = 3
|
|
|
|
HOMEPAGE = https://github.com/pytest-dev/pytest-mock/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
BUILD_DEPENDS = devel/py-setuptools_scm${MODPY_FLAVOR}
|
|
RUN_DEPENDS = devel/py-test${MODPY_FLAVOR}
|
|
TEST_DEPENDS = ${BASE_PKGPATH}
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
# One test fail if py3-mock installed
|
|
.if !${FLAVOR:Mpython3}
|
|
RUN_DEPENDS += devel/py-mock
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|