pkgsrc/devel/py-test/Makefile
adam 952ec7a949 py-test: updated to 4.4.1
pytest 4.4.1:
Bug Fixes
* Environment variables are properly restored when using pytester’s testdir fixture.
* Fix regression with --pdbcls, which stopped working with local modules in 4.0.0.
* Produce a warning when unknown keywords are passed to pytest.param(...).
* Invalidate import caches with monkeypatch.syspath_prepend, which is required with namespace packages being used.
2019-04-16 07:17:06 +00:00

48 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.77 2019/04/16 07:17:06 adam Exp $
DISTNAME= pytest-4.4.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}-atomicwrites>=1.0:../../devel/py-atomicwrites
DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools
DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.9:../../devel/py-pluggy
DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=3.56:../../devel/py-hypothesis
TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
TEST_DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-funcsigs>=1.0:../../devel/py-funcsigs
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
.endif
.if ${_PYTHON_VERSION} < 36
DEPENDS+= ${PYPKGPREFIX}-pathlib2>=2.2.0:../../devel/py-pathlib2
.endif
USE_LANGUAGES= # none
USE_TOOLS+= bash:build
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} py.test py.test-${PYVERSSUFFIX} && \
${MV} pytest pytest-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC}/testing && pytest-${PYVERSSUFFIX}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"