14
0

- 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:
2023-12-05 15:53:56 +00:00
committed by Git OBS Bridge
parent 0a4f8844c2
commit e20f3e2173
5 changed files with 53 additions and 14 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:deb2eb9e9119d911debe23edcec8ea68a2cd70c9e3f753c96aaf4a86ca497e7e
size 151336

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa56578b0ff5a756fe180b3fda7bd67c27bbd478b3d0124612d8cf00e4a21df2
size 78149

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
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> Sun Aug 13 21:37:39 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -17,18 +17,21 @@
Name: python-line_profiler Name: python-line_profiler
Version: 4.0.3 Version: 4.1.2
Release: 0 Release: 0
Summary: Line-by-line profiler Summary: Line-by-line profiler
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/pyutils/line_profiler URL: https://github.com/pyutils/line_profiler
Source: https://files.pythonhosted.org/packages/source/l/line_profiler/line_profiler-%{version}.tar.gz 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 devel}
BuildRequires: %{python_module ipython} BuildRequires: %{python_module ipython}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scikit-build} BuildRequires: %{python_module scikit-build}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module ubelt}
BuildRequires: cmake BuildRequires: cmake
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ 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. function-level profiling tools in the Python standard library.
%prep %prep
%setup -q -n line_profiler-%{version} %autosetup -p1 -n line_profiler-%{version}
%build %build
export CFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"

View 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()