0b241c00e6
Bug Fixes * Required options added via pytest_addoption will no longer prevent using –help without passing them. * Respect python_files in assertion rewriting. * Fix recursion error detection when frames in the traceback contain objects that can’t be compared (like numpy arrays). * UnicodeWarning is issued from the internal pytest warnings plugin only when the message contains non-ascii unicode (Python 2 only). * Added a workaround for Python 3.6 WindowsConsoleIO breaking due to Pytests’s FDCapture. Other code using console handles might still be affected by the very same issue and might require further workarounds/fixes, i.e. colorama.
32 lines
1,017 B
Makefile
32 lines
1,017 B
Makefile
# $NetBSD: Makefile,v 1.32 2017/06/10 19:22:12 adam Exp $
|
|
|
|
DISTNAME= pytest-3.1.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://pypi.python.org/pypi/pytest
|
|
COMMENT= Python testing tool
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-py>=1.4.29:../../devel/py-py
|
|
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
|
|
# TEST_DEPENDS
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
|
|
|
|
USE_LANGUAGES= # none
|
|
USE_TOOLS+= bash:build
|
|
|
|
REPLACE_PYTHON+= _pytest/standalonetemplate.py
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} py.test py.test-${PYVERSSUFFIX} && \
|
|
${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|