diff options
author | adityacp | 2016-10-03 12:44:22 +0530 |
---|---|---|
committer | adityacp | 2016-10-03 18:28:07 +0530 |
commit | 59fa975a9fd0f6728cf62b1069abecac95a77b68 (patch) | |
tree | 188f8aa284783e844eccffe350839d6a18f4da8b | |
parent | 5ab7ced762258805dde89661bdf187c46ab33049 (diff) | |
download | online_test-59fa975a9fd0f6728cf62b1069abecac95a77b68.tar.gz online_test-59fa975a9fd0f6728cf62b1069abecac95a77b68.tar.bz2 online_test-59fa975a9fd0f6728cf62b1069abecac95a77b68.zip |
change setup.py with py 3
-rw-r--r-- | .travis.yml | 3 | ||||
-rw-r--r-- | setup.py | 25 |
2 files changed, 19 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 4c2f8ab..c47785e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,8 +10,7 @@ env: # command to install dependencies install: - - if [[$TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -r requirements/requirements-py2.txt; fi - - if [[$TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install -r requirements/requirements-py3.txt; fi + - pip install git+https://github.com/FOSSEE/online_test.git#egg=yaksh-0.1 - pip install -q Django==$DJANGO before_install: @@ -1,11 +1,28 @@ import os from setuptools import setup, find_packages +import sys 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))) +install_requires=[ + 'django==1.9.5', + 'django-taggit==0.18.1', + 'pytz==2016.4', + 'python-social-auth==0.2.19', + 'tornado', +] +if sys.version_info[:2] == (2, 7): + install_requires+=[ + 'mysql-python==1.2.5' +] +if sys.version_info[0] >= 3: + install_requires+=[ + 'mysqlclient==1.3.9' +] + setup( name='yaksh', author='Python Team at FOSSEE, IIT Bombay', @@ -22,13 +39,7 @@ setup( }, description='A django app to conduct online tests.', long_description=README, - install_requires=[ - 'django==1.9.5', - 'mysql-python==1.2.5', - 'django-taggit==0.18.1', - 'pytz==2016.4', - 'python-social-auth==0.2.19' - ], + install_requires=install_requires, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', |