@@ -12,11 +12,17 @@ minversion = 2.9
1212
1313[testenv]
1414description = " Scapy unit tests"
15- whitelist_externals = sudo
15+ allowlist_externals = sudo
1616parallel_show_output = true
17- passenv = PATH PWD PROGRAMFILES WINDIR SYSTEMROOT OPENSSL_CONF
18- # Used by scapy
19- SCAPY_USE_LIBPCAP
17+ passenv =
18+ PATH
19+ PWD
20+ PROGRAMFILES
21+ WINDIR
22+ SYSTEMROOT
23+ OPENSSL_CONF
24+ # Used by scapy
25+ SCAPY_USE_LIBPCAP
2026deps = mock
2127 # cryptography requirements
2228 setuptools>=18.5
@@ -43,12 +49,17 @@ commands =
4349
4450[testenv:py38-isotp_kernel_module]
4551description = " Scapy unit tests - ISOTP Linux kernel module"
46- whitelist_externals = sudo
52+ allowlist_externals = sudo
4753 git
4854 bash
4955 lsmod
5056 modprobe
51- passenv = PATH PWD PROGRAMFILES WINDIR SYSTEMROOT
57+ passenv =
58+ PATH
59+ PWD
60+ PROGRAMFILES
61+ WINDIR
62+ SYSTEMROOT
5263deps = {[testenv]deps}
5364commands =
5465 sudo apt-get -qy install build-essential linux-headers-$(uname -r) linux-modules-extra-$(uname -r)
@@ -75,7 +86,13 @@ commands =
7586
7687[testenv:codecov]
7788description = " Upload coverage results to codecov"
78- passenv = TOXENV CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
89+ passenv =
90+ TOXENV
91+ CI
92+ TRAVIS
93+ TRAVIS_*
94+ APPVEYOR
95+ APPVEYOR_*
7996deps = codecov
8097commands = codecov -e TOXENV
8198
@@ -84,7 +101,7 @@ commands = codecov -e TOXENV
84101[testenv:apitree]
85102description = " Regenerates the API reference doc tree"
86103skip_install = true
87- changedir = doc/scapy
104+ changedir = {toxinidir}/ doc/scapy
88105deps = sphinx
89106commands =
90107 sphinx-apidoc -f --no-toc -d 1 --separate --module-first --templatedir =_templates --output-dir api ../../scapy ../../scapy/modules/ ../../scapy/libs/ ../../scapy/tools/ ../../scapy/arch/ ../../scapy/contrib/scada/* ../../scapy/all.py ../../scapy/layers/all.py ../../scapy/compat.py
@@ -103,7 +120,7 @@ commands = python .config/mypy/mypy_check.py linux
103120[testenv:docs]
104121description = " Build the docs"
105122skip_install = true
106- changedir = doc/scapy
123+ changedir = {toxinidir}/ doc/scapy
107124deps = sphinx>=2.4.2
108125 sphinx_rtd_theme
109126commands =
@@ -114,7 +131,7 @@ commands =
114131[testenv:docs2]
115132description = " Build the docs without rebuilding the API tree"
116133skip_install = true
117- changedir = doc/scapy
134+ changedir = {toxinidir}/ doc/scapy
118135deps = {[testenv:docs]deps}
119136setenv =
120137 SCAPY_APITREE = 0
0 commit comments