git: c8b14a00cf94 - main - devel/py-line-profiler: update 4.1.3 → 5.0.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Apr 2026 03:50:38 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c8b14a00cf94969a8322bd03dfe6378dae912ec4
commit c8b14a00cf94969a8322bd03dfe6378dae912ec4
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-04-12 03:43:55 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-04-12 03:50:14 +0000
devel/py-line-profiler: update 4.1.3 → 5.0.2
---
devel/py-line-profiler/Makefile | 23 +++++++++++++++++++----
devel/py-line-profiler/distinfo | 6 +++---
2 files changed, 22 insertions(+), 7 deletions(-)
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,6 +1,5 @@
PORTNAME= line-profiler
-DISTVERSION= 4.1.3
-PORTREVISION= 1
+DISTVERSION= 5.0.2
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -22,11 +21,27 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=5.3:devel/py-coverage@${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 <bsd.port.mk>
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