diff mbox

[Branch,~linaro-validation/lava-dashboard/trunk] Rev 271: Use hint when reporting version using versiontools

Message ID 20111003122615.15457.88743.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Oct. 3, 2011, 12:26 p.m. UTC
------------------------------------------------------------
revno: 271
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: trunk
timestamp: Fri 2011-09-30 15:43:50 +0200
message:
  Use hint when reporting version using versiontools
  
  This allows versiontools to track down the place the code is stored and thus
  initialize vcs helpers correctly.
modified:
  dashboard_app/extension.py
  setup.py


--
lp:lava-dashboard
https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk

You are subscribed to branch lp:lava-dashboard.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'dashboard_app/extension.py'
--- dashboard_app/extension.py	2011-08-18 15:04:13 +0000
+++ dashboard_app/extension.py	2011-09-30 13:43:50 +0000
@@ -45,9 +45,9 @@ 
 
     @property
     def version(self):
-        from dashboard_app import __version__
+        import dashboard_app 
         import versiontools
-        return versiontools.format_version(__version__)
+        return versiontools.format_version(dashboard_app.__version__, hint=dashboard_app)
 
     @property
     def api_class(self):

=== modified file 'setup.py'
--- setup.py	2011-09-30 13:36:45 +0000
+++ setup.py	2011-09-30 13:43:50 +0000
@@ -58,10 +58,10 @@ 
         'linaro-json >= 2.0.1',  # TODO: use json-schema-validator
         'pygments >= 1.2',
         'south >= 0.7.3',
-        'versiontools >= 1.3.1',
+        'versiontools >= 1.8',
     ],
     setup_requires=[
-        'versiontools >= 1.3.1',
+        'versiontools >= 1.8',
     ],
     tests_require=[
         'django-testscenarios >= 0.7.1',