[TIP] Tox : Can I retrieve a project version from within tox.ini

Laurent Brack lpbrac at dolby.com
Tue Oct 21 11:58:19 PDT 2014


I was wondering if it was possible to retrieve a project version from 
within tox other than by exporting it to an environment variable prior 
to running tox.

something equivalent to export VERSION=`myproject --version`

I know that you can do something like {env:MY_VERSION:1.2} but this 
requires that the version env. var is set prior to calling tox.

being able to extract this information during a tox run would be useful.

Thanks in advance.

Laurent




More information about the testing-in-python mailing list