Skip to content

Commit 52253ff

Browse files
committed
Pull in repo config changes from master branch
Add testing support for Python 3.6, and upgrade PyPy tests to use PyPy2.7 5.8.0. Lock sphinx to a version that still supports Python 2.6. (In the future, on the master branch, we should exclude the sphinx install from CI jobs that don't use it, and use Python 3.6 for the job that does require sphinx.) Add new pattern to .gitignore, update configs in .pylintrc, add isort config.
1 parent 5e2e295 commit 52253ff

File tree

11 files changed

+28
-15
lines changed

11 files changed

+28
-15
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ __pycache__/
1111
# Distribution / packaging
1212
bin/
1313
.Python
14-
env/
14+
env*/
1515
build/
1616
develop-eggs/
1717
dist/
@@ -27,8 +27,10 @@ var/
2727
*.egg
2828
MANIFEST
2929
.eggs/
30+
.env*/
3031
.pyenv/
31-
.venv/
32+
venv*/
33+
.venv*/
3234

3335
# PyInstaller
3436
# Usually these files are written by a python script from a template

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ defining-attr-methods=__init__,__new__,setUp
201201
valid-classmethod-first-arg=cls
202202

203203
# List of valid names for the first argument in a metaclass class method.
204-
valid-metaclass-classmethod-first-arg=mcs
204+
valid-metaclass-classmethod-first-arg=mcs,metacls
205205

206206

207207
[DESIGN]
@@ -226,7 +226,7 @@ max-branches=12
226226
max-statements=50
227227

228228
# Maximum number of parents for a class (see R0901).
229-
max-parents=7
229+
max-parents=14
230230

231231
# Maximum number of attributes for a class (see R0902).
232232
max-attributes=15

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ matrix:
2020
env: TOX_ENV=py34
2121
- python: 3.5
2222
env: TOX_ENV=py35
23+
- python: 3.6
24+
env: TOX_ENV=py36
2325
- python: pypy
24-
env: TOX_ENV=pypy PYPY_VERSION='4.0.0'
26+
env: TOX_ENV=pypy PYPY_VERSION='2.7-5.8.0'
2527
- python: 2.7
2628
env: TOX_ENV=pep8
2729
- python: 2.7

.travis/install.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
4141
pyenv install 3.5.0
4242
pyenv global 3.5.0
4343
;;
44+
py36)
45+
pyenv install 3.6.0
46+
pyenv global 3.6.0
47+
;;
4448
pypy)
45-
pyenv install "pypy-${PYPY_VERSION}"
46-
pyenv global "pypy-${PYPY_VERSION}"
49+
pyenv install "pypy${PYPY_VERSION}"
50+
pyenv global "pypy${PYPY_VERSION}"
4751
;;
4852
esac
4953
pyenv rehash
@@ -55,8 +59,8 @@ else
5559
export PYENV_ROOT="$PWD/.pyenv"
5660
export PATH="$PYENV_ROOT/bin:$PATH"
5761
eval "$(pyenv init -)"
58-
pyenv install "pypy-${PYPY_VERSION}"
59-
pyenv global "pypy-${PYPY_VERSION}"
62+
pyenv install "pypy${PYPY_VERSION}"
63+
pyenv global "pypy${PYPY_VERSION}"
6064
fi
6165
pip install -U virtualenv
6266
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-${PYPY_VERSION}"
17+
pyenv global "pypy${PYPY_VERSION}"
1818
fi
1919
fi
2020
source $PWD/.venv/bin/activate

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ Run all tests using -
418418
419419
The tox tests include code style checks via pep8 and pylint.
420420

421-
The tox tests are configured to run on Python 2.6, 2.7, 3.3, 3.4, 3.5, and
422-
PyPy (our CI is configured to run PyPy tests on PyPy 4.0).
421+
The tox tests are configured to run on Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, and
422+
PyPy2.7 (our CI is configured to run PyPy2.7 tests on PyPy2.7 5.8.0).
423423

424424

425425
Support

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ pylint
77
pytest>=2.8.3
88
pytest-cov
99
pytest-xdist
10-
sphinx
10+
sphinx>=1.5,<1.6
1111
sqlalchemy
1212
tox

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ pyjwt>=1.3.0
44
requests>=2.4.3
55
requests-toolbelt>=0.4.0
66
six >= 1.4.0
7-
-e .
7+
-e .[all]

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ universal=1
66

77
[metadata]
88
license_file=LICENSE
9+
10+
[isort]
11+
known_first_party=test

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
'Programming Language :: Python :: 3.3',
2323
'Programming Language :: Python :: 3.4',
2424
'Programming Language :: Python :: 3.5',
25+
'Programming Language :: Python :: 3.6',
2526
'Programming Language :: Python :: Implementation :: CPython',
2627
'Programming Language :: Python :: Implementation :: PyPy',
2728
'Operating System :: OS Independent',

0 commit comments

Comments
 (0)