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

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2014-11-21 05:00:05 +00:00
parent 2eeb8ee6f5
commit e1a3a2001f
1 changed files with 2 additions and 1 deletions

View File

@ -366,7 +366,8 @@ Warning: no version information found. This may cause tests to fail.
""") """)
def try_from_git(self): 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: if versions:
f = open(VERSION_PY_FILENAME, "wb") f = open(VERSION_PY_FILENAME, "wb")
f.write(GIT_VERSION_BODY % f.write(GIT_VERSION_BODY %