diff mbox

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

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

Commit Message

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


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

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

Patch

=== modified file 'setup.py'
--- setup.py	2011-06-17 13:26:55 +0000
+++ setup.py	2011-06-23 10:20:54 +0000
@@ -19,20 +19,11 @@ 
 # along with lava-tool.  If not, see <http://www.gnu.org/licenses/>.
 
 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_tool
 
 
 setup(
     name='lava-tool',
-    version=versiontools.format_version(lava_tool.__version__),
+    version=":versiontools:lava_tool:__version__",
     author="Zygmunt Krynicki",
     author_email="zygmunt.krynicki@linaro.org",
     packages=find_packages(),
@@ -60,7 +51,7 @@ 
         'argparse >= 1.1',
         'keyring'],
     setup_requires=[
-        'versiontools >= 1.1'],
+        'versiontools >= 1.3.1'],
     tests_require=[
         'mocker >= 1.0'],
     zip_safe=True)