From: 
Subject: Debian changes

The Debian packaging of python-rflink is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-rflink
    % cd python-rflink
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-rflink`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/setup.py b/setup.py
index 9a62877..ab13a91 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
 
 import sys
 from codecs import open
-from os import path
+from os import environ, path
 from subprocess import check_output
 
 from setuptools import find_packages, setup
@@ -17,16 +17,16 @@ with open(path.join(here, "README.rst"), encoding="utf-8") as f:
     long_description = f.read()
 
 
-def version_from_git():
-    """Acquire package version form current git tag."""
-    return check_output(
-        ["git", "describe", "--tags", "--abbrev=0"], universal_newlines=True
+def get_version():
+    """Use the supplied release version or the current Git tag."""
+    return environ.get("RFLINK_VERSION") or check_output(
+        ["git", "describe", "--tags", "--abbrev=0"], text=True
     ).strip()
 
 
 setup(
     name="rflink",
-    version=version_from_git(),
+    version=get_version(),
     description=__doc__,
     long_description=long_description,
     # The project's main homepage.
