Cherrypick a better version string for setup.py from Niall Douglas.
authorNiall Douglas (a [underscors] sourceforge {at} nedprod [dot] com) <spam@spamtrap.com>
Fri, 24 Feb 2012 19:35:04 +0000 (14:35 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 24 Feb 2012 19:35:04 +0000 (14:35 -0500)
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+")"

setup.py

index b7fb8396f6b0c2493358af44f663c8b52f1d5ef5..bd45d082079e8ab3ab4f6577d57f57094f6f6faf 100755 (executable)
--- 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',