Fix: 1.16.5 is erroneously marked as unsupported
[pyCraft.git] / tox.ini
blob32894e20d49669a0c4d0cfd937278e2b84ec6225
1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
6 [tox]
7 envlist = py35, py36, py37, py38, py39, pypy, flake8, pylint-errors, pylint-full, verify-manifest
9 [testenv]
10 commands = nosetests --with-timer
11 install_command = pip install --prefer-binary {opts} {packages}
13 deps =
14 nose
15 nose-timer
16 -r{toxinidir}/requirements.txt
18 [testenv:cover]
19 deps =
20 {[testenv]deps}
21 coverage
22 nosexcover
24 [testenv:coveralls]
25 passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
26 commands =
27 coveralls
28 deps =
29 coveralls
31 [testenv:py39]
32 setenv =
33 PYCRAFT_RUN_INTERNET_TESTS=1
34 commands =
35 {[testenv]commands} --with-xunit --with-xcoverage --cover-package=minecraft --cover-erase --cover-inclusive --cover-tests --cover-branches --cover-min-percentage=60
36 deps =
37 {[testenv:cover]deps}
39 [testenv:pypy]
40 deps =
41 {[testenv]deps}
42 mock
44 [testenv:flake8]
45 basepython = python3.9
46 commands =
47 flake8 minecraft tests setup.py start.py bin/generate_travis_yml.py
48 deps =
49 {[testenv]deps}
50 flake8
52 [flake8]
53 per-file-ignores =
54 */clientbound/play/spawn_object_packet.py:E221,E222,E271,E272,E201
55 minecraft/networking/packets/__init__.py:F401
57 [testenv:pylint-errors]
58 basepython = python3.9
59 deps =
60 {[testenv]deps}
61 pylint
62 commands = pylint minecraft -E
64 [testenv:pylint-full]
65 basepython = python3.9
66 deps =
67 {[testenv]deps}
68 pylint
69 commands =
70 - pylint minecraft --disable=E
72 [testenv:docs]
73 basepython = python3.9
74 deps =
75 {[testenv:cover]deps}
76 sphinx
77 sphinx-rtd-theme
78 commands =
79 {toxinidir}/bin/build_docs
81 [testenv:verify-manifest]
82 basepython = python3.9
83 deps =
84 check-manifest
85 commands =
86 check-manifest