summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/hardcode-version.patch
diff options
context:
space:
mode:
authorKira Bruneau <kira.bruneau@pm.me>2021-12-01 01:19:12 -0500
committerKira Bruneau <kira.bruneau@pm.me>2022-07-16 20:47:38 -0400
commit8d750db596eb3e9601ac5734febe2b7d19300c3a (patch)
treee76bb6b52092dbb5dda2bcc1cba3fb3ac80b6567 /pkgs/development/python-modules/debugpy/hardcode-version.patch
parent512d30b8a07d335203df533912b2b12629c6f50e (diff)
python3Packages.debugpy: 1.6.0 → 1.6.2
Diffstat (limited to 'pkgs/development/python-modules/debugpy/hardcode-version.patch')
-rw-r--r--pkgs/development/python-modules/debugpy/hardcode-version.patch32
1 files changed, 15 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/debugpy/hardcode-version.patch b/pkgs/development/python-modules/debugpy/hardcode-version.patch
index 7d3fd5abfc2d..440513e26c1c 100644
--- a/pkgs/development/python-modules/debugpy/hardcode-version.patch
+++ b/pkgs/development/python-modules/debugpy/hardcode-version.patch
@@ -1,5 +1,5 @@
diff --git a/setup.py b/setup.py
-index e7487100..10d36520 100644
+index 5fc40070..775a08ec 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ import sys
@@ -26,24 +26,22 @@ index e7487100..10d36520 100644
description="An implementation of the Debug Adapter Protocol for Python", # noqa
long_description=long_description,
long_description_content_type="text/markdown",
-diff --git a/src/debugpy/__init__.py b/src/debugpy/__init__.py
-index baa5a7c5..53553272 100644
---- a/src/debugpy/__init__.py
-+++ b/src/debugpy/__init__.py
-@@ -27,7 +27,6 @@ __all__ = [
- import codecs
- import os
+diff --git a/src/debugpy/public_api.py b/src/debugpy/public_api.py
+index 3c800898..27743245 100644
+--- a/src/debugpy/public_api.py
++++ b/src/debugpy/public_api.py
+@@ -7,8 +7,6 @@ from __future__ import annotations
+ import functools
+ import typing
-from debugpy import _version
- from debugpy.common import compat
+-
+ # Expose debugpy.server API from subpackage, but do not actually import it unless
+ # and until a member is invoked - we don't want the server package loaded in the
+@@ -182,4 +180,4 @@ def trace_this_thread(__should_trace: bool):
+ """
-@@ -204,7 +203,7 @@ def trace_this_thread(should_trace):
- return api.trace_this_thread(should_trace)
-
--__version__ = _version.get_versions()["version"]
-+__version__ = "@version@"
-
- # Force absolute path on Python 2.
- __file__ = os.path.abspath(__file__)
+-__version__: str = _version.get_versions()["version"]
++__version__: str = "@version@"