pkgsrc/devel/py-test/Makefile
adam 7cfd64e325 Pytest 3.2.1
Bug Fixes:
* Fixed small terminal glitch when collecting a single test item.
* Correctly consider / as the file separator to automatically mark plugin files for rewrite on Windows.
* Properly escape test names when setting PYTEST_CURRENT_TEST environment variable.
* Fix error on Windows and Python 3.6+ when sys.stdout has been replaced with a stream-like object which does not implement the full io module buffer protocol. In particular this affects pytest-xdist users on the aforementioned platform.

Improved Documentation
* Explicitly document which pytest features work with unittest.
2017-08-13 09:48:54 +00:00

32 lines
1,007 B
Makefile

# $NetBSD: Makefile,v 1.35 2017/08/13 09:48:54 adam Exp $
DISTNAME= pytest-3.2.1
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"