From: Stephen F. <st...@th...> - 2019-08-25 15:57:43
|
This is necessary to ensure tests are converted for Python 3.x. Unfortunately there are some nasty workarounds necessary to get things working with distutils. These should disappear once we have setuptools support integrated. Signed-off-by: Stephen Finucane <st...@th...ru> --- docutils/tox.ini | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/docutils/tox.ini b/docutils/tox.ini index 0a13197e0..ad53f9447 100644 --- a/docutils/tox.ini +++ b/docutils/tox.ini @@ -1,5 +1,27 @@ [tox] +minversion = 2.0 envlist = py{27,35,36,37} +# NOTE(stephenfin): we need to skip generating and installing the sdist, opting +# to install manually instead. This is because we still use distutils and pip +# hasn't supported uninstalling distutils-packaged libraries since 6.0. Once we +# have added setuptools support, we should remove this. +skipsdist = True [testenv] -commands = python test/alltests.py +whitelist_externals = + find + rm +commands = + find . -type f -name "*.pyc" -delete + rm -rf build test3 + python setup.py build + python setup.py install + python test3/alltests.py + +[testenv:py27] +commands = + find . -type f -name "*.pyc" -delete + rm -rf build + python setup.py build + python setup.py install + python test/alltests.py -- 2.21.0 |