terragrunt: 0.72.2 -> 0.72.6 (#378621)
[NixPkgs.git] / pkgs / development / python-modules / debugpy / hardcode-version.patch
blob00e77bd75b94540ee8af6fb17aa6f0087930e123
1 diff --git a/setup.py b/setup.py
2 index d16a27c5..a7e407e1 100644
3 --- a/setup.py
4 +++ b/setup.py
5 @@ -12,7 +12,6 @@ import sys
8 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
9 -import versioneer # noqa
11 del sys.path[0]
13 @@ -145,13 +144,13 @@ if __name__ == "__main__":
14 if platforms is not None:
15 extras["platforms"] = platforms
17 - cmds = versioneer.get_cmdclass()
18 + cmds = {}
19 override_build(cmds)
20 override_build_py(cmds)
22 setuptools.setup(
23 name="debugpy",
24 - version=versioneer.get_version(),
25 + version="@version@",
26 description="An implementation of the Debug Adapter Protocol for Python", # noqa
27 long_description=long_description,
28 long_description_content_type="text/markdown",
29 diff --git a/src/debugpy/public_api.py b/src/debugpy/public_api.py
30 index c61a2607..f26f8272 100644
31 --- a/src/debugpy/public_api.py
32 +++ b/src/debugpy/public_api.py
33 @@ -7,8 +7,6 @@ from __future__ import annotations
34 import functools
35 import typing
37 -from debugpy import _version
40 # Expose debugpy.server API from subpackage, but do not actually import it unless
41 # and until a member is invoked - we don't want the server package loaded in the
42 @@ -192,4 +190,4 @@ def trace_this_thread(__should_trace: bool):
43 """
46 -__version__: str = _version.get_versions()["version"]
47 +__version__: str = "@version@"