-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[issue_415] Add support for python 3
- Loading branch information
Showing
28 changed files
with
190 additions
and
127 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,20 +1,22 @@ | ||
build: false | ||
|
||
environment: | ||
PYTHON: "C:\\Python27" | ||
TOXENV: "py27" | ||
matrix: | ||
- PYTHON: "C:\\Python27" | ||
PYTHON_VERSION: "2.7" | ||
TOXENV: "py27" | ||
- PYTHON: "C:\\Python36" | ||
PYTHON_VERSION: "3.6" | ||
TOXENV: "py36" | ||
|
||
init: | ||
- ECHO %PYTHON% | ||
- ECHO %TOXENV% | ||
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH% | ||
- ECHO %PYTHON% | ||
- ECHO %TOXENV% | ||
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH% | ||
|
||
install: | ||
- python -m pip install --upgrade pip | ||
# Latest tox 2.3.x is currently busted: | ||
# https://bitbucket.org/hpk42/tox/issues/314/tox-command-busted-on-windows | ||
- pip install tox==2.2.0 | ||
|
||
- python -m pip install --upgrade pip | ||
- pip install tox==3.7.0 | ||
|
||
test_script: | ||
- tox | ||
- tox |
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,6 +1,8 @@ | ||
.idea/ | ||
.cache/ | ||
.tox/ | ||
*.egg-info | ||
*.pyc | ||
.coverage | ||
build | ||
dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
ci_requirements="pip setuptools tox virtualenv" | ||
|
||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
if [[ ${TOXENV} == *"py27"* ]]; then | ||
# install pip on the system python | ||
curl -O https://bootstrap.pypa.io/get-pip.py | ||
python get-pip.py --user | ||
python -m pip install --user virtualenv | ||
python -m virtualenv .venv/ | ||
elif [[ ${TOXENV} == *"py3"* ]]; then | ||
# install current python3 with homebrew | ||
# NOTE: the formula is now named just "python" | ||
brew install python | ||
command -v python3 | ||
python3 --version | ||
python3 -m pip install virtualenv | ||
python3 -m virtualenv .venv/ | ||
else | ||
echo "unsupported $TOXENV: "${TOXENV} | ||
exit 1 | ||
fi | ||
source .venv/bin/activate | ||
fi | ||
|
||
python -m pip install $ci_requirements |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
if [ "$TRAVIS_OS_NAME" == "osx" ]; then | ||
source .venv/bin/activate | ||
fi | ||
|
||
tox |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
mozinfo >= 0.9 | ||
mozinfo >= 1.0.0 | ||
progressbar2 >= 3.34.3 | ||
redo==2.0.2 | ||
requests >= 2.9.1, <3.0.0 | ||
treeherder-client==5.0.0 | ||
requests >= 2.21.0, <3.0.0 | ||
treeherder-client >= 5.0.0, <6.0.0 | ||
packaging == 19.0 |
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
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
Oops, something went wrong.