Browse files

Add __version__ and use.

  • Loading branch information...
1 parent 0f56b2c commit b0793abe8f3b10c725700e6333eb572fd68691eb James Socol committed Aug 17, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 ratelimit/__init__.py
  2. +2 −2 setup.py
View
1 ratelimit/__init__.py
@@ -1 +1,2 @@
VERSION = (0, 1)
+__version__ = '.'.join(map(str, VERSION))
View
4 setup.py
@@ -1,10 +1,10 @@
from setuptools import setup, find_packages
-from ratelimit import VERSION
+from ratelimit import __version__
setup(
name='django-ratelimit',
- version='.'.join(map(str, VERSION)),
+ version=__version__,
description='Cache-based rate-limiting for Django.',
long_description=open('README.rst').read(),
author='James Socol',

0 comments on commit b0793ab

Please sign in to comment.