Make sure of versiontools for version handling.

This commit is contained in:
Jannis Leidel
2011-08-25 17:53:01 +02:00
parent c16e6a8df2
commit 9e5a17d90e
2 changed files with 6 additions and 17 deletions

View File

@@ -1,16 +1,2 @@
VERSION = (0, 9, 2, "f", 0) # following PEP 386
DEV_N = None
def get_version():
version = "%s.%s" % (VERSION[0], VERSION[1])
if VERSION[2]:
version = "%s.%s" % (version, VERSION[2])
if VERSION[3] != "f":
version = "%s%s%s" % (version, VERSION[3], VERSION[4])
if DEV_N:
version = "%s.dev%s" % (version, DEV_N)
return version
__version__ = get_version()
# following PEP 386, versiontools will pick it up
__version__ = (1, 0, 0, "alpha", 1)

View File

@@ -102,7 +102,7 @@ VERSION = __import__("compressor").__version__
setup(
name = "django_compressor",
version = VERSION,
version = ":versiontools:compressor:",
url = 'http://django_compressor.readthedocs.org/',
license = 'BSD',
description = "Compresses linked and inline JavaScript or CSS into single cached files.",
@@ -124,4 +124,7 @@ setup(
install_requires=[
'django-appconf >= 0.4',
],
setup_requires=[
'versiontools >= 1.6',
],
)