Skip to content

Commit a33735f

Browse files
committed
support python 3.4 testing
python 3.4 is not supported by any 1.4 release of mysqlclient. Pip is installing the 1.4.4 version even when run from python 3.4. Check version and install 1.3.14 on python 3.4 but newest one on all other versions.
1 parent 3142ed4 commit a33735f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ before_install:
8484
- cd $TRAVIS_BUILD_DIR
8585

8686
install:
87-
- pip install mysqlclient
87+
- [[ $TRAVIS_PYTHON_VERSION == "3.4"* ]] && pip install mysqlclient==1.3.14
88+
- [[ $TRAVIS_PYTHON_VERSION != "3.4"* ]] && pip install mysqlclient
8889
- pip install psycopg2
8990
- pip install gpg pytz whoosh pyjwt
9091
- pip install pytest-cov codecov

0 commit comments

Comments
 (0)