summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index b675675..59700e5 100644
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,12 @@ setup file for leap.common
"""
from setuptools import setup, find_packages
+import versioneer
+versioneer.versionfile_source = 'src/leap/common/_version.py'
+versioneer.versionfile_build = 'leap/common/_version.py'
+versioneer.tag_prefix = '' # tags are like 1.2.0
+versioneer.parentdir_prefix = 'leap.common-'
+
# XXX parse pkg/requirements.pip
requirements = [
"jsonschema",
@@ -54,9 +60,8 @@ trove_classifiers = [
setup(
name='leap.common',
- # If you change version, do it also in
- # src/leap/common/__init__.py
- version='0.3.0',
+ version=versioneer.get_version(),
+ cmdclass=versioneer.get_cmdclass(),
url='https://leap.se/',
license='GPLv3+',
author='The LEAP Encryption Access Project',