I'm seeing errors like this in the test-setup and unit-tests CI jobs: py: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH' py39-setup: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'HOME ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH PATH' Despite the fact that [tox documentation](https://tox.wiki/en/3.1.2/config.html) says that "passenv" is "SPACE-SEPARATED-GLOBNAMES", the setup seems to think that "pass_env" (which is not "passenv", note the lack of underscore) is somehow bad. Maybe putting each value on its own line will satisfy this check?
58 lines
1.2 KiB
INI
58 lines
1.2 KiB
INI
[tox]
|
|
envlist = py{36,37,38,39,310}{,-setup}, pypy3, pep8
|
|
skipsdist = True
|
|
|
|
[pytest]
|
|
addopts = -vv -r a -s --color=yes
|
|
norecursedirs = testdata
|
|
testpaths = tests
|
|
markers =
|
|
regression: mark test as a regression test.
|
|
|
|
[flake8]
|
|
exclude = .git,.idea,__pycache__,.tox,tests/*,docs/*,test_load_asc_bench.py
|
|
ignore = E201,E202,E221,E251,E265,F403,F821,N805,W503
|
|
max-line-length = 160
|
|
|
|
[testenv]
|
|
passenv =
|
|
HOME
|
|
ARCHFLAGS
|
|
LDFLAGS
|
|
CFLAGS
|
|
INCLUDE
|
|
LIB
|
|
LD_LIBRARY_PATH
|
|
PATH
|
|
deps =
|
|
cryptography>=2.6
|
|
gpg==1.10.0
|
|
pyasn1
|
|
six>=1.9.0
|
|
pytest
|
|
pytest-cov
|
|
# We need a patched version of pytest-order to run on 3.5 and handle parameterized tests
|
|
git+https://github.com/SecurityInnovation/pytest-order.git@07ceb36233fb083275f34d5c8abbd3e35cd00158#egg=pytest-order
|
|
|
|
install_command = pip install {opts} --no-cache-dir {packages}
|
|
commands =
|
|
py.test --cov pgpy --cov-report term-missing tests/
|
|
|
|
[testenv:py{36,37,38,39,310}-setup]
|
|
recreate = True
|
|
allowlist_externals =
|
|
/usr/bin/rm
|
|
/bin/rm
|
|
deps =
|
|
commands =
|
|
pip install -e .
|
|
rm -rf PGPy.egg-info
|
|
|
|
[testenv:pep8]
|
|
basepython = python3.6
|
|
deps =
|
|
flake8
|
|
pep8-naming
|
|
commands =
|
|
flake8
|