[Pytest-commit] Issue #351: deps = {posargs} (hpk42/tox)
John Vandenberg
issues-reply at bitbucket.org
Sat Jul 23 13:07:31 EDT 2016
New issue 351: deps = {posargs}
https://bitbucket.org/hpk42/tox/issues/351/deps-posargs
John Vandenberg:
Sometimes it is useful to install a set of packages to alter the behaviour of a test run.
Two cases where I have thought this was useful was with `flake8-putty`, where I install sets of plugins to check my plugin with.
https://github.com/jayvdb/flake8-putty/blob/bac9533cc7fc7854c14657b35d8e07da99d5757f/tox.ini
(obviously I would need to change things a little, adding a new testenv for using {posargs} as requirements instead of as filenames.
The current case is `pyflakes`, where I want to install packages into the venv and then check their syntax.
For `deps = {posargs}`, each positional argument would need to be a complete requirement with environment marker, i.e. any spaces wrapped in `".. "`, and they would need to be added to the `deps` as a separate line for each argument.
`deps = {posargs}` currently crashes on
`tox.ConfigError: ConfigError: substitution key 'posargs' not found`
More information about the pytest-commit
mailing list