-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Drop official support for Python 2.7 (#383)
Retain backwards compatibility using the python_requires flag.
- Loading branch information
1 parent
7458787
commit 5888518
Showing
3 changed files
with
12 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
language: python | ||
python: | ||
- '2.7' | ||
- '3.5' | ||
- '3.6' | ||
- '3.7-dev' | ||
- '3.8-dev' | ||
- '3.7' | ||
- '3.8' | ||
before_install: | ||
- PYTHON_MAJOR_VERSION=`echo $TRAVIS_PYTHON_VERSION | head -c 1` | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then sudo apt-get install python3-pip; fi | ||
- sudo apt-get install python3-pip | ||
- mkdir -p ~/.cloudvolume/secrets/ | ||
- echo $AWS_SECRET > ~/.cloudvolume/secrets/aws-secret.json | ||
- echo $GOOGLE_SECRET > ~/.cloudvolume/secrets/google-secret.json | ||
- echo $BOSS_SECRET > ~/.cloudvolume/secrets/boss-secret.json | ||
install: | ||
- if [[ $PYTHON_MAJOR_VERSION == 2 ]]; then virtualenv venv; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then virtualenv -p python3 venv; fi | ||
- virtualenv -p python3 venv | ||
- source venv/bin/activate | ||
- if [[ $PYTHON_MAJOR_VERSION == 2 ]]; then pip install numpy; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then pip3 install numpy; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 2 ]]; then pip install fpzip; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then pip3 install fpzip; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 2 ]]; then pip install -e .[test,dask]; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then pip3 install -e .[test,dask]; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 2 ]]; then python setup.py sdist; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then python3 setup.py sdist bdist_wheel --universal; fi | ||
- pip3 install numpy | ||
- pip3 install fpzip | ||
- pip3 install -e .[test,dask] | ||
- python3 setup.py sdist bdist_wheel --universal | ||
script: | ||
- if [[ $PYTHON_MAJOR_VERSION == 2 ]]; then python -m pytest -v -x test --cov=./; fi | ||
- if [[ $PYTHON_MAJOR_VERSION == 3 ]]; then python3 -m pytest -v -x test --cov=./; fi | ||
- python3 -m pytest -v -x test --cov=./ | ||
after_success: | ||
- codecov --token=$CODECOV_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters