badf0a145f
pytest 4.6.10: Features - New ``Config.invocation_args`` attribute containing the unchanged arguments passed to ``pytest.main()``. Remark: while this is technically a new feature and according to our `policy <https://docs.pytest.org/en/latest/py27-py34-deprecation.html#what-goes-into-4-6-x-releases>`_ it should not have been backported, we have opened an exception in this particular case because it fixes a serious interaction with ``pytest-xdist``, so it can also be considered a bugfix. Trivial/Internal Changes - Remove usage of ``parser`` module, deprecated in Python 3.9. pytest 4.6.9: Bug Fixes - Fix assertion rewriting for egg-based distributions and ``editable`` installs (``pip install --editable``). pytest 4.6.8: Features - JUnit XML now includes a timestamp and hostname in the testsuite tag. Bug Fixes - junitxml: Logs for failed test are now passed to junit report in case the test fails during call phase. Trivial/Internal Changes - Pin ``colorama`` to ``0.4.1`` only for Python 3.4 so newer Python versions can still receive colorama updates. pytest 4.6.7: Bug Fixes - The XML file produced by ``--junitxml`` now correctly contain a ``<testsuites>`` root element. - Properly ignore ``FileNotFoundError`` (``OSError.errno == NOENT`` in Python 2) exceptions when trying to remove old temporary directories, for instance when multiple processes try to remove the same directory (common with ``pytest-xdist`` for example).
52 lines
1.9 KiB
Makefile
52 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.1 2020/05/16 07:51:58 adam Exp $
|
|
|
|
DISTNAME= pytest-4.6.10
|
|
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}-packaging-[0-9]*:../../devel/py-packaging
|
|
DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.12:../../devel/py-pluggy
|
|
DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
|
|
DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
|
|
DEPENDS+= ${PYPKGPREFIX}-wcwidth-[0-9]*:../../devel/py-wcwidth
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete
|
|
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
|
|
DEPENDS+= ${PYPKGPREFIX}-pathlib2>=2.2.0:../../devel/py-pathlib2
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
.endif
|
|
.if ${_PYTHON_VERSION} < 38
|
|
DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>=0.12:../../devel/py-importlib-metadata
|
|
.endif
|
|
|
|
PYTHON_VERSIONED_DEPENDENCIES+= more-itertools
|
|
|
|
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/versioned_dependencies.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|