py-line_profiler: updated to 4.1.2 4.1.2 ~~~~ * ENH: Add support for Python 3.12 * ENH: Add osx universal2 and arm64 wheels * ENH: Fix issue with integer overflow on 32 bit systems 4.1.1 ~~~~ * FIX: ``get_stats`` is no longer slowed down when profiling many code sections 4.1.0 ~~~~ * FIX: skipzeros now checks for zero hits instead of zero time * FIX: Fixed errors in Python 3.11 with duplicate functions. * FIX: ``show_text`` now increases column sizes or switches to scientific notation to maintain alignment * ENH: ``show_text`` now has new options: sort and summarize * ENH: Added new CLI arguments ``-srm`` to ``line_profiler`` to control sorting, rich printing, and summary printing. * ENH: New global ``profile`` function that can be enabled by ``--profile`` or ``LINE_PROFILE=1``. * ENH: New auto-profile feature in ``kernprof`` that will profile all functions in specified modules. * ENH: Kernprof now outputs instructions on how to view results. * ENH: Added readthedocs integration: https://kernprof.readthedocs.io/en/latest/index.html 4.0.3 ~~~~ * FIX: Stop requiring bleeding-edge Cython unless necesasry (for Python 3.12). 4.0.2 ~~~~~ * FIX: AttributeError on certain methods. 4.0.1 ~~~~~ * FIX: Profiling classmethods works again. 4.0.0 ~~~~~ * ENH: Python 3.11 is now supported. * ENH: Profiling overhead is now drastically smaller, thanks to reimplementing almost all of the tracing callback in C++. You can expect to see reductions of between 0.3 and 1 microseconds per line hit, resulting in a speedup of up to 4x for codebases with many lines of Python that only do a little work per line. * ENH: Added the ``-i <# of seconds>`` option to the ``kernprof`` script. This uses the threading module to output profiling data to the output file every n seconds, and is useful for long-running tasks that shouldn't be stopped in the middle of processing. * CHANGE: Cython's native cythonize function is now used to compile the project, instead of scikit-build's convoluted process. * CHANGE: Due to optimizations done while reimplementing the callback in C++, the profiler's code_map and last_time attributes now are indexed by a hash of the code block's bytecode and its line number. Any code that directly reads (and processes) or edits the code_map and/or last_time attributes will likely break.diff -r1.14 -r1.15 pkgsrc/devel/py-line_profiler/Makefile
(adam)
@@ -1,26 +1,28 @@ | @@ -1,26 +1,28 @@ | |||
1 | # $NetBSD: Makefile,v 1.14 2023/08/01 23:20:41 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.15 2024/02/12 14:42:21 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= line_profiler-3.5.1 | 3 | DISTNAME= line_profiler-4.1.2 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= devel python | 5 | CATEGORIES= devel python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/} | |
7 | 7 | |||
8 | MAINTAINER= minskim@NetBSD.org | 8 | MAINTAINER= minskim@NetBSD.org | |
9 | HOMEPAGE= https://github.com/rkern/line_profiler | 9 | HOMEPAGE= https://github.com/rkern/line_profiler | |
10 | COMMENT= Python line-by-line profiler | 10 | COMMENT= Python line-by-line profiler | |
11 | LICENSE= modified-bsd | 11 | LICENSE= modified-bsd | |
12 | 12 | |||
13 | PYSETUPARGS= --universal # avoid scikit-build | 13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools | |
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel | |||
14 | 15 | |||
15 | USE_LANGUAGES= # none | 16 | USE_LANGUAGES= # none | |
16 | 17 | # avoid scikit-build | ||
17 | USE_PKG_RESOURCES= yes | 18 | MAKE_ENV+= LINE_PROFILER_BUILD_METHOD=setuptools | |
19 | INSTALL_ENV+= LINE_PROFILER_BUILD_METHOD=setuptools | |||
18 | 20 | |||
19 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 21 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
20 | 22 | |||
21 | post-install: | 23 | post-install: | |
22 | cd ${DESTDIR}${PREFIX}/bin && \ | 24 | cd ${DESTDIR}${PREFIX}/bin && \ | |
23 | ${MV} kernprof kernprof-${PYVERSSUFFIX} || ${TRUE} | 25 | ${MV} kernprof kernprof-${PYVERSSUFFIX} || ${TRUE} | |
24 | 26 | |||
25 | .include "../../lang/python/egg.mk" | 27 | .include "../../lang/python/wheel.mk" | |
26 | .include "../../mk/bsd.pkg.mk" | 28 | .include "../../mk/bsd.pkg.mk" |
@@ -1,23 +1,53 @@ | @@ -1,23 +1,53 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.5 2022/08/03 13:44:30 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.6 2024/02/12 14:42:21 adam Exp $ | |
2 | bin/kernprof-${PYVERSSUFFIX} | 2 | bin/kernprof-${PYVERSSUFFIX} | |
3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 3 | ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt | |
4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 4 | ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE_Python.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 5 | ${PYSITELIB}/${WHEEL_INFODIR}/METADATA | |
6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | 6 | ${PYSITELIB}/${WHEEL_INFODIR}/RECORD | |
7 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 7 | ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL | |
8 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 8 | ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt | |
9 | ${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt | |||
9 | ${PYSITELIB}/kernprof.py | 10 | ${PYSITELIB}/kernprof.py | |
10 | ${PYSITELIB}/kernprof.pyc | 11 | ${PYSITELIB}/kernprof.pyc | |
11 | ${PYSITELIB}/kernprof.pyo | 12 | ${PYSITELIB}/kernprof.pyo | |
12 | ${PYSITELIB}/line_profiler/__init__.py | 13 | ${PYSITELIB}/line_profiler/__init__.py | |
13 | ${PYSITELIB}/line_profiler/__init__.pyc | 14 | ${PYSITELIB}/line_profiler/__init__.pyc | |
14 | ${PYSITELIB}/line_profiler/__init__.pyo | 15 | ${PYSITELIB}/line_profiler/__init__.pyo | |
15 | ${PYSITELIB}/line_profiler/__main__.py | 16 | ${PYSITELIB}/line_profiler/__main__.py | |
16 | ${PYSITELIB}/line_profiler/__main__.pyc | 17 | ${PYSITELIB}/line_profiler/__main__.pyc | |
18 | ${PYSITELIB}/line_profiler/__main__.pyi | |||
17 | ${PYSITELIB}/line_profiler/__main__.pyo | 19 | ${PYSITELIB}/line_profiler/__main__.pyo | |
20 | ${PYSITELIB}/line_profiler/autoprofile/__init__.py | |||
21 | ${PYSITELIB}/line_profiler/autoprofile/__init__.pyc | |||
22 | ${PYSITELIB}/line_profiler/autoprofile/__init__.pyo | |||
23 | ${PYSITELIB}/line_profiler/autoprofile/ast_profle_transformer.py | |||
24 | ${PYSITELIB}/line_profiler/autoprofile/ast_profle_transformer.pyc | |||
25 | ${PYSITELIB}/line_profiler/autoprofile/ast_profle_transformer.pyo | |||
26 | ${PYSITELIB}/line_profiler/autoprofile/ast_tree_profiler.py | |||
27 | ${PYSITELIB}/line_profiler/autoprofile/ast_tree_profiler.pyc | |||
28 | ${PYSITELIB}/line_profiler/autoprofile/ast_tree_profiler.pyo | |||
29 | ${PYSITELIB}/line_profiler/autoprofile/autoprofile.py | |||
30 | ${PYSITELIB}/line_profiler/autoprofile/autoprofile.pyc | |||
31 | ${PYSITELIB}/line_profiler/autoprofile/autoprofile.pyo | |||
32 | ${PYSITELIB}/line_profiler/autoprofile/line_profiler_utils.py | |||
33 | ${PYSITELIB}/line_profiler/autoprofile/line_profiler_utils.pyc | |||
34 | ${PYSITELIB}/line_profiler/autoprofile/line_profiler_utils.pyo | |||
35 | ${PYSITELIB}/line_profiler/autoprofile/profmod_extractor.py | |||
36 | ${PYSITELIB}/line_profiler/autoprofile/profmod_extractor.pyc | |||
37 | ${PYSITELIB}/line_profiler/autoprofile/profmod_extractor.pyo | |||
38 | ${PYSITELIB}/line_profiler/autoprofile/util_static.py | |||
39 | ${PYSITELIB}/line_profiler/autoprofile/util_static.pyc | |||
40 | ${PYSITELIB}/line_profiler/autoprofile/util_static.pyo | |||
41 | ${PYSITELIB}/line_profiler/explicit_profiler.py | |||
42 | ${PYSITELIB}/line_profiler/explicit_profiler.pyc | |||
43 | ${PYSITELIB}/line_profiler/explicit_profiler.pyi | |||
44 | ${PYSITELIB}/line_profiler/explicit_profiler.pyo | |||
18 | ${PYSITELIB}/line_profiler/ipython_extension.py | 45 | ${PYSITELIB}/line_profiler/ipython_extension.py | |
19 | ${PYSITELIB}/line_profiler/ipython_extension.pyc | 46 | ${PYSITELIB}/line_profiler/ipython_extension.pyc | |
47 | ${PYSITELIB}/line_profiler/ipython_extension.pyi | |||
20 | ${PYSITELIB}/line_profiler/ipython_extension.pyo | 48 | ${PYSITELIB}/line_profiler/ipython_extension.pyo | |
21 | ${PYSITELIB}/line_profiler/line_profiler.py | 49 | ${PYSITELIB}/line_profiler/line_profiler.py | |
22 | ${PYSITELIB}/line_profiler/line_profiler.pyc | 50 | ${PYSITELIB}/line_profiler/line_profiler.pyc | |
51 | ${PYSITELIB}/line_profiler/line_profiler.pyi | |||
23 | ${PYSITELIB}/line_profiler/line_profiler.pyo | 52 | ${PYSITELIB}/line_profiler/line_profiler.pyo | |
53 | ${PYSITELIB}/line_profiler/py.typed |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.7 2022/08/03 13:44:30 adam Exp $ | 1 | $NetBSD: distinfo,v 1.8 2024/02/12 14:42:21 adam Exp $ | |
2 | 2 | |||
3 | BLAKE2s (line_profiler-3.5.1.tar.gz) = ca89bba1eb075d0caf8c4cec84c9845687609e1c44d82e5e103aa3ad919bd334 | 3 | BLAKE2s (line_profiler-4.1.2.tar.gz) = 19246782af50977b0b03c8dc3be533dfdc1a8328249353c8d2a9825ee6edeff7 | |
4 | SHA512 (line_profiler-3.5.1.tar.gz) = 91b397f0155be56e9c36e3a7d299e4b752fe549b778a9f3afc8c4bbf47fcec0ae6a5f6d383b615f1d357431f6d365f8ce42baec1fc31a4ffe3d73c88e13494bd | 4 | SHA512 (line_profiler-4.1.2.tar.gz) = e5fb3c84d08b4e46a46618efb041eea4d46b2e0a5a04554c9b45fde5084e02ea5e99c93b81886bdc082decfdabf7bbc28efb3df1076899363005df819ef16b8a | |
5 | Size (line_profiler-3.5.1.tar.gz) = 155402 bytes | 5 | Size (line_profiler-4.1.2.tar.gz) = 78149 bytes |