File: hard-code-version-to-avoid-git-call.patch

package info (click to toggle)
pylint-gitlab 2.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 200 kB
  • sloc: python: 302; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 448 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: hard code version to avoid git call
 In setup.py, the version is set by calling git.  This replaces that
 call with the environment variable from dpkg.
Forwarded: not-needed
--- a/setup.py
+++ b/setup.py
@@ -75,7 +75,7 @@
 
 setuptools.setup(
     name="pylint-gitlab",
-    version=version(),
+    version=os.getenv("UPSTREAM_VERSION"),
     author="Stephan Müller",
     author_email="mail@stephanmueller.eu",
     license='GPLv3',