From 63a3d9acfdea1527d8b3c3728dde7c860458eee29406b479e2127d91ab6c93bb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 17 Nov 2023 17:57:30 +0000 Subject: [PATCH 1/2] - Update to 1.8.0: - Error while enumerating installed packages. - Drops Python 3.7 support. Please use debugpy v1.7.0 if you need to debug Python 3.7. - Remove DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('pydevd_plugins.extensions') - Fix invalid file hashes in RECORD of wheels - Support "restart" in "terminated" event for "attach"{"listen"} - Use "startDebugging" request for subprocesses - Remove upstreamed patch setuptools-67.3.0.patch. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-debugpy?expand=0&rev=21 --- debugpy-1.6.6.tar.gz | 3 --- debugpy-1.8.0.tar.gz | 3 +++ python-debugpy.changes | 14 ++++++++++++++ python-debugpy.spec | 4 +--- setuptools-67.3.0.patch | 24 ------------------------ 5 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 debugpy-1.6.6.tar.gz create mode 100644 debugpy-1.8.0.tar.gz delete mode 100644 setuptools-67.3.0.patch diff --git a/debugpy-1.6.6.tar.gz b/debugpy-1.6.6.tar.gz deleted file mode 100644 index 2b779d1..0000000 --- a/debugpy-1.6.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1a510cf760e1eea7a9d4929b6074ba5c082c05d08ddb068309e4b5fb2bedef97 -size 6942479 diff --git a/debugpy-1.8.0.tar.gz b/debugpy-1.8.0.tar.gz new file mode 100644 index 0000000..5e91df4 --- /dev/null +++ b/debugpy-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:875fd9eceaa4f8a0db082b0706137bd0200d77d5380610f3f8b3555f61e18778 +size 6760323 diff --git a/python-debugpy.changes b/python-debugpy.changes index 0815d74..90d1bbd 100644 --- a/python-debugpy.changes +++ b/python-debugpy.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Nov 17 17:44:21 UTC 2023 - Matej Cepl + +- Update to 1.8.0: + - Error while enumerating installed packages. + - Drops Python 3.7 support. Please use debugpy v1.7.0 if you + need to debug Python 3.7. + - Remove DeprecationWarning: Deprecated call to + pkg_resources.declare_namespace('pydevd_plugins.extensions') + - Fix invalid file hashes in RECORD of wheels + - Support "restart" in "terminated" event for "attach"{"listen"} + - Use "startDebugging" request for subprocesses +- Remove upstreamed patch setuptools-67.3.0.patch. + ------------------------------------------------------------------- Fri May 19 09:32:55 UTC 2023 - Jiri Srain diff --git a/python-debugpy.spec b/python-debugpy.spec index ea9ee03..5148dbc 100644 --- a/python-debugpy.spec +++ b/python-debugpy.spec @@ -31,14 +31,12 @@ %define skip_python36 1 %define modname debugpy Name: python-%{modname}%{psuffix} -Version: 1.6.6 +Version: 1.8.0 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/debugpy/archive/v%{version}.tar.gz#/debugpy-%{version}.tar.gz -# PATCH-FIX-UPSTREAM setuptools-67.3.0.patch (gh#microsoft/debugpy#1230, gh#microsoft/debugpy@35504f83ed80) -Patch1: setuptools-67.3.0.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} diff --git a/setuptools-67.3.0.patch b/setuptools-67.3.0.patch deleted file mode 100644 index 92072aa..0000000 --- a/setuptools-67.3.0.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 35504f83ed807fa9eddcacf940da4e35e7688d78 Mon Sep 17 00:00:00 2001 -From: Pavel Minaev -Date: Tue, 7 Mar 2023 10:34:59 -0800 -Subject: [PATCH] Work around #1230 - -Look for more specific text in the output to avoid false positives. ---- - tests/debugpy/test_run.py | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -Index: debugpy-1.6.6/tests/debugpy/test_run.py -=================================================================== ---- debugpy-1.6.6.orig/tests/debugpy/test_run.py -+++ debugpy-1.6.6/tests/debugpy/test_run.py -@@ -89,8 +89,7 @@ def test_run_relative_path(pyfile, run): - with open(pydevd_debug_file, "r") as stream: - contents = stream.read() - -- assert "critical" not in contents -- assert "Traceback" not in contents -+ assert "FileNotFound" not in contents - - - @pytest.mark.parametrize("run", runners.all_launch) From b9dca2b28c4c6390b333ec381e3b05574c8ab3a9777ee9dcb710817558b6acb9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 17 Nov 2023 18:54:53 +0000 Subject: [PATCH 2/2] - Remove upstreamed patch setuptools-67.3.0.patch - Skip test test_attach_pid_client (gh#microsoft/debugpy#1462) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-debugpy?expand=0&rev=22 --- python-debugpy.changes | 3 ++- python-debugpy.spec | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/python-debugpy.changes b/python-debugpy.changes index 90d1bbd..97292b8 100644 --- a/python-debugpy.changes +++ b/python-debugpy.changes @@ -10,7 +10,8 @@ Fri Nov 17 17:44:21 UTC 2023 - Matej Cepl - Fix invalid file hashes in RECORD of wheels - Support "restart" in "terminated" event for "attach"{"listen"} - Use "startDebugging" request for subprocesses -- Remove upstreamed patch setuptools-67.3.0.patch. +- Remove upstreamed patch setuptools-67.3.0.patch +- Skip test test_attach_pid_client (gh#microsoft/debugpy#1462) ------------------------------------------------------------------- Fri May 19 09:32:55 UTC 2023 - Jiri Srain diff --git a/python-debugpy.spec b/python-debugpy.spec index 5148dbc..7e34049 100644 --- a/python-debugpy.spec +++ b/python-debugpy.spec @@ -120,6 +120,8 @@ donttest="test_custom_python_args" # python 3.11 failures donttest="$donttest or test_redirect_output or test_with_no_output or test_systemexit or test_exceptions_and_partial_exclude_rules or test_exception_stack or test_flask_template_exception_no_multiproc or test_flask_exception_no_multiproc or test_gevent" rm -v tests/debugpy/test_exception.py tests/debugpy/test_django.py +# gh#microsoft/debugpy#1462 +donttest="$donttest or test_attach_pid_client" %pytest_arch -k "not ($donttest)" %endif