Skip updating empty dict over context
[django-pagination.git] / setup.py
index f1ce26d..a3acd63 100755 (executable)
--- a/setup.py
+++ b/setup.py
 from setuptools import setup, find_packages
 
 
 from setuptools import setup, find_packages
 
 
-version = "1.1"
-
-
 setup(
     name='linaro-django-pagination',
 setup(
     name='linaro-django-pagination',
-    version=version,
+    # Magic version handling with versiontools
+    version=":versiontools:linaro_django_pagination:__version__",
     author='Zygmunt Krynicki',
     author_email='zygmunt.krynicki@linaro.org',
     description="linaro-django-pagination",
     author='Zygmunt Krynicki',
     author_email='zygmunt.krynicki@linaro.org',
     description="linaro-django-pagination",
@@ -63,5 +61,8 @@ setup(
     tests_require=[
         'django-testproject >= 0.1',
     ],
     tests_require=[
         'django-testproject >= 0.1',
     ],
+    setup_requires=[
+        'versiontools >= 1.3.1'
+    ],
     include_package_data=True,
 )
     include_package_data=True,
 )