Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-debugpy for openSUSE:Factory 
checked in at 2021-12-22 20:17:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-debugpy (Old)
 and      /work/SRC/openSUSE:Factory/.python-debugpy.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-debugpy"

Wed Dec 22 20:17:50 2021 rev:3 rq:941846 version:1.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-debugpy/python-debugpy.changes    
2021-09-04 22:32:26.275919566 +0200
+++ /work/SRC/openSUSE:Factory/.python-debugpy.new.2520/python-debugpy.changes  
2021-12-22 20:18:29.351858935 +0100
@@ -1,0 +2,13 @@
+Mon Dec 20 23:00:44 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 1.5.1
+  * no release notes other than a bunch of github PR and issue
+    numbers: https://github.com/microsoft/debugpy/releases
+  * Python 3.10 is now fully supported
+- Drop pydevd-openSUSE-attach-autoarch.patch, upstream changed
+  architecture support logic
+- Drop correct-pthread-library-name.patch merged upstream
+- Remove performance tweak not compatible with older gdb
+  * gh#microsoft/debugpy#762
+
+-------------------------------------------------------------------

Old:
----
  correct-pthread-library-name.patch
  debugpy-1.3.0.tar.gz
  pydevd-openSUSE-attach-autoarch.patch

New:
----
  debugpy-1.5.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-debugpy.spec ++++++
--- /var/tmp/diff_new_pack.oYNkPX/_old  2021-12-22 20:18:29.875859180 +0100
+++ /var/tmp/diff_new_pack.oYNkPX/_new  2021-12-22 20:18:29.879859182 +0100
@@ -25,22 +25,19 @@
 %define psuffix %{nil}
 %bcond_with test
 %endif
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-# Python 3.6 is officially supported, but debugpy is in openSUSE for ipykernel 
6 which is for Python >= 3.7.
-# Skip Py36 in order to save resources.
+%{?!python_module:%define python_module() python3-%{**}}
+# Python 2 and 3.6 are officially supported, but debugpy is in openSUSE for 
ipykernel 6 which is for Python >= 3.7.
+# Skip Py2 in Leap and Py36 in TW in order to save resources.
+%define skip_python2 1
 %define skip_python36 1
 %define modname debugpy
 Name:           python-%{modname}%{psuffix}
-Version:        1.3.0
+Version:        1.5.1
 Release:        0
 Summary:        An implementation of the Debug Adapter Protocol for Python
 License:        MIT
 URL:            https://github.com/microsoft/debugpy/
 Source:         
https://github.com/microsoft/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE pydevd-openSUSE-attach-autoarch.patch -- support more 
than intel: use rpmbuild compiled attach library and let gdb figure out the 
architecture automatically. c...@bnavigator.de
-Patch0:         pydevd-openSUSE-attach-autoarch.patch
-# PATCH-FIX-UPSTREAM gh#microsoft/debugpy#716
-Patch1:         correct-pthread-library-name.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
@@ -67,17 +64,17 @@
 %prep
 %autosetup -p1 -n %{modname}-%{version}
 
-# don't remove vendored pydevd until it is packaged as a separate package 
(which is not upstream's intention)
-# rm -rv src/debugpy/_vendored
+# don't remove vendored pydevd: upstream's intention is to always bundle it. 
Development happens in debugpy anyway
 
 # remove precompiled libs
 rm 
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/*.{so,dll,dylib,exe,pdb}
 # remove script interpreter lines
 sed -i '1 {/^#!/ d}' \
-  src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/*/*.py \
-  
src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/sanitytest.py
+  src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/*/*.py
 # remove gitignore file
 find src/debugpy/_vendored/pydevd/ -name .gitignore -delete
+# remove a performance tweak not compatible with older gdb: 
https://github.com/microsoft/debugpy/issues/762
+sed -i '/set auto-solib-add off/d' 
src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
 
 %build
 %if ! %{with test}
@@ -88,7 +85,16 @@
 rm -r src/debugpy/_vendored
 cp -r src/debugpy/_vendored_clean src/debugpy/_vendored
 pushd src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/
-g++ %{optflags} -shared -o ../attach_SUSE.so -fPIC -nostartfiles attach.cpp
+# see 
/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py::get_target_filename
+pyarch=$(python3 -c 'import platform; print(platform.machine())')
+g++ %{optflags} -shared -o ../attach_${pyarch}.so -fPIC -nostartfiles 
attach.cpp
+# if on intel architectures, use the default upstream names
+%ifarch x86_64
+mv ../attach_${pyarch}.so ../attach_linux_amd64.so
+%endif
+%ifarch %ix86
+mv ../attach_${pyarch}.so ../attach_linux_x86.so
+%endif
 popd
 %{$python_build}
 }
@@ -98,8 +104,8 @@
 %if !%{with test}
 # Dont compile pydevd again
 export SKIP_CYTHON_BUILD=1
-%{python_expand # override install-lib: the vendored pydevd is not pure
-%{$python_install} --install-lib %{$python_sitearch}
+%python_install
+%{python_expand # remove source files
 rm -r 
%{buildroot}%{$python_sitearch}/debugpy/_vendored/pydevd/pydevd_attach_to_process/{common,linux_and_mac,windows}/
 rm %{buildroot}%{$python_sitearch}/debugpy/_vendored/pydevd/_*/*.{c,h,pxd,pyx}
 %fdupes %{buildroot}%{$python_sitearch}
@@ -108,11 +114,10 @@
 
 %if %{with test}
 %check
+export DEBUGPY_TEST=1
 # extra flags are not added
 donttest="test_custom_python_args"
-# breakpoints and killing fail
-donttest+=" or (test_flask and (breakpoint or exception))"
-%pytest_arch -x -rfEs -k "not ($donttest)"
+%pytest_arch -k "not ($donttest)"
 %endif
 
 %if ! %{with test}

++++++ debugpy-1.3.0.tar.gz -> debugpy-1.5.1.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-debugpy/debugpy-1.3.0.tar.gz 
/work/SRC/openSUSE:Factory/.python-debugpy.new.2520/debugpy-1.5.1.tar.gz 
differ: char 22, line 1

Reply via email to