Skip to content

Commit

Permalink
Update python-debugpy to version 1.6.6 / rev 9 via SR 1072342
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1072342
by user dgarcia + dimstar_suse
- Add setuptools-67.3.0.patch to fix test issues with new setuptools.
  gh#microsoft/debugpy#1230
  • Loading branch information
dgarcia authored and bmwiedemann committed Mar 17, 2023
1 parent ae8c233 commit b911acf
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
Binary file modified packages/p/python-debugpy/.files
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/p/python-debugpy/.rev
Expand Up @@ -70,4 +70,14 @@
<comment>- skip more tests for python 3.11</comment>
<requestid>1062640</requestid>
</revision>
<revision rev="9" vrev="3">
<srcmd5>cea2526a45c7f66d7ec875cd412f7fb2</srcmd5>
<version>1.6.6</version>
<time>1679068870</time>
<user>dimstar_suse</user>
<comment>- Add setuptools-67.3.0.patch to fix test issues with new setuptools.
gh#microsoft/debugpy#1230
</comment>
<requestid>1072342</requestid>
</revision>
</revisionlist>
6 changes: 6 additions & 0 deletions packages/p/python-debugpy/python-debugpy.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 16 10:39:58 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

- Add setuptools-67.3.0.patch to fix test issues with new setuptools.
gh#microsoft/debugpy#1230

-------------------------------------------------------------------
Thu Feb 2 12:58:38 UTC 2023 - Dirk Müller <dmueller@suse.com>

Expand Down
2 changes: 2 additions & 0 deletions packages/p/python-debugpy/python-debugpy.spec
Expand Up @@ -37,6 +37,8 @@ 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}
Expand Down
24 changes: 24 additions & 0 deletions packages/p/python-debugpy/setuptools-67.3.0.patch
@@ -0,0 +1,24 @@
From 35504f83ed807fa9eddcacf940da4e35e7688d78 Mon Sep 17 00:00:00 2001
From: Pavel Minaev <pminaev@microsoft.com>
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)

0 comments on commit b911acf

Please sign in to comment.