aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiall Douglas (a [underscors] sourceforge {at} nedprod [dot] com) <spam@spamtrap.com>2012-02-24 14:35:04 -0500
committerW. Trevor King <wking@drexel.edu>2012-02-24 14:35:04 -0500
commitc6c42d0b1be2e22ce09163cd5533db8821455337 (patch)
treeef515db85f57c3c30f3fa1da1423363d8eb033e5
parentb2b120d0adbb9522509e366c37b7f8c983858f54 (diff)
downloadbugseverywhere-c6c42d0b1be2e22ce09163cd5533db8821455337.tar.gz
Cherrypick a better version string for setup.py from Niall Douglas.
WTK: This is a small part of Niall's commit 7f7a7738bcbcfd06a026f2985c1823a4ba5eb55b Author: Niall Douglas ... Date: Tue Feb 21 20:35:28 2012 +0000 Several hacks to make BE compatible with bbfreeze and therefore compilable into a self contained directory I cleaned up his string construction, which was originally version.version()+" ("+rev_date+")"
-rwxr-xr-xsetup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index b7fb839..bd45d08 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
from distutils.core import setup
import os.path
-from libbe import _version
+from libbe import _version, version
rev_id = _version.version_info["revision"]
rev_date = _version.version_info["date"]
@@ -16,7 +16,7 @@ if os.path.exists(man_path):
setup(
name='Bugs Everywhere',
- version=rev_date,
+ version='{} ({})'.format(version.version(), rev_date),
description='Bugtracker supporting distributed revision control',
url='http://bugseverywhere.org/',
packages=['libbe',