-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
61 lines (55 loc) · 1.88 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[tox]
envlist = buildfixture,{py27,py34,py35,py36}-{werkzeug011,werkzeug012,werkzeug013,werkzeug014},docs
skipsdist = true
[testenv]
skip_install = true
deps =
werkzeug011: Werkzeug >= 0.11, < 0.12
werkzeug012: Werkzeug >= 0.12, < 0.13
werkzeug013: Werkzeug >= 0.13, < 0.14
werkzeug014: Werkzeug >= 0.14, < 0.15
commands =
pip install -f {distdir} -e {env:FIXTURE_PATH:{distdir}/schema_fixture/}
pip install -f {distdir} -e .[tests]
pytest -v
[testenv:buildfixture]
skipinstall = true
deps =
passenv = *
whitelist_externals =
{env:NIRUM:nirum}
commands =
{env:NIRUM:nirum} -o {env:FIXTURE_PATH:{distdir}/schema_fixture/} -t python schema-fixture/
[testenv:devruntime]
; Use this when the tests against the Python source code generated by
; the compiler require the bleeding-edge version of nirum-python runtime
; (which is not released yet).
skip_install = true
deps =
wget >= 3.2
wheel >= 0.29.0
changedir = {envtmpdir}
whitelist_externals =
mkdir
commands =
python -m wget -o devruntime.zip https://github.com/{env:DEVRUNTIME_REPO:spoqa/nirum-python}/archive/{env:DEVRUNTIME_REF:master}.zip
python -m zipfile -e devruntime.zip .
python -c 'import glob, os.path; [os.rename(f, os.path.join(".", os.path.basename(f))) for f in glob.glob("nirum-python-*/*")]'
python setup.py sdist bdist_wheel
mkdir {distdir}
python -c 'import glob, os, sys; [os.rename(f, os.path.join(sys.argv[1], os.path.basename(f))) for f in glob.glob("dist/nirum-*")]' {distdir}
[testenv:docs]
basepython = python3
deps =
docutils
Pygments
commands =
rst2html.py --strict CHANGES.rst
rst2html.py --strict README.rst
python3 setup.py --long-description | rst2html.py -i utf-8 -o utf-8 --strict
[pytest]
addopts = --ff --flake8 nirum_wsgi.py tests.py
[flake8]
exclude = .env, .tox
import-order-style = spoqa
application-import-names = nirum_wsgi, tests