diff options
author | kali <kali@leap.se> | 2012-09-13 04:59:08 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-13 04:59:08 +0900 |
commit | 157dbbd6dba18a0b10ba045eab9b1cfca8d579c6 (patch) | |
tree | 06fcac9f0c4d059899e0842c4226720ea3f5106b /setup.py | |
parent | 99058b9f6536a3717ab82a9d77b09d5489334eb5 (diff) | |
parent | ffa95a22b2073f75d51af32232e150bf36395f31 (diff) |
Merge branch 'feature/client-versioning' into develop
Close #533. Using versioneer for fetching version from git info and tags
in a setup friendly way. Added info to logs and small about dialog.
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', |