blob: cd0d046e502e0bdebb2ebbade4771649e722e8c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/bash -e
# we want wheel support when possible
pip install "pip>=8.1"
if [ -n "$DJANGO" ]; then
if [[ "$DJANGO" == "dev" ]]; then
pip install -e git+git://github.com/django/django.git#egg=Django
else
pip install "Django==$DJANGO"
fi
fi
if [ -n "$FLASK" ]; then
pip install "Flask==$FLASK"
fi
if [ -n "$CELERY" ]; then
pip install "celery==$CELERY"
fi
make bootstrap
if [[ ${TRAVIS_PYTHON_VERSION::1} == '2' ]]; then
pip install gevent
fi
# if [[ ${TRAVIS_PYTHON_VERSION} == '3.2' ]]; then
# pip install -I https://github.com/celery/celery/archive/3.0.zip
# fi
DJANGO_BITS=(${DJANGO//./ })
if [[ ${DJANGO_BITS[0]} -eq 1 && ${DJANGO_BITS[1]} -lt 8 ]]; then
# django-celery has fickle dependencies as its deprecated
pip install "django-celery>=3.1" "celery>=3.1,<4"
# newer versions of pytest-django dont support older versions of django
pip install "pytest-django<3.0"
elif [ -n "$DJANGO" ]; then
pip install "pytest-django>=3.0,<3.1"
fi
if [[ ${DJANGO_BITS[0]} -eq 1 && ${DJANGO_BITS[1]} -lt 10 && ${DJANGO_BITS[1]} -gt 7 ]]; then
pip install "django-tastypie==0.13.3"
fi
|