Skip to content

Commit 775f1cb

Browse files
committed
build: remove pudb, I can install it if I need it
pudb was pulling in six other packages too.
1 parent 0ccb1fe commit 775f1cb

3 files changed

Lines changed: 3 additions & 25 deletions

File tree

coverage/debug.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,15 +573,13 @@ def _decorator(cls): # type: ignore[no-untyped-def]
573573
return _decorator
574574

575575

576-
def break_in_pudb(func: AnyCallable) -> AnyCallable: # pragma: debugging
576+
def break_in_debugger(func: AnyCallable) -> AnyCallable: # pragma: debugging
577577
"""A function decorator to stop in the debugger for each call."""
578578

579579
@functools.wraps(func)
580580
def _wrapper(*args: Any, **kwargs: Any) -> Any:
581-
import pudb
582-
583581
sys.stdout = sys.__stdout__
584-
pudb.set_trace()
582+
breakpoint() # pylint: disable=forgotten-debug-statement
585583
return func(*args, **kwargs)
586584

587585
return _wrapper

requirements/dev.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ libsass
2424
requests
2525
scriv
2626
twine
27-
28-
# Just so I have a debugger if I want it.
29-
pudb

requirements/dev.pip

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ jaraco-context==6.1.0 ; platform_machine != 'ppc64le' and platform_machine != 's
7979
# via keyring
8080
jaraco-functools==4.4.0 ; platform_machine != 'ppc64le' and platform_machine != 's390x'
8181
# via keyring
82-
jedi==0.19.2
83-
# via pudb
8482
jeepney==0.9.0 ; platform_machine != 'ppc64le' and platform_machine != 's390x' and sys_platform == 'linux'
8583
# via
8684
# keyring
@@ -110,13 +108,10 @@ nh3==0.3.2
110108
packaging==26.0
111109
# via
112110
# build
113-
# pudb
114111
# pyproject-api
115112
# pytest
116113
# tox
117114
# twine
118-
parso==0.8.5
119-
# via jedi
120115
pip==25.3
121116
# via -r requirements/pip.in
122117
platformdirs==4.5.1
@@ -128,14 +123,11 @@ pluggy==1.6.0
128123
# via
129124
# pytest
130125
# tox
131-
pudb==2025.1.5
132-
# via -r requirements/dev.in
133126
pycparser==3.0 ; implementation_name != 'PyPy' and platform_machine != 'ppc64le' and platform_machine != 's390x' and platform_python_implementation != 'PyPy' and sys_platform == 'linux'
134127
# via cffi
135128
pygments==2.19.2
136129
# via
137130
# -r requirements/pytest.in
138-
# pudb
139131
# pytest
140132
# readme-renderer
141133
# rich
@@ -200,29 +192,20 @@ tox-gh==1.6.1
200192
# via -r requirements/tox.in
201193
twine==6.2.0
202194
# via -r requirements/dev.in
203-
typing-extensions==4.15.0
195+
typing-extensions==4.15.0 ; python_full_version < '3.11'
204196
# via
205197
# astroid
206198
# cryptography
207199
# exceptiongroup
208-
# pudb
209200
# tox
210201
# virtualenv
211202
urllib3==2.6.3
212203
# via
213204
# requests
214205
# twine
215-
urwid==3.0.3
216-
# via
217-
# pudb
218-
# urwid-readline
219-
urwid-readline==0.15.1
220-
# via pudb
221206
virtualenv==20.36.1
222207
# via
223208
# -r requirements/pip.in
224209
# tox
225-
wcwidth==0.3.0
226-
# via urwid
227210
zipp==3.23.0 ; (python_full_version < '3.10.2' and platform_machine == 'ppc64le') or (python_full_version < '3.10.2' and platform_machine == 's390x') or (python_full_version < '3.12' and platform_machine != 'ppc64le' and platform_machine != 's390x')
228211
# via importlib-metadata

0 commit comments

Comments
 (0)