diff --git a/devel/py-line-profiler/Makefile b/devel/py-line-profiler/Makefile index 073a5b29312f..d0aa939ac246 100644 --- a/devel/py-line-profiler/Makefile +++ b/devel/py-line-profiler/Makefile @@ -1,32 +1,47 @@ PORTNAME= line-profiler -DISTVERSION= 4.1.3 -PORTREVISION= 1 +DISTVERSION= 5.0.2 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Line-by-line profiler for Python WWW= https://github.com/pyutils/line_profiler LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR} \ cmake:devel/cmake-core TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=5.3:devel/py-coverage@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ipython>=0.13:devel/ipython@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=3.0.0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ubelt>=1.3.4:devel/py-ubelt@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xdoctest>=1.1.3:devel/py-xdoctest@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist cython distutils pytest # 7 tests fail, see https://github.com/pyutils/line_profiler/issues/266 +USE_PYTHON= autoplist cython distutils pytest -TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +# The PyPI distfile does not ship the tests/cython_example sources. +PYTEST_BROKEN_TESTS= test_recover_cython_source test_profile_cython_source + +TEST_ENV= ${MAKE_ENV} \ + PATH=${STAGEDIR}${PREFIX}/bin:${PATH} \ + PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + TMPDIR=${WRKDIR} + +do-test: + @(cd ${WRKSRC}; ${SETENVI} ${WRK_ENV} ${MAKE_ENV} \ + ${PYTHON_CMD} ${PYDISTUTILS_SETUP} build_ext --inplace) + @(cd ${WRKSRC}; ${SETENVI} ${WRK_ENV} ${TEST_ENV} \ + ${PYTHON_CMD} -m pytest -k '${_PYTEST_FILTER_EXPRESSION}' \ + -rs -v -o addopts= ${TEST_ARGS:NDESTDIR=*}) post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/line_profiler/_line_profiler${PYTHON_TAG}.so +# tests as of 5.0.2: 229 passed, 26 skipped, 2 deselected in 17.25s + .include diff --git a/devel/py-line-profiler/distinfo b/devel/py-line-profiler/distinfo index 185c2a2374b0..2418da29a4e6 100644 --- a/devel/py-line-profiler/distinfo +++ b/devel/py-line-profiler/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1714366087 -SHA256 (line_profiler-4.1.3.tar.gz) = e5f1123c3672c3218ba063c23bd64a51159e44649fed6780b993c781fb5ed318 -SIZE (line_profiler-4.1.3.tar.gz) = 196850 +TIMESTAMP = 1775964743 +SHA256 (line_profiler-5.0.2.tar.gz) = 8d8a990c84c64bcde45af22af502d17bc0ae107be405ce41bba92af5c39c0000 +SIZE (line_profiler-5.0.2.tar.gz) = 407075