-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
46 lines (41 loc) · 1.33 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
[tox]
envlist = py27,py34,py35,py36,docs
skipsdist = true
[testenv]
skip_install = true
commands =
pip install -f {distdir} -e .[tests]
pytest -v
[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 --strict
[pytest]
addopts = --ff --flake8 test.py
[flake8]
exclude = .env, .tox
import-order-style = spoqa
application-import-names = nirum_http, tests