diff options
| author | 7c6f434c <7c6f434c@mail.ru> | 2022-10-22 12:01:58 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-22 12:01:58 +0000 |
| commit | 39dc530f39db6882e861e452381f34c2caf238b0 (patch) | |
| tree | 423aeaee6800b15687a8b3bffcb037fdb8395c9f /pkgs/development/python-modules/debugpy/hardcode-version.patch | |
| parent | 1e12026447c3c3272ee19d8bb8fb8dcaf75c4e8a (diff) | |
| parent | 6c484dbae7337e89ad07232c5e8cc2f65cc34b7e (diff) | |
Merge branch 'master' into libre-deps
Diffstat (limited to 'pkgs/development/python-modules/debugpy/hardcode-version.patch')
| -rw-r--r-- | pkgs/development/python-modules/debugpy/hardcode-version.patch | 32 |
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@" |
