diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 181: Be pip friendly

Message ID 20110623100413.17763.65379.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki June 23, 2011, 10:04 a.m. UTC
------------------------------------------------------------
revno: 181
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: trunk
timestamp: Thu 2011-06-23 12:02:11 +0200
message:
  Be pip friendly
modified:
  setup.py


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

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

Patch

=== modified file 'setup.py'
--- setup.py	2011-06-13 10:25:42 +0000
+++ setup.py	2011-06-23 10:02:11 +0000
@@ -20,20 +20,10 @@ 
 
 from setuptools import setup, find_packages
 
-try:
-    import versiontools
-except ImportError:
-    print "This package requires python-versiontools to be configured"
-    print "See: http://packages.python.org/versiontools/installation.html"
-    raise
-
-
-import lava_server
-
 
 setup(
     name='lava-server',
-    version=versiontools.format_version(lava_server.__version__),
+    version=":versiontools:lava_server:__version__",
     author="Zygmunt Krynicki",
     author_email="zygmunt.krynicki@linaro.org",
     packages=find_packages(),
@@ -70,7 +60,7 @@ 
         'docutils',
     ],
     setup_requires=[
-        'versiontools >= 1.1',
+        'versiontools >= 1.3.1',
     ],
     tests_require=[
         'django-testscenarios >= 0.6',