I was trying to delete a few specific files using the "find" command, but couldn't get tox to ignore the required curly braces in the command:
py26 runtests: commands[2] | find /Users/.../dev/.../.tox/py26 -name *.so -exec rm \{\} +
WARNING:test command found but not installed in testenv
cmd: /usr/bin/find
env: /Users/.../dev/.../.tox/py26
Maybe forgot to specify a dependency?
find: -exec: no terminating ";" or "+"
ERROR: InvocationError: '/usr/bin/find /Users/.../dev/.../.tox/py26 -name *.so -exec rm \\{\\} +'
Having "{}" in the tox command breaks since tox looks for a variable named "" in the config. The above is the result of attempting to escape the curly braces with back-slashes, as per the documentation: You can escape curly braces with the \ character if you need them, ...
My environment:
- OSX 10.8
- Python 3.4.2 (installed via pyenv)
- tox 1.8.1 (installed via pip)
I was trying to delete a few specific files using the "find" command, but couldn't get tox to ignore the required curly braces in the command:
Having "{}" in the tox command breaks since tox looks for a variable named "" in the config. The above is the result of attempting to escape the curly braces with back-slashes, as per the documentation: You can escape curly braces with the \ character if you need them, ...
My environment: