Skip to content

Commit 1b2d196

Browse files
committed
Merge pull request #86 from box/pypy
Add support and testing for PyPy 4.0
2 parents 0fd40a6 + cd99e4d commit 1b2d196

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ matrix:
2121
- python: 3.5
2222
env: TOX_ENV=py35
2323
- python: pypy
24-
env: TOX_ENV=pypy
24+
env: TOX_ENV=pypy PYPY_VERSION='4.0.0'
2525
- python: 2.7
2626
env: TOX_ENV=pep8
2727
- python: 2.7

.travis/install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
4242
pyenv global 3.5.0
4343
;;
4444
pypy)
45-
pyenv install pypy-2.6.0
46-
pyenv global pypy-2.6.0
45+
pyenv install "pypy-${PYPY_VERSION}"
46+
pyenv global "pypy-${PYPY_VERSION}"
4747
;;
4848
esac
4949
pyenv rehash
5050
python -m pip install -U --user virtualenv
5151
else
52-
# temporary pyenv installation to get pypy-2.6 before container infra upgrade
52+
# pyenv installation to get specified pypy version (Travis may only have older version(s))
5353
if [[ "${TOX_ENV}" == "pypy" ]]; then
5454
git clone https://github.com/yyuu/pyenv.git $PWD/.pyenv
5555
export PYENV_ROOT="$PWD/.pyenv"
5656
export PATH="$PYENV_ROOT/bin:$PATH"
5757
eval "$(pyenv init -)"
58-
pyenv install pypy-2.6.0
59-
pyenv global pypy-2.6.0
58+
pyenv install "pypy-${PYPY_VERSION}"
59+
pyenv global "pypy-${PYPY_VERSION}"
6060
fi
6161
pip install -U virtualenv
6262
fi

.travis/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ else
1414
export PYENV_ROOT="$PWD/.pyenv"
1515
export PATH="$PYENV_ROOT/bin:$PATH"
1616
eval "$(pyenv init -)"
17-
pyenv global pypy-2.6.0
17+
pyenv global "pypy-${PYPY_VERSION}"
1818
fi
1919
fi
2020
source $PWD/.venv/bin/activate

HISTORY.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Release History
66
Upcoming
77
++++++++
88

9+
1.3.0 (2015-11-05)
10+
++++++++++++++++++
11+
912
- CPython 3.5 support.
1013
- Support for cryptography>=1.0 on PyPy 2.6.
1114
- Travis CI testing for CPython 3.5 and PyPy 2.6.0.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Run all tests using -
337337
The tox tests include code style checks via pep8 and pylint.
338338

339339
The tox tests are configured to run on Python 2.6, 2.7, 3.3, 3.4, 3.5, and
340-
PyPy 2.6.
340+
PyPy (our CI is configured to run PyPy tests on PyPy 4.0).
341341

342342

343343
Support

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def main():
6161
install_requires.append('ordereddict>=1.1')
6262
setup(
6363
name='boxsdk',
64-
version='1.2.2',
64+
version='1.3.0',
6565
description='Official Box Python SDK',
6666
long_description=open(join(base_dir, 'README.rst')).read(),
6767
author='Box',

0 commit comments

Comments
 (0)