2020-11-21 19:51:51 +00:00
|
|
|
diff --git a/setup.py b/setup.py
|
2022-08-12 12:06:08 +00:00
|
|
|
index 5fc40070..775a08ec 100644
|
2020-11-21 19:51:51 +00:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2021-09-18 10:52:07 +00:00
|
|
|
@@ -12,7 +12,6 @@ import sys
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
-import versioneer # noqa
|
|
|
|
|
|
|
|
del sys.path[0]
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
@@ -141,13 +140,13 @@ if __name__ == "__main__":
|
|
|
|
if platforms is not None:
|
|
|
|
extras["platforms"] = platforms
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
- cmds = versioneer.get_cmdclass()
|
|
|
|
+ cmds = {}
|
2021-09-18 10:52:07 +00:00
|
|
|
override_build(cmds)
|
|
|
|
override_build_py(cmds)
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
setuptools.setup(
|
2020-11-21 19:51:51 +00:00
|
|
|
name="debugpy",
|
|
|
|
- version=versioneer.get_version(),
|
|
|
|
+ version="@version@",
|
|
|
|
description="An implementation of the Debug Adapter Protocol for Python", # noqa
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
2022-08-12 12:06:08 +00:00
|
|
|
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
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
-from debugpy import _version
|
2022-08-12 12:06:08 +00:00
|
|
|
-
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
# 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):
|
|
|
|
"""
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
-__version__: str = _version.get_versions()["version"]
|
|
|
|
+__version__: str = "@version@"
|