From 29425a36c920e9b54e5860429ef3e3ce639fb155 Mon Sep 17 00:00:00 2001 From: SVN-Git Migration Date: Thu, 8 Oct 2015 11:51:49 -0700 Subject: Imported Upstream version 0.3.1 --- setup.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'setup.py') 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', -- cgit v1.2.3