ab27185b7a
Bug Fixes * Calling the deprecated request.getfuncargvalue() now shows the source of the call. * Allow tests declared as @staticmethod to use fixtures. * Fixed edge-case during collection: attributes which raised pytest.fail when accessed would abort the entire collection. * Fix ReprFuncArgs with mixed unicode and UTF-8 args. Improved Documentation * In examples on working with custom markers, add examples demonstrating the usage of pytest.mark.MARKER_NAME.with_args in comparison with pytest.mark.MARKER_NAME.__call__ * In one of the simple examples, use pytest_collection_modifyitems() to skip tests based on a command-line option, allowing its sharing while preventing a user error when acessing pytest.config before the argument parsing. Trivial/Internal Changes * Fixed minor error in ‘Good Practices/Manual Integration’ code snippet. * Fixed typo in goodpractices.rst. * Improve user guidance regarding --resultlog deprecation.
32 lines
1,007 B
Makefile
32 lines
1,007 B
Makefile
# $NetBSD: Makefile,v 1.36 2017/09/08 11:05:52 adam Exp $
|
|
|
|
DISTNAME= pytest-3.2.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://pytest.org/
|
|
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"
|