Browse files

Use 'better' versioning scheme

  • Loading branch information...
1 parent 8a763b2 commit 0ab4939f215f16115acc3c0a336660003bb20262 @dcramer committed May 1, 2011
Showing with 6 additions and 2 deletions.
  1. +5 −1 paging/__init__.py
  2. +1 −1 setup.py
View
6 paging/__init__.py
@@ -1 +1,5 @@
-__version__ = (0, 2, 4)
+try:
+ VERSION = __import__('pkg_resources') \
+ .get_distribution('django-sentry').version
+except Exception, e:
+ VERSION = 'unknown'
View
2 setup.py
@@ -9,7 +9,7 @@
setup(
name='django-paging',
- version=".".join(map(str, __import__('paging').__version__)),
+ version='0.2.4',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://github.com/dcramer/django-paging',

0 comments on commit 0ab4939

Please sign in to comment.