File: pypi-version.patch

package info (click to toggle)
debugpy 1.6.6%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,264 kB
  • sloc: python: 13,833; sh: 244; makefile: 25
file content (33 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download
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
Description: Install released _version.py from PyPI
 The Debian package uses the GitHub sources, as these include package tests.
 This patch installs the PyPI version of _version.py (also generated by
 versioneer.py, and converted to UNIX line endings) in place of the
 git-aware _version.py in the GitHub version.
Forwarded: not-needed
Author: Julian Gilbey <jdg@debian.org>
Last-Update: 2022-07-31

--- /dev/null
+++ b/src/debugpy/_version.py
@@ -0,0 +1,21 @@
+
+# This file was generated by 'versioneer.py' (0.18) from
+# revision-control system data, or from the parent directory name of an
+# unpacked source archive. Distribution tarballs contain a pre-generated copy
+# of this file.
+
+import json
+
+version_json = '''
+{
+ "date": "2022-11-03T14:08:10-0300",
+ "dirty": false,
+ "error": null,
+ "full-revisionid": "a2a33283889c989bb840202411bb5e5aae013709",
+ "version": "1.6.3+git20221103.a2a3328"
+}
+'''  # END VERSION_JSON
+
+
+def get_versions():
+    return json.loads(version_json)