Skip to content

Commit b7f2433

Browse files
authored
Pull changes from pydevd up to March 2026 (#2010)
* git subrepo commit (merge) src/debugpy/_vendored/pydevd subrepo: subdir: "src/debugpy/_vendored/pydevd" merged: "6bacec5b" upstream: origin: "https://github.com/fabioz/PyDev.Debugger.git" branch: "main" commit: "b5cfeb38" git-subrepo: version: "0.4.1" origin: "???" commit: "???" * Fixup generator to not add files in the venv * Update contributing.md
1 parent bd4e1a6 commit b7f2433

65 files changed

Lines changed: 43442 additions & 50704 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ In order to update the source, you would:
116116

117117
You might need to regenerate the Cython modules after any changes. This can be done by:
118118

119-
- Install Python latest (3.14 as of this writing)
119+
- Install Python 3.13
120120
- pip install cython 'django>=1.9' 'setuptools>=0.9' 'wheel>0.21' twine
121-
- On a windows machine:
122-
- set FORCE_PYDEVD_VC_VARS=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat
121+
- On a windows machine in a Visual Studio Developer Prompt:
122+
- set FORCE_PYDEVD_VC_VARS=%VCINSTALLDIR%\Auxiliary\Build\vcvars64.bat
123123
- in the pydevd folder: python .\build_tools\build.py
124124

125125
## Pushing pydevd back to PyDev.Debugger

src/debugpy/_vendored/pydevd/.github/workflows/pydevd-release-manylinux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [ubuntu-20.04]
19+
os: [ubuntu-latest]
2020
steps:
2121
- uses: actions/checkout@v4
2222

@@ -35,7 +35,7 @@ jobs:
3535
CIBW_SKIP: pp* cp36-* cp37-*
3636
CIBW_BUILD_VERBOSITY: 1
3737

38-
- uses: actions/upload-artifact@v3
38+
- uses: actions/upload-artifact@v4
3939
with:
4040
path: ./wheelhouse/*.whl
4141

src/debugpy/_vendored/pydevd/.github/workflows/pydevd-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Create sdist
4848
run: python setup.py sdist bdist_wheel
4949

50-
- uses: actions/upload-artifact@v3
50+
- uses: actions/upload-artifact@v4
5151
with:
5252
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
5353
path: dist/*

src/debugpy/_vendored/pydevd/.github/workflows/pydevd-tests-python.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,22 @@ jobs:
2626
"windows-py312-cython-checkbin",
2727
"ubuntu-py313-cython",
2828
"windows-py313-cython",
29+
"ubuntu-py314-cython",
30+
"windows-py314-cython",
2931
]
3032

3133
include:
3234
- name: "ubuntu-pypy3"
3335
python: "pypy3.10"
34-
os: ubuntu-20.04
36+
os: ubuntu-latest
3537
PYDEVD_USE_CYTHON: NO
3638
# - name: "macos-py37-cython"
3739
# python: "3.7"
3840
# os: macos-latest
3941
# PYDEVD_USE_CYTHON: YES
4042
- name: "ubuntu-py38-cython-checkbin"
4143
python: "3.8"
42-
os: ubuntu-20.04
44+
os: ubuntu-latest
4345
PYDEVD_USE_CYTHON: YES
4446
- name: "windows-py39-cython"
4547
python: "3.9"
@@ -56,24 +58,32 @@ jobs:
5658
PYDEVD_USE_CYTHON: YES
5759
- name: "ubuntu-py311-cython"
5860
python: "3.11.0"
59-
os: ubuntu-20.04
61+
os: ubuntu-latest
6062
PYDEVD_USE_CYTHON: YES
6163
- name: "ubuntu-py312-cython-checkbin"
6264
python: "3.12.0"
63-
os: ubuntu-20.04
65+
os: ubuntu-latest
6466
PYDEVD_USE_CYTHON: YES
6567
- name: "windows-py312-cython-checkbin"
6668
python: "3.12"
6769
os: windows-latest
6870
PYDEVD_USE_CYTHON: YES
6971
- name: "ubuntu-py313-cython"
7072
python: "3.13"
71-
os: ubuntu-20.04
73+
os: ubuntu-latest
7274
PYDEVD_USE_CYTHON: YES
7375
- name: "windows-py313-cython"
7476
python: "3.13"
7577
os: windows-latest
7678
PYDEVD_USE_CYTHON: YES
79+
- name: "ubuntu-py314-cython"
80+
python: "3.14-dev"
81+
os: ubuntu-latest
82+
PYDEVD_USE_CYTHON: YES
83+
- name: "windows-py314-cython"
84+
python: "3.14"
85+
os: windows-latest
86+
PYDEVD_USE_CYTHON: YES
7787

7888
steps:
7989
- uses: actions/checkout@v1
@@ -105,7 +115,7 @@ jobs:
105115
pip install untangle --no-warn-script-location
106116
pip install importlib-metadata --no-warn-script-location
107117
- name: Install Python 3.x deps
108-
if: contains(matrix.name, 'py3') && !contains(matrix.name, 'pypy') && !contains(matrix.name, 'py312') && !contains(matrix.name, 'py311') && !contains(matrix.name, 'py313')
118+
if: contains(matrix.name, 'py3') && !contains(matrix.name, 'pypy') && !contains(matrix.name, 'py312') && !contains(matrix.name, 'py311') && !contains(matrix.name, 'py313') && !contains(matrix.name, 'py314')
109119
run: |
110120
pip install PySide2 --no-warn-script-location
111121
pip install "numpy<2" --force --no-warn-script-location

src/debugpy/_vendored/pydevd/.gitrepo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[subrepo]
77
remote = https://github.com/fabioz/PyDev.Debugger.git
88
branch = main
9-
commit = d0f81de46ec51687ac24ae9598eb2615010a4b44
9+
commit = b5cfeb38d1b11b429e5befe88cb27fcc57fdad12
1010
parent = 8ab4ee89e9ae9a926f711904900a27e3c96d43d4
1111
method = merge
12-
cmdver = 0.4.9
12+
cmdver = 0.4.1

src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
License: Apache 2.0
33
Author: Yuli Fitterman
44
"""
5+
56
import types
67

78
from _pydevd_bundle.pydevd_constants import IS_JYTHON

src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def start_watching(): # Called from thread
3737
3838
Note: changes are only reported for files (added/modified/deleted), not directories.
3939
"""
40+
4041
import sys
4142
from os.path import basename
4243
from _pydev_bundle import pydev_log, _pydev_saved_modules

src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# eg: Completing a magic when user typed it without the leading % causes the % to be inserted
1111
# to the left of what should be the first colon.
1212
"""Interface to TerminalInteractiveShell for PyDev Interactive Console frontend
13-
for IPython 0.11 to 1.0+.
13+
for IPython 0.11 to 1.0+.
1414
"""
1515

1616
from __future__ import print_function
@@ -96,9 +96,20 @@ def __init__(self, *args, **kwargs):
9696
def matchers(self):
9797
"""All active matcher routines for completion"""
9898
# To remove python_matches we now have to override it as it's now a property in the superclass.
99+
100+
# Newer versions of IPython have file_matcher and magic_matcher.
101+
try:
102+
file_matches = self.file_matches
103+
except AttributeError:
104+
file_matches = self.file_matcher
105+
106+
try:
107+
magic_matches = self.magic_matches
108+
except AttributeError:
109+
magic_matches = self.magic_matcher
99110
return [
100-
self.file_matches,
101-
self.magic_matches,
111+
file_matches,
112+
magic_matches,
102113
self.python_func_kw_matches,
103114
self.dict_key_matches,
104115
]
@@ -137,6 +148,7 @@ class PyDevTerminalInteractiveShell(TerminalInteractiveShell):
137148
# Since IPython 5 the terminal interface is not compatible with Emacs `inferior-shell` and
138149
# the `simple_prompt` flag is needed
139150
simple_prompt = CBool(True)
151+
use_jedy = CBool(False)
140152

141153
# In the PyDev Console, GUI control is done via hookable XML-RPC server
142154
@staticmethod
@@ -366,12 +378,17 @@ def update(self, globals, locals):
366378
def complete(self, string):
367379
try:
368380
if string:
369-
return self.ipython.complete(None, line=string, cursor_pos=string.__len__())
381+
ret = self.ipython.complete(None, line=string, cursor_pos=string.__len__())
370382
else:
371-
return self.ipython.complete(string, string, 0)
383+
ret = self.ipython.complete(string, string, 0)
384+
385+
return ret
372386
except:
387+
import traceback
388+
389+
traceback.print_exc()
373390
# Silence completer exceptions
374-
pass
391+
return None, []
375392

376393
def is_complete(self, string):
377394
# Based on IPython 0.10.1
@@ -435,8 +452,6 @@ def getCompletions(self, text, act_tok):
435452
append((ipython_completion, pydev_doc, "", pydev_type))
436453
return ret
437454
except:
438-
import traceback
439-
440455
traceback.print_exc()
441456
return []
442457

src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def is_thread_alive(t):
1010
return not t._os_thread_handle.is_done()
1111

12-
if hasattr(_temp, "_handle") and hasattr(_temp, "_started"): # Python 3.13 and later has this
12+
elif hasattr(_temp, "_handle") and hasattr(_temp, "_started"): # Python 3.13 and later has this
1313

1414
def is_thread_alive(t):
1515
return not t._handle.is_done()

src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _get_related_thread(self):
140140
return None
141141

142142
if thread._ident is None: # Can this happen?
143-
pydev_log.critical("thread._ident is None in _get_related_thread!")
143+
pydev_log.critical("thread._ident is None in _get_related_thread! - thread: %s", thread)
144144
return None
145145

146146
if threading._active.get(thread._ident) is not thread:

0 commit comments

Comments
 (0)