commit python-line_profiler for openSUSE:Factory

2024-02-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2024-02-15 21:00:46

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.1815 (New)


Package is "python-line_profiler"

Thu Feb 15 21:00:46 2024 rev:11 rq:1146675 version:4.1.2

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2023-08-14 22:35:47.532428525 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.1815/python-line_profiler.changes
  2024-02-15 21:02:01.679425294 +0100
@@ -1,0 +2,27 @@
+Tue Dec  5 12:55:42 UTC 2023 - Dirk Müller 
+
+- 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
+- Add patch use-sys-executable-python.patch:
+  * Use sys.executable, rather than 'python'.
+
+---

Old:

  line_profiler-4.0.3.tar.gz

New:

  line_profiler-4.1.2.tar.gz
  use-sys-executable-python.patch

BETA DEBUG BEGIN:
  New:https://kernprof.readthedocs.io/en/latest/index.html
- Add patch use-sys-executable-python.patch:
  * Use sys.executable, rather than 'python'.
BETA DEBUG END:



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.jBMIbl/_old  2024-02-15 21:02:02.127441040 +0100
+++ /var/tmp/diff_new_pack.jBMIbl/_new  2024-02-15 21:02:02.127441040 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-line_profiler
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -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++
@@ -36,7 +39,7 @@
 BuildRequires:  python-rpm-macros
 Requires:   python-ipython
 Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
 %python_subpackages
 
 %description
@@ -49,7 +52,7 @@
 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"

++ line_profiler-4.0.3.tar.gz -> line_profiler-4.1.2.tar.gz ++
 25822 lines of diff (skipped)

++ use-sys-executable-python.patch ++
--- 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} 

commit python-line_profiler for openSUSE:Factory

2023-08-14 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2023-08-14 22:35:37

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.11712 (New)


Package is "python-line_profiler"

Mon Aug 14 22:35:37 2023 rev:10 rq:1103743 version:4.0.3

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2023-03-27 18:16:22.959139022 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.11712/python-line_profiler.changes
 2023-08-14 22:35:47.532428525 +0200
@@ -1,0 +2,5 @@
+Sun Aug 13 21:37:39 UTC 2023 - Dirk Müller 
+
+- restrict to older Cython release 
+
+---



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.Yrrz21/_old  2023-08-14 22:35:48.028431679 +0200
+++ /var/tmp/diff_new_pack.Yrrz21/_new  2023-08-14 22:35:48.032431704 +0200
@@ -23,7 +23,7 @@
 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}
+BuildRequires:  %{python_module Cython with %python-Cython < 3}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module ipython}
 BuildRequires:  %{python_module pytest}


commit python-line_profiler for openSUSE:Factory

2023-03-27 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2023-03-27 18:16:16

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.31432 (New)


Package is "python-line_profiler"

Mon Mar 27 18:16:16 2023 rev:9 rq:1074511 version:4.0.3

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2023-02-20 17:46:32.243663344 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.31432/python-line_profiler.changes
 2023-03-27 18:16:22.959139022 +0200
@@ -1,0 +2,7 @@
+Sun Mar 26 19:55:08 UTC 2023 - Dirk Müller 
+
+- update to 4.0.3:
+  * FIX: Stop requiring bleeding-edge Cython unless necesasry
+(for Python 3.12).  #206
+
+---

Old:

  line_profiler-4.0.2.tar.gz

New:

  line_profiler-4.0.3.tar.gz



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.pYuAXR/_old  2023-03-27 18:16:23.715143012 +0200
+++ /var/tmp/diff_new_pack.pYuAXR/_new  2023-03-27 18:16:23.759143244 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   python-line_profiler
-Version:4.0.2
+Version:4.0.3
 Release:0
 Summary:Line-by-line profiler
 License:BSD-3-Clause

++ line_profiler-4.0.2.tar.gz -> line_profiler-4.0.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-4.0.2/CHANGELOG.rst 
new/line_profiler-4.0.3/CHANGELOG.rst
--- old/line_profiler-4.0.2/CHANGELOG.rst   2022-12-09 16:04:07.0 
+0100
+++ new/line_profiler-4.0.3/CHANGELOG.rst   2023-03-04 01:16:30.0 
+0100
@@ -1,6 +1,10 @@
 Changes
 ===
 
+4.0.3
+
+* FIX: Stop requiring bleeding-edge Cython unless necesasry (for Python 3.12). 
 #206
