From 329952410d9d4a225aab0aa752dd054ec5383a89 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 23 Mar 2013 15:17:15 +0100 Subject: [PATCH] Use __version__ from the lib --- svtplay-dl => bin/svtplay-dl | 0 setup.py | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) rename svtplay-dl => bin/svtplay-dl (100%) diff --git a/svtplay-dl b/bin/svtplay-dl similarity index 100% rename from svtplay-dl rename to bin/svtplay-dl diff --git a/setup.py b/setup.py index 4242157..10932bf 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,20 @@ #!/usr/bin/env python from setuptools import setup, find_packages import sys +import os + +srcdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib/") +sys.path.insert(0, srcdir) +import svtplay_dl setup( name = "svtplay-dl", - version = "0.9.2013.03.06", # FIXME - extract from svtplay-dl + version = svtplay_dl.__version__, packages = find_packages( 'lib', exclude=["tests", "*.tests", "*.tests.*"]), package_dir = {'': 'lib'}, - scripts = ['svtplay-dl'], + scripts = ['bin/svtplay-dl'], author = "Johan Andersson", author_email = "j@i19.se",