summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2017-03-15 17:13:39 +0530
committerankitjavalkar2017-03-15 18:10:33 +0530
commitb700cda46551c06c1af7f3efa96eb3a2641c2b57 (patch)
treec0abf5556f1a22b1af9384587e4d46f47fdc48c2
parentce7238aef6d5080d8f7ea79b96c9569bf191f0b8 (diff)
downloadonline_test-b700cda46551c06c1af7f3efa96eb3a2641c2b57.tar.gz
online_test-b700cda46551c06c1af7f3efa96eb3a2641c2b57.tar.bz2
online_test-b700cda46551c06c1af7f3efa96eb3a2641c2b57.zip
Add version to online_test/__init__.py
-rw-r--r--online_test/__init__.py1
-rw-r--r--setup.py9
2 files changed, 9 insertions, 1 deletions
diff --git a/online_test/__init__.py b/online_test/__init__.py
index e69de29..ef0b380 100644
--- a/online_test/__init__.py
+++ b/online_test/__init__.py
@@ -0,0 +1 @@
+__version__ = '0.1.3' \ No newline at end of file
diff --git a/setup.py b/setup.py
index 37ed948..c5dd77a 100644
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,13 @@ README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
+def get_version():
+ import os
+ data = {}
+ fname = os.path.join('online_test', '__init__.py')
+ exec(compile(open(fname).read(), fname, 'exec'), data)
+ return data.get('__version__')
+
install_requires = [
'django==1.9.5',
'django-taggit==0.18.1',
@@ -18,7 +25,7 @@ setup(
name='yaksh',
author='Python Team at FOSSEE, IIT Bombay',
author_email='python@fossee.in',
- version='0.1.3',
+ version=get_version(),
packages=find_packages(),
include_package_data=True,
url='https://pypi.python.org/pypi/yaksh/',