+
 4.0.2
 ~
 * FIX: AttributeError on certain methods. #191
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-4.0.2/PKG-INFO 
new/line_profiler-4.0.3/PKG-INFO
--- old/line_profiler-4.0.2/PKG-INFO2022-12-09 16:04:33.20572 +0100
+++ new/line_profiler-4.0.3/PKG-INFO2023-03-04 01:16:59.421346400 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: line_profiler
-Version: 4.0.2
+Version: 4.0.3
 Summary: Line-by-line profiler
 Home-page: https://github.com/pyutils/line_profiler
 Author: Robert Kern
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-4.0.2/README.rst 
new/line_profiler-4.0.3/README.rst
--- old/line_profiler-4.0.2/README.rst  2022-12-09 16:04:07.0 +0100
+++ new/line_profiler-4.0.3/README.rst  2023-03-04 01:16:30.0 +0100
@@ -54,7 +54,7 @@
 You may also download source tarballs of any snapshot from that URL.
 
 Source releases will require a C compiler in order to build `line_profiler`.
-In addition, git checkouts will also require Cython_ >= 0.10. Source releases
+In addition, git checkouts will also require Cython. Source releases
 on PyPI should contain the pregenerated C sources, so Cython should not be
 required in that case.
 
@@ -381,8 +381,7 @@
 It should contain the generated C sources already. If you are running into
 problems, that may be a bug; let me know. If you are building from
 a git checkout or snapshot, you will need Cython to generate the
-C sources. You will probably need version 0.10 or higher. There is a bug in
-some earlier versions in how it handles NULL PyObject* pointers.
+C sources.
 
 As of version ``3.0.0`` manylinux wheels containing the binaries are
 available on pypi. Work is still needed to publish osx and win32 wheels.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-4.0.2/kernprof.py 
new/line_profiler-4.0.3/kernprof.py
--- old/line_profiler-4.0.2/kernprof.py 2022-12-09 16:04:07.0 +0100
+++ new/line_profiler-4.0.3/kernprof.py 2023-03-04 01:16:30.0 +0100
@@ -13,7 +13,7 @@
 
 # NOTE: This version needs to be manually maintained with the line_profiler
 # __version__ for now.
-__version__ = '4.0.2'
+__version__ = '4.0.3'
 
 # Guard the import of cProfile such that 3.x people
 # without lsprof can still use this script.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-4.0.2/line_profiler/line_profiler.py 
new/line_profiler-4.0.3/line_profiler/line_profiler.py
--- old/line_profiler-4.0.2/line_profiler/line_profiler.py  2022-12-09 
16:04:07.0 +0100
+++ 

commit python-line_profiler for openSUSE:Factory

2023-02-20 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2023-02-20 17:46:07

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.22824 (New)


Package is "python-line_profiler"

Mon Feb 20 17:46:07 2023 rev:8 rq:1066713 version:4.0.2

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2022-09-30 17:58:10.389297184 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.22824/python-line_profiler.changes
 2023-02-20 17:46:32.243663344 +0100
@@ -1,0 +2,22 @@
+Mon Feb 20 07:01:56 UTC 2023 - Steve Kowalik 
+
+- Update to 4.0.2:
+  * FIX: AttributeError on certain methods. #191
+  * FIX: Profiling classmethods works again. #183
+  * 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++.
+  * ENH: Added the ``-i <# of seconds>`` option to the ``kernprof`` script.
+  * 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.
+  * FIX: filepath test in is_ipython_kernel_cell for Windows #161
+  * ADD: setup.py now checks LINE_PROFILER_BUILD_METHOD to determine how
+to build binaries
+  * ADD: LineProfiler.add_function warns if an added function has a
+__wrapped__ attribute
+- Due to build system change, massively simplify %build.
+
+---

Old:

  line_profiler-3.5.1.tar.gz

New:

  line_profiler-4.0.2.tar.gz



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.1PnTDi/_old  2023-02-20 17:46:36.835689285 +0100
+++ /var/tmp/diff_new_pack.1PnTDi/_new  2023-02-20 17:46:36.847689353 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-line_profiler
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,13 +16,11 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-line_profiler
-Version:3.5.1
+Version:4.0.2
 Release:0
 Summary:Line-by-line profiler
 License:BSD-3-Clause
-Group:  Development/Languages/Python
 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}
@@ -54,13 +52,9 @@
 %setup -q -n line_profiler-%{version}
 
 %build
-# regenarate cython files
-find . -name '*.pyx' -exec cython {} \;
 export CFLAGS="%{optflags} -fno-strict-aliasing"
 # remove shebangs
 sed -i '1{/env python/d}' line_profiler/line_profiler.py kernprof.py
-# fix for skbuild not specifying the platlib
-sed -i 's/setup(\*\*setupkw)/setup(**setupkw, 
ext_modules=[setuptools.Extension(name="line_profiler._line_profiler",sources=[])])/'
 setup.py
 %python_build
 
 %install

++ line_profiler-3.5.1.tar.gz -> line_profiler-4.0.2.tar.gz ++
 22328 lines of diff (skipped)


commit python-line_profiler for openSUSE:Factory

2022-09-30 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2022-09-30 17:57:52

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.2275 (New)


Package is "python-line_profiler"

Fri Sep 30 17:57:52 2022 rev:7 rq:1007071 version:3.5.1

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2022-01-08 23:24:05.898255107 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.2275/python-line_profiler.changes
  2022-09-30 17:58:10.389297184 +0200
@@ -1,0 +2,17 @@
+Thu Sep 29 14:50:17 UTC 2022 - Yogalakshmi Arunachalam 
+
+- Update to Version 3.5.2
+  * FIX: filepath test in is_ipython_kernel_cell for Windows #161
+  * ADD: setup.py now checks LINE_PROFILER_BUILD_METHOD to determine how to 
build binaries
+  * ADD: LineProfiler.add_function warns if an added function has a 
__wrapped__ attribute
+
+- Update to Version 3.5.1
+  * FIX: #19 line profiler now works on async functions again
+
+- Update to Version 3.5.0
+  * 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 
+
+---

Old:

  line_profiler-3.4.0.tar.gz

New:

  line_profiler-3.5.1.tar.gz



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.5WmRH9/_old  2022-09-30 17:58:10.789298039 +0200
+++ /var/tmp/diff_new_pack.5WmRH9/_new  2022-09-30 17:58:10.793298048 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-line_profiler
-Version:3.4.0
+Version:3.5.1
 Release:0
 Summary:Line-by-line profiler
 License:BSD-3-Clause

++ line_profiler-3.4.0.tar.gz -> line_profiler-3.5.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-3.4.0/CHANGELOG.rst 
new/line_profiler-3.5.1/CHANGELOG.rst
--- old/line_profiler-3.4.0/CHANGELOG.rst   2021-12-30 02:01:08.0 
+0100
+++ new/line_profiler-3.5.1/CHANGELOG.rst   2022-05-29 03:05:18.0 
+0200
@@ -1,10 +1,21 @@
 Changes
 ===
 
+3.5.1
+~
+* FIX: #19 line profiler now works on async functions again
+
+3.5.0
+~
+* 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
+
 3.4.0
 ~
 * Drop support for Python <= 3.5.x
-* FIX: #104 issue with new IPython kernels 
+* FIX: #104 issue with new IPython kernels
 
 3.3.1
 ~
@@ -18,7 +29,7 @@
 3.2.6
 ~
 * FIX: Update MANIFEST.in to package pyproj.toml and missing pyx file
-* CHANGE: Removed version experimental augmentation. 
+* CHANGE: Removed version experimental augmentation.
 
 3.2.5
 ~
@@ -40,7 +51,7 @@
 
 3.2.0
 ~
-* Dropped 2.7 support, manylinux docker images no longer support 2.7 
+* Dropped 2.7 support, manylinux docker images no longer support 2.7
 * ENH: Add command line option to specify time unit and skip displaying
   functions which have not been profiled.
 * ENH: Unified versions of line_profiler and kernprof: kernprof version is now
@@ -110,4 +121,3 @@
 ~
 
 * Initial release.
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-3.4.0/MANIFEST.in 
new/line_profiler-3.5.1/MANIFEST.in
--- old/line_profiler-3.4.0/MANIFEST.in 1970-01-01 01:00:00.0 +0100
+++ new/line_profiler-3.5.1/MANIFEST.in 2021-05-01 00:40:57.0 +0200
@@ -0,0 +1,14 @@
+include *.md
+include *.rst
+include *.py
+include *.txt
+include *.toml
+include run_tests.sh
+recursive-include requirements *.txt
+recursive-include tests *.py
+recursive-include line_profiler *.txt
+recursive-include line_profiler *.pyx
+recursive-include line_profiler *.pxd
+recursive-include line_profiler *.pyd
+recursive-include line_profiler *.c
+recursive-include line_profiler *.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/line_profiler-3.4.0/PKG-INFO 
new/line_profiler-3.5.1/PKG-INFO
--- old/line_profiler-3.4.0/PKG-INFO2021-12-30 02:01:24.562787500 +0100
+++ new/line_profiler-3.5.1/PKG-INFO2022-05-29 03:05:39.600498000 +0200
@@ -1,19 +1,11 @@
 Metadata-Version: 2.1
 Name: line_profiler
-Version: 3.4.0
+Version: 3.5.1
 Summary: Line-by-line profiler.
 Home-page: https://github.com/pyutils/line_profiler
 Author: Robert 

commit python-line_profiler for openSUSE:Factory

2022-01-08 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2022-01-08 23:23:32

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.1892 (New)


Package is "python-line_profiler"

Sat Jan  8 23:23:32 2022 rev:6 rq:944765 version:3.4.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2021-04-22 18:06:13.574720725 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.1892/python-line_profiler.changes
  2022-01-08 23:24:05.898255107 +0100
@@ -1,0 +2,21 @@
+Fri Jan  7 09:54:01 UTC 2022 - Ben Greiner 
+
+- Update to 3.4.0
+  * Drop support for Python <= 3.5.x
+  * FIX: #104 issue with new IPython kernels
+  * Wheels for musllinux are now included
+  * FIX: Fix bug where lines were not displayed in Jupyter>=6.0 via
+#93
+- Release 3.3.1
+  * CHANGE: moving forward, new pypi releases will be signed with
+the GPG key 2A290272C174D28EA9CA48E9D7224DAF0347B114 for
+PyUtils-CI openpyut...@gmail.com. For reference, older versions
+were signed with either
+262A1DF005BE5D2D5210237C85CD61514641325F or
+1636DAF294BA22B89DBB354374F166CFA2F39C18.
+- Release 3.2.5
+  * Include c source files in manifest (#74)
+- Fix IPython requirements
+- Fix platform install dir
+
+---

Old:

  line_profiler-3.1.0.tar.gz

New:

  line_profiler-3.4.0.tar.gz



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.dsDLRd/_old  2022-01-08 23:24:06.402255519 +0100
+++ /var/tmp/diff_new_pack.dsDLRd/_new  2022-01-08 23:24:06.406255522 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-line_profiler
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,16 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-line_profiler
-Version:3.1.0
+Version:3.4.0
 Release:0
 Summary:Line-by-line profiler
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-URL:https://github.com/rkern/line_profiler
+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}
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module jupyter_ipython}
+BuildRequires:  %{python_module ipython}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module scikit-build}
 BuildRequires:  %{python_module setuptools}
@@ -36,7 +36,7 @@
 BuildRequires:  gcc-c++
 BuildRequires:  ninja
 BuildRequires:  python-rpm-macros
-Requires:   python-jupyter_ipython
+Requires:   python-ipython
 Requires(post): update-alternatives
 Requires(postun):update-alternatives
 %python_subpackages
@@ -54,21 +54,20 @@
 %setup -q -n line_profiler-%{version}
 
 %build
-# fix wrongly generated cyx files
+# regenarate cython files
 find . -name '*.pyx' -exec cython {} \;
 export CFLAGS="%{optflags} -fno-strict-aliasing"
+# remove shebangs
+sed -i '1{/env python/d}' line_profiler/line_profiler.py kernprof.py
+# fix for skbuild not specifying the platlib
+sed -i 's/setup(\*\*setupkw)/setup(**setupkw, 
ext_modules=[setuptools.Extension(name="line_profiler._line_profiler",sources=[])])/'
 setup.py
 %python_build
 
 %install
 %python_install
 %python_clone -a %{buildroot}%{_bindir}/kernprof
-%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/line_profiler/*.py
-sed -i "s|#!%{_bindir}/env python|#!%__$python|" 
%{buildroot}%{$python_sitelib}/line_profiler/*.py
-$python -m compileall -d %{$python_sitelib}/line_profiler 
%{buildroot}%{$python_sitelib}/line_profiler
-$python -O -m compileall -d %{$python_sitelib}/line_profiler 
%{buildroot}%{$python_sitelib}/line_profiler
-rm -rf %{buildroot}%{$python_sitelib}/line_profiler/__pycache__
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%python_compileall
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %post
 %python_install_alternative kernprof
@@ -78,16 +77,15 @@
 
 %check
 # test_cli needs ubelt, which we don't have and which is needed just for tests
-%pytest -k "not test_cli" tests
+%pytest_arch -k "not test_cli" tests
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt LICENSE_Python.txt
 %python_alternative %{_bindir}/kernprof
-%dir %{python_sitelib}/line_profiler

commit python-line_profiler for openSUSE:Factory

2021-04-22 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-line_profiler for 
openSUSE:Factory checked in at 2021-04-22 18:04:38

Comparing /work/SRC/openSUSE:Factory/python-line_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-line_profiler.new.12324 (New)


Package is "python-line_profiler"

Thu Apr 22 18:04:38 2021 rev:5 rq:887569 version:3.1.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-line_profiler/python-line_profiler.changes
2019-01-03 18:08:42.724029285 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-line_profiler.new.12324/python-line_profiler.changes
 2021-04-22 18:06:13.574720725 +0200
@@ -1,0 +2,7 @@
+Thu Apr 22 12:59:14 UTC 2021 - Mark??ta Machov?? 
+
+- update to 3.1.0
+  * Restructure into package
+  * fix Python 3.9
+
+---

Old:

  line_profiler-2.1.2.tar.gz

New:

  line_profiler-3.1.0.tar.gz



Other differences:
--
++ python-line_profiler.spec ++
--- /var/tmp/diff_new_pack.bExtzN/_old  2021-04-22 18:06:13.990721407 +0200
+++ /var/tmp/diff_new_pack.bExtzN/_new  2021-04-22 18:06:13.994721414 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-line_profiler
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-line_profiler
-Version:2.1.2
+Version:3.1.0
 Release:0
 Summary:Line-by-line profiler
 License:BSD-3-Clause
@@ -29,15 +29,16 @@
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module jupyter_ipython}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module scikit-build}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  cmake
 BuildRequires:  fdupes
+BuildRequires:  gcc-c++
+BuildRequires:  ninja
 BuildRequires:  python-rpm-macros
-BuildRequires:  python3-devel >= 3.5
+Requires:   python-jupyter_ipython
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
-%ifpython3
-Requires:   python3-base >= 3.5
-%endif
+Requires(postun):update-alternatives
 %python_subpackages
 
 %description
@@ -61,11 +62,12 @@
 %install
 %python_install
 %python_clone -a %{buildroot}%{_bindir}/kernprof
-%{python_expand chmod a+x %{buildroot}%{$python_sitearch}/*.py
-sed -i "s|#!%{_bindir}/env python|#!%__$python|" 
%{buildroot}%{$python_sitearch}/*.py
-$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}
-$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}
-%fdupes %{buildroot}%{$python_sitearch}
+%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/line_profiler/*.py
+sed -i "s|#!%{_bindir}/env python|#!%__$python|" 
%{buildroot}%{$python_sitelib}/line_profiler/*.py
+$python -m compileall -d %{$python_sitelib}/line_profiler 
%{buildroot}%{$python_sitelib}/line_profiler
+$python -O -m compileall -d %{$python_sitelib}/line_profiler 
%{buildroot}%{$python_sitelib}/line_profiler
+rm -rf %{buildroot}%{$python_sitelib}/line_profiler/__pycache__
+%fdupes %{buildroot}%{$python_sitelib}
 }
 
 %post
@@ -75,21 +77,17 @@
 %python_uninstall_alternative kernprof
 
 %check
-# https://github.com/rkern/line_profiler/issues/128
-# %%{python_expand export PYTHONPATH="%%{buildroot}%%{$python_sitearch}"
-# py.test-%%{$python_bin_suffix} tests
-# }
+# test_cli needs ubelt, which we don't have and which is needed just for tests
+%pytest -k "not test_cli" tests
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE.txt LICENSE_Python.txt
 %python_alternative %{_bindir}/kernprof
-%{python_sitearch}/line_profiler-%{version}-py*.egg-info
-%{python_sitearch}/kernprof.py*
-%{python_sitearch}/line_profiler*.py*
-%{python_sitearch}/_line_profiler*.so
-%python3_only %{python_sitearch}/line_profiler_py35.py*
-%pycache_only %{python_sitearch}/__pycache__/kernprof*.py*
-%pycache_only %{python_sitearch}/__pycache__/line_profiler*.py*
+%dir %{python_sitelib}/line_profiler
+%{python_sitelib}/line_profiler-%{version}-py*.egg-info
+%{python_sitelib}/kernprof.py*
+%{python_sitelib}/line_profiler/*.py*
+%{python_sitelib}/line_profiler/_line_profiler*.so
 
 %changelog

++ line_profiler-2.1.2.tar.gz -> line_profiler-3.1.0.tar.gz ++
 15197 lines of diff (skipped)