1
0
Fork 0
forked from github/pelican

Update Tox config and fix failing CI envs

Updates base Python version for Travis CI from 2.7 to 3.6 and fixes a
linting error.
This commit is contained in:
John Franey 2019-05-13 17:30:29 -04:00
commit 9e07234bae
3 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
language: python
python:
- "3.5"
- "3.6"
env:
- TOX_ENV=docs
- TOX_ENV=flake8
- TOX_ENV=py27
- TOX_ENV=py35
- TOX_ENV=py36
matrix:
include:
- python: 3.6

View file

@ -138,6 +138,6 @@ if __name__ == '__main__':
args.port, args.server)
try:
httpd.serve_forever()
except KeyboardInterrupt as e:
except KeyboardInterrupt:
logger.info("Shutting down server.")
httpd.socket.close()

View file

@ -22,7 +22,7 @@ commands =
- coveralls
[testenv:docs]
basepython = python2.7
basepython = python3.6
deps =
-rrequirements/docs.pip
changedir = docs
@ -34,7 +34,7 @@ application-import-names = pelican
import-order-style = cryptography
[testenv:flake8]
basepython = python2.7
basepython = python3.6
deps =
-rrequirements/style.pip
commands =