Add a portable env for py27 in tox.ini,

update python3 envs and PYTHONWARNINGS, restrict deps for reset and stats.
This commit is contained in:
Dmitri Bogomolov 2021-11-18 17:44:35 +02:00
parent a6c81b5a4a
commit ebdcc363b1
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

10
tox.ini
View File

@ -1,11 +1,11 @@
[tox] [tox]
envlist = reset,py{27,37,38},stats envlist = reset,py{27,27-portable,36,38,39},stats
skip_missing_interpreters = true skip_missing_interpreters = true
[testenv] [testenv]
setenv = setenv =
BITMESSAGE_HOME = {envtmpdir} BITMESSAGE_HOME = {envtmpdir}
PYTHONWARNINGS = all PYTHONWARNINGS = default
deps = -rrequirements.txt deps = -rrequirements.txt
commands = commands =
python checkdeps.py python checkdeps.py
@ -18,10 +18,16 @@ deps =
-r docs/requirements.txt -r docs/requirements.txt
commands = python setup.py build_sphinx commands = python setup.py build_sphinx
[testenv:py27-portable]
skip_install = true
commands = python pybitmessage/bitmessagemain.py -t
[testenv:reset] [testenv:reset]
deps = coverage
commands = coverage erase commands = coverage erase
[testenv:stats] [testenv:stats]
deps = coverage
commands = commands =
coverage report coverage report
coverage xml coverage xml