diff options
author | kali <kali@leap.se> | 2012-09-13 03:22:31 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-13 03:40:55 +0900 |
commit | ea13e9a04786fbb6c461690097361e48e8ca94ce (patch) | |
tree | 34cc33a48b06fc0729daeda5b785f315ec42aee1 /setup.py | |
parent | 99058b9f6536a3717ab82a9d77b09d5489334eb5 (diff) |
add versioneer
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +from __future__ import print_function import sys try: @@ -12,7 +12,11 @@ except ImportError: import os from pkg import utils -from pkg import version +import versioneer +versioneer.versionfile_source = 'src/leap/_version.py' +versioneer.versionfile_build = 'leap/_version.py' +versioneer.tag_prefix = '' # tags are like 1.2.0 +versioneer.parentdir_prefix = 'leap_client-' setup_root = os.path.dirname(__file__) sys.path.insert(0, os.path.join(setup_root, "src")) @@ -33,16 +37,11 @@ trove_classifiers = [ "Topic :: Utilities" ] -try: - version = version.get_git_version() -except ValueError: - # workaround since that needs a tag. - version = "0.1.0" - setup( name='leap-client', package_dir={"": "src"}, - version=version, + version=versioneer.get_version(), + cmdclass=versioneer.get_cmdclass(), description="the internet encryption toolkit", long_description=( "Desktop Client for the LEAP Platform." @@ -64,7 +63,7 @@ setup( keywords='leap, client, qt, encryption, proxy', author='The LEAP project', author_email='info@leap.se', - url='http://leap.se', + url='https://leap.se', license='GPL', packages=find_packages( 'src', |