Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| b0fd983de6 | |||
| ddc22576ec | |||
| fffb40fc11 | |||
| 2ffa290fca |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aa56578b0ff5a756fe180b3fda7bd67c27bbd478b3d0124612d8cf00e4a21df2
|
|
||||||
size 78149
|
|
||||||
3
line_profiler-4.2.0.tar.gz
Normal file
3
line_profiler-4.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:09e10f25f876514380b3faee6de93fb0c228abba85820ba1a591ddb3eb451a96
|
||||||
|
size 199037
|
||||||
@@ -1,3 +1,26 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 4 08:46:41 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 4.2.0:
|
||||||
|
* FIX: Fix issue with auto-profile of editable installs #279
|
||||||
|
* FIX: Lookup OP-codes instead of hard coding them #284
|
||||||
|
* CHANGE: Drop support for Python 3.6 and Python 3.7
|
||||||
|
* ENH: Add support for Python 3.13
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 26 23:59:21 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 4.1.3:
|
||||||
|
* FIX: duration summary now respects the stripzeros argument.
|
||||||
|
* FIX: minor test fixes.
|
||||||
|
* ENH: building osx wheels for x86 and arm64.
|
||||||
|
* ENH: documentation improvements.
|
||||||
|
* Invoke subshell with the current python interpreter
|
||||||
|
* Respect stripzeros in summary report
|
||||||
|
* Normalize path before comparison
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
- Drop patch use-sys-executable-python.patch, included upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 13 15:29:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Wed Mar 13 15:29:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-line_profiler
|
# spec file for package python-line_profiler
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,24 +16,23 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# missing ipython
|
%{?sle15_python_module_pythons}
|
||||||
%global skip_python39 1
|
|
||||||
Name: python-line_profiler
|
Name: python-line_profiler
|
||||||
Version: 4.1.2
|
Version: 4.2.0
|
||||||
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
|
||||||
# submitted upstream as https://github.com/pyutils/line_profiler/pull/252
|
|
||||||
Patch1: use-sys-executable-python.patch
|
|
||||||
BuildRequires: %{python_module Cython}
|
BuildRequires: %{python_module Cython}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module ipython}
|
BuildRequires: %{python_module ipython}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
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: %{python_module ubelt}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@@ -60,10 +59,10 @@ function-level profiling tools in the Python standard library.
|
|||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
# remove shebangs
|
# remove shebangs
|
||||||
sed -i '1{/env python/d}' line_profiler/line_profiler.py kernprof.py
|
sed -i '1{/env python/d}' line_profiler/line_profiler.py kernprof.py
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/kernprof
|
%python_clone -a %{buildroot}%{_bindir}/kernprof
|
||||||
%python_compileall
|
%python_compileall
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
@@ -76,15 +75,16 @@ sed -i '1{/env python/d}' line_profiler/line_profiler.py kernprof.py
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
# test_cli needs ubelt, which we don't have and which is needed just for tests
|
# test_cli needs ubelt, which we don't have and which is needed just for tests
|
||||||
%pytest_arch -k "not test_cli" tests
|
# test_assumed_noop removed upstream, stop skipping it with 4.2.0.
|
||||||
|
%pytest_arch -k "not (test_cli or test_assumed_noop)" tests
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE.txt LICENSE_Python.txt
|
%license LICENSE.txt LICENSE_Python.txt
|
||||||
%python_alternative %{_bindir}/kernprof
|
%python_alternative %{_bindir}/kernprof
|
||||||
%{python_sitearch}/line_profiler
|
%{python_sitearch}/line_profiler
|
||||||
%{python_sitearch}/line_profiler-%{version}*-info
|
%{python_sitearch}/line_profiler-%{version}.dist-info
|
||||||
%{python_sitearch}/kernprof.py*
|
%{python_sitearch}/kernprof.py
|
||||||
%pycache_only %{python_sitearch}/__pycache__/kernprof*
|
%pycache_only %{python_sitearch}/__pycache__/kernprof.*.pyc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
--- 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