summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/hardcode-version.patch
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2023-02-11 14:03:56 +0100
committerGitHub <noreply@github.com>2023-02-11 14:03:56 +0100
commit86a387351acf96b7137f5f385d978bf3681c7239 (patch)
tree893ce1c726bda9df7ec2e3d1649ba811563570ab /pkgs/development/python-modules/debugpy/hardcode-version.patch
parent5d012c4bb21fa9bee9f34339f95ef8fffa052d56 (diff)
parentd8d4f25cd2ba0af3a7d35ebce9e05d1eb58b03f4 (diff)
Merge branch 'master' into nixos/hostapd
Diffstat (limited to 'pkgs/development/python-modules/debugpy/hardcode-version.patch')
-rw-r--r--pkgs/development/python-modules/debugpy/hardcode-version.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/debugpy/hardcode-version.patch b/pkgs/development/python-modules/debugpy/hardcode-version.patch
new file mode 100644
index 000000000000..440513e26c1c
--- /dev/null
+++ b/pkgs/development/python-modules/debugpy/hardcode-version.patch
@@ -0,0 +1,47 @@
+diff --git a/setup.py b/setup.py
+index 5fc40070..775a08ec 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]
+
+@@ -141,13 +140,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 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
+-
+
+ # 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):
+ """
+
+
+-__version__: str = _version.get_versions()["version"]
++__version__: str = "@version@"