Permalink
Browse files

Moved version to reversion/version.py

  • Loading branch information...
1 parent e5f15c4 commit f00dd2c6f262bd5d6f89fcd2c50cb4d622b7cbfb @silent1mezzo committed May 9, 2012
Showing with 7 additions and 3 deletions.
  1. +4 −2 setup.py
  2. +2 −1 src/reversion/__init__.py
  3. +1 −0 src/reversion/version.py
View
@@ -1,4 +1,7 @@
+import sys
+sys.path.append('src/reversion')
from distutils.core import setup
+from version import __version__
# Load in babel support, if available.
@@ -11,9 +14,8 @@
except ImportError:
cmdclass = {}
-
setup(name="django-reversion",
- version="1.6.0",
+ version='.'.join(str(x) for x in __version__),
license=open("LICENSE").read(),
description="An extension to the Django web framework that provides comprehensive version control facilities",
long_description=open("README.markdown").read(),
@@ -11,9 +11,10 @@
from reversion.revisions import default_revision_manager, revision_context_manager, VersionAdapter
from reversion.admin import VersionAdmin
from reversion.models import pre_revision_commit, post_revision_commit
+from reversion.version import __version__
-VERSION = (1, 6, 0)
+VERSION = __version__
SUPPORTED_DJANGO_VERSIONS = (
(1, 4, 0),
View
@@ -0,0 +1 @@
+__version__ = (1, 6, 0)

0 comments on commit f00dd2c

Please sign in to comment.