Make sure of versiontools for version handling.
This commit is contained in:
@@ -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)
|
||||
|
5
setup.py
5
setup.py
@@ -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',
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user