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:
parent
2e82a53cdf
commit
9e07234bae
3 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
4
tox.ini
4
tox.ini
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue