Created
December 18, 2015 14:16
-
-
Save Paulius-Maruska/b036ea8bf9f3884d14b3 to your computer and use it in GitHub Desktop.
Install all major python versions for testing packages
This file contains hidden or 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
#!/bin/bash | |
__pyenv_install_version(){ | |
local ver=$1 | |
local venv=$2 | |
pyenv install -s $ver | |
pyenv virtualenv $ver $venv | |
} | |
echo Installing... | |
__pyenv_install_version 2.6.9 py26 | |
__pyenv_install_version 2.7.6 py27 | |
# __pyenv_install_version 2.7.11 py27 | |
__pyenv_install_version 3.3.6 py33 | |
__pyenv_install_version 3.4.3 py34 | |
__pyenv_install_version 3.5.1 py35 | |
#__pyenv_install_version 3.6-dev py36 | |
__pyenv_install_version pypy-4.0.1 pypy | |
#__pyenv_install_version pypy3-2.4.0 pypy | |
echo Rehashing... | |
pyenv rehash | |
echo Setting up locals in $HOME... | |
( cd $HOME && pyenv local py35 py34 py33 py27 py26 pypy ) | |
echo Done! |
This file contains hidden or 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
[tox] | |
envlist=py26,py27,py33,py34,py35,pypy | |
skipsdist = True | |
[testenv] | |
basepython = | |
py26: python2.6 | |
py27: python2.7 | |
py33: python3.3 | |
py34: python3.4 | |
py35: python3.5 | |
pypy: pypy | |
commands={envpython} -c "import sys; print(sys.version)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment