[Pytest-commit] Issue #318: Allow wildcards to be used in TOXENV and with the `-e` option (hpk42/tox)
Ed Morley
issues-reply at bitbucket.org
Mon Feb 29 13:22:49 EST 2016
New issue 318: Allow wildcards to be used in TOXENV and with the `-e` option
https://bitbucket.org/hpk42/tox/issues/318/allow-wildcards-to-be-used-in-toxenv-and
Ed Morley:
Currently it's not possible to use wildcards with TOXENV and/or the `-e` option.
For example, I'd like to be able to use:
```
export TOXENV=py27-*
```
... to just run the python 2.7 subset of the peep tox config:
https://github.com/erikrose/peep/blob/daa9e87014de1f907fac446f89b9d849665a649e/tox.ini#L8-L9
However since wildcards aren't supported, I've had to resort to a bit of a hack to generate the TOXENV in the Travis config:
```
export TOXENV=`tox --listenvs | grep "py${TRAVIS_PYTHON_VERSION/./}-" | tr '\n' ','`
```
See:
https://github.com/edmorley/peep/commit/bb77b96dfd548dd3ba9ac1c595c047dbd3e7f8a9
Many thanks :-)
More information about the pytest-commit
mailing list