mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add python3.6 test environment
* Add py36 environment to tox * Unify dependencies across manual installation and tox * Mention tox in the docs
This commit is contained in:
parent
25732f7be6
commit
9cca567bed
5 changed files with 15 additions and 12 deletions
|
|
@ -47,13 +47,16 @@ Or using ``pip``::
|
||||||
|
|
||||||
$ pip install -e .
|
$ pip install -e .
|
||||||
|
|
||||||
|
To conveniently test vs multiple python versions we also provide a tox file.
|
||||||
|
|
||||||
|
|
||||||
Building the docs
|
Building the docs
|
||||||
=================
|
=================
|
||||||
|
|
||||||
If you make changes to the documentation, you should preview your changes
|
If you make changes to the documentation, you should preview your changes
|
||||||
before committing them::
|
before committing them::
|
||||||
|
|
||||||
$ pip install sphinx
|
$ pip install -r requirements/docs.pip
|
||||||
$ cd src/pelican/docs
|
$ cd src/pelican/docs
|
||||||
$ make html
|
$ make html
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
-r test.pip
|
-r test.pip
|
||||||
|
-r docs.pip
|
||||||
# Development
|
-r style.pip
|
||||||
flake8
|
|
||||||
flake8-import-order
|
|
||||||
sphinx==1.4.9
|
|
||||||
|
|
|
||||||
2
requirements/docs.pip
Normal file
2
requirements/docs.pip
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
sphinx==1.4.9
|
||||||
|
sphinx_rtd_theme
|
||||||
2
requirements/style.pip
Normal file
2
requirements/style.pip
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
flake8
|
||||||
|
flake8-import-order
|
||||||
11
tox.ini
11
tox.ini
|
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{27,33,34,35},docs,flake8
|
envlist = py{27,33,34,35,36},docs,flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython =
|
basepython =
|
||||||
|
|
@ -7,10 +7,11 @@ basepython =
|
||||||
py33: python3.3
|
py33: python3.3
|
||||||
py34: python3.4
|
py34: python3.4
|
||||||
py35: python3.5
|
py35: python3.5
|
||||||
|
py36: python3.6
|
||||||
passenv = *
|
passenv = *
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/developer.pip
|
-rrequirements/test.pip
|
||||||
nose
|
nose
|
||||||
nose-cov
|
nose-cov
|
||||||
coveralls
|
coveralls
|
||||||
|
|
@ -24,8 +25,7 @@ commands =
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
deps =
|
deps =
|
||||||
sphinx==1.4.9
|
-rrequirements/docs.pip
|
||||||
sphinx_rtd_theme
|
|
||||||
changedir = docs
|
changedir = docs
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
|
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
|
||||||
|
|
@ -37,8 +37,7 @@ import-order-style = cryptography
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
deps =
|
deps =
|
||||||
flake8 <= 2.4.1
|
-rrequirements/style.pip
|
||||||
git+https://github.com/public/flake8-import-order@2ac7052a4e02b4a8a0125a106d87465a3b9fd688
|
|
||||||
commands =
|
commands =
|
||||||
flake8 --version
|
flake8 --version
|
||||||
flake8 pelican
|
flake8 pelican
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue