about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/debugpy/hardcode-version.patch
blob: 9fa42a0605f83ff846bedf0c0c5aadec34dc335b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
diff --git a/setup.py b/setup.py
index 1bfba237..414bb4d5 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ import sys
 
 
 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
-import versioneer  # noqa
 
 del sys.path[0]
 
@@ -145,13 +144,13 @@ if __name__ == "__main__":
     if platforms is not None:
         extras["platforms"] = platforms
 
-    cmds = versioneer.get_cmdclass()
+    cmds = {}
     override_build(cmds)
     override_build_py(cmds)
 
     setuptools.setup(
         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",
diff --git a/src/debugpy/public_api.py b/src/debugpy/public_api.py
index 9d0f705a..ee0b26ca 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
-
 
 # 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
@@ -191,4 +189,4 @@ def trace_this_thread(__should_trace: bool):
     """
 
 
-__version__: str = _version.get_versions()["version"]
+__version__: str = "@version@"