From: Daira Hopwood <daira@jacaranda.org>
Date: Fri, 21 Nov 2014 05:00:05 +0000 (+0000)
Subject: setup.py: look for a tag named after APPNAME, not necessarily "allmydata-tahoe".
X-Git-Url: https://git.rkrishnan.org/components/reliability?a=commitdiff_plain;h=04a2b3594f7b20fff9b860a7f3beadc76bbdebf4;p=tahoe-lafs%2Ftahoe-lafs.git

setup.py: look for a tag named after APPNAME, not necessarily "allmydata-tahoe".

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
---

diff --git a/setup.py b/setup.py
index 668b4418..09606eaf 100644
--- a/setup.py
+++ b/setup.py
@@ -362,7 +362,8 @@ class UpdateVersion(Command):
             print("Warning: no version information found. This may cause tests to fail.")
 
     def try_from_git(self):
-        versions = versions_from_git("allmydata-tahoe-")
+        # If we change APPNAME, the release tag names should also change from then on.
+        versions = versions_from_git(APPNAME + '-')
         if versions:
             version_info = {
                 "pkgname": self.distribution.get_name(),