aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:49 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:49 -0700
commit29425a36c920e9b54e5860429ef3e3ce639fb155 (patch)
treeedea6a643fec30f40ca1a05be55ae401fcc344de /setup.py
parent99fde585a39d7867d2c2257b74a7cc441bc9f2a5 (diff)
downloadpython-django-tagging-29425a36c920e9b54e5860429ef3e3ce639fb155.tar
python-django-tagging-29425a36c920e9b54e5860429ef3e3ce639fb155.tar.gz
Imported Upstream version 0.3.1upstream/0.3.1
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index a755df8..0670dfe 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,10 @@ import os
from distutils.command.install import INSTALL_SCHEMES
from distutils.core import setup
+import tagging
+
+
+
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
@@ -45,16 +49,10 @@ for dirpath, dirnames, filenames in os.walk(tagging_dir):
elif filenames:
data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
-# Dynamically calculate the version based on tagging.VERSION
-version_tuple = (0, 3, None)
-if version_tuple[2] is not None:
- version = "%d.%d_%s" % version_tuple
-else:
- version = "%d.%d" % version_tuple[:2]
setup(
name = 'django-tagging',
- version = version,
+ version = tagging.get_version(),
description = 'Generic tagging application for Django',
author = 'Jonathan Buchanan',
author_email = 'jonathan.buchanan@gmail.com',