forked from pool/python-line_profiler
- update to 4.1.2:
* ENH: Add support for Python 3.12 #246 * ENH: Add osx universal2 and arm64 wheels * ENH: Fix issue with integer overflow on 32 bit systems * FIX: ``get_stats`` is no longer slowed down when profiling many code sections #236 * 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 - restrict to older Cython release * FIX: #100 Exception raise ZeroDivisionError being patient. for contributing it. this feature. Cournapeau for spotting this. * Update for compatibility with newer versions of Cython. * Update IPython compatibility for 0.11+. Thanks to Yaroslav OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-line_profiler?expand=0&rev=24
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:deb2eb9e9119d911debe23edcec8ea68a2cd70c9e3f753c96aaf4a86ca497e7e
|
||||
size 151336
|
||||
3
line_profiler-4.1.2.tar.gz
Normal file
3
line_profiler-4.1.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aa56578b0ff5a756fe180b3fda7bd67c27bbd478b3d0124612d8cf00e4a21df2
|
||||
size 78149
|
||||
@@ -1,7 +1,32 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 5 12:55:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 4.1.2:
|
||||
* ENH: Add support for Python 3.12 #246
|
||||
* ENH: Add osx universal2 and arm64 wheels
|
||||
* ENH: Fix issue with integer overflow on 32 bit systems
|
||||
* FIX: ``get_stats`` is no longer slowed down when profiling
|
||||
many code sections #236
|
||||
* 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 13 21:37:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- restrict to older Cython release
|
||||
- restrict to older Cython release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 26 19:55:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
@@ -47,7 +72,7 @@ Thu Sep 29 14:50:17 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
* FIX: #109 kernprof fails to write to stdout if stdout was replaced
|
||||
* FIX: Fixes max of an empty sequence error #118
|
||||
* Make IPython optional
|
||||
* FIX: #100 Exception raise ZeroDivisionError
|
||||
* FIX: #100 Exception raise ZeroDivisionError
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 7 09:54:01 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
@@ -133,23 +158,23 @@ Thu Oct 2 17:50:42 UTC 2014 - termim@gmail.com
|
||||
- Update to 1.0
|
||||
* `kernprof.py` is now installed as `kernprof`.
|
||||
* Python 3 support. Thanks to the long-suffering Mikhail Korobov for
|
||||
being patient.
|
||||
being patient.
|
||||
* Dropped 2.6 as it was too annoying.
|
||||
* The `stripzeros` and `add_module` options. Thanks to Erik Tollerud
|
||||
for contributing it.
|
||||
for contributing it.
|
||||
* Support for IPython cell blocks. Thanks to Michael Forbes for adding
|
||||
this feature.
|
||||
this feature.
|
||||
* Better warnings when building without Cython. Thanks to David
|
||||
Cournapeau for spotting this.
|
||||
Cournapeau for spotting this.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 10 15:05:50 UTC 2014 - toddrme2178@gmail.com
|
||||
|
||||
- Update to 1.0b3
|
||||
* Profile generators.
|
||||
* Update for compatibility with newer versions of Cython.
|
||||
* Update for compatibility with newer versions of Cython.
|
||||
Thanks to Ondrej Certik for spotting the bug.
|
||||
* Update IPython compatibility for 0.11+. Thanks to Yaroslav
|
||||
* Update IPython compatibility for 0.11+. Thanks to Yaroslav
|
||||
Halchenko and others for providing the updated imports.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
||||
@@ -17,18 +17,21 @@
|
||||
|
||||
|
||||
Name: python-line_profiler
|
||||
Version: 4.0.3
|
||||
Version: 4.1.2
|
||||
Release: 0
|
||||
Summary: Line-by-line profiler
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/pyutils/line_profiler
|
||||
Source: https://files.pythonhosted.org/packages/source/l/line_profiler/line_profiler-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Cython with %python-Cython < 3}
|
||||
# submitted upstream as https://github.com/pyutils/line_profiler/pull/252
|
||||
Patch1: use-sys-executable-python.patch
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module ipython}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module scikit-build}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module ubelt}
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
@@ -49,7 +52,7 @@ profile Python applications and scripts either with line_profiler or with the
|
||||
function-level profiling tools in the Python standard library.
|
||||
|
||||
%prep
|
||||
%setup -q -n line_profiler-%{version}
|
||||
%autosetup -p1 -n line_profiler-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
|
||||
11
use-sys-executable-python.patch
Normal file
11
use-sys-executable-python.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- line_profiler-4.1.2/tests/test_complex_case.py
|
||||
+++ line_profiler-4.1.2/tests/test_complex_case.py
|
||||
@@ -20,7 +20,7 @@
|
||||
Make sure the complex example script works without any profiling
|
||||
"""
|
||||
complex_fpath = get_complex_example_fpath()
|
||||
- info = ub.cmd(f'python {complex_fpath}', shell=True, verbose=3, env=ub.udict(os.environ) | {'PROFILE_TYPE': 'none'})
|
||||
+ info = ub.cmd(f'{sys.executable} {complex_fpath}', shell=True, verbose=3, env=ub.udict(os.environ) | {'PROFILE_TYPE': 'none'})
|
||||
assert info.stdout == ''
|
||||
info.check_returncode()
|
||||
|
||||
Reference in New Issue
Block a user