summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-13 03:22:31 +0900
committerkali <kali@leap.se>2012-09-13 03:40:55 +0900
commitea13e9a04786fbb6c461690097361e48e8ca94ce (patch)
tree34cc33a48b06fc0729daeda5b785f315ec42aee1 /setup.py
parent99058b9f6536a3717ab82a9d77b09d5489334eb5 (diff)
add versioneer
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/setup.py b/setup.py
index 47e28d53..256d5105 100755
--- a/setup.py
+++ b/setup.py
@@ -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',