aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.py1
-rw-r--r--wkhtmltopdf/__init__.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 0300ef7..c7dcb7f 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
from setuptools import setup, find_packages
+from wkhtmltopdf import get_version
setup(
name = "django-wkhtmltopdf",
packages = find_packages(),
diff --git a/wkhtmltopdf/__init__.py b/wkhtmltopdf/__init__.py
index 16281fe..f6d2a9d 100644
--- a/wkhtmltopdf/__init__.py
+++ b/wkhtmltopdf/__init__.py
@@ -1 +1,4 @@
from .utils import *
+__version__ = (0, 1, 1)
+def get_version():
+ return '.'.join(map(str, __version__))