From ab3428ec38e04a68c772e4eac82f31c1fbfaf444 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 12 Jun 2014 17:55:09 +0300 Subject: [PATCH] Use TRAVIS_PYTHON_VERSION to install aiohttp on Python 3. --- .travis.yml | 2 +- check_py3k.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 check_py3k.py diff --git a/.travis.yml b/.travis.yml index a9fde9aa..6c2324ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ python: install: - "pip install -r requirements_dev.txt" - "python setup.py install" - - python check_py3k.py && pip install aiohttp || true + - if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then pip install aiohttp; fi script: py.test -x tests/ branches: only: diff --git a/check_py3k.py b/check_py3k.py deleted file mode 100644 index 17a9af99..00000000 --- a/check_py3k.py +++ /dev/null @@ -1,6 +0,0 @@ -import sys - -if sys.version_info[0] < 3: - sys.exit(1) -else: - sys.exit(0)