summaryrefslogtreecommitdiff
path: root/bonafide/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-11-18 11:58:59 -0400
committerKali Kaneko <kali@leap.se>2015-11-18 12:00:36 -0400
commit74a293f5c26ee5a4ab1b254b326809ef8f87602f (patch)
tree83020ae52e588689504ee687bac213b0ef07c140 /bonafide/setup.py
parentf320408c385cd2dbe18672d91b563337a500c9b7 (diff)
[pkg] move to versioneer 0.15
Diffstat (limited to 'bonafide/setup.py')
-rw-r--r--bonafide/setup.py20
1 files changed, 5 insertions, 15 deletions
diff --git a/bonafide/setup.py b/bonafide/setup.py
index 828d82e..154ac7c 100644
--- a/bonafide/setup.py
+++ b/bonafide/setup.py
@@ -22,13 +22,7 @@ from setuptools import setup, find_packages
from pkg import utils
-# XXX TODO --- update to versioneer 0.15 ---------------------
-#import versioneer
-#versioneer.versionfile_source = 'src/leap/bonafide/_version.py'
-#versioneer.versionfile_build = 'leap/common/_version.py'
-#versioneer.tag_prefix = '' # tags are like 1.2.0
-#versioneer.parentdir_prefix = 'leap.bonafide-'
-# --------------------------------------------------------------
+import versioneer
parsed_reqs = utils.parse_requirements()
@@ -49,10 +43,7 @@ trove_classifiers = [
DOWNLOAD_BASE = ('https://github.com/leapcode/bonafide/'
'archive/%s.tar.gz')
-#_versions = versioneer.get_versions()
-#VERSION = _versions['version']
-VERSION = '0.0.1'
-#VERSION_FULL = _versions['full']
+VERSION = versioneer.get_version()
DOWNLOAD_URL = ""
# get the short version for the download url
@@ -60,9 +51,8 @@ DOWNLOAD_URL = ""
#if len(_version_short) > 0:
#VERSION_SHORT = _version_short[0]
#DOWNLOAD_URL = DOWNLOAD_BASE % VERSION_SHORT
-#
-#cmdclass = versioneer.get_cmdclass()
-# ----------------------------------------------------------------
+
+cmdclass = versioneer.get_cmdclass()
try:
long_description = open('README.rst').read() + '\n\n\n' + \
@@ -75,7 +65,7 @@ bonafide_cli = 'bonafide_cli=leap.bonafide.bonafide_cli:main'
setup(
name='leap.bonafide',
version=VERSION,
- #cmdclass=cmdclass,
+ cmdclass=cmdclass,
url='https://leap.se/',
#download_url=DOWNLOAD_URL,
license='GPLv3+',