From a90e7d339651dddc0cd50f756346afbd9e513ddc Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 8 May 2018 19:23:52 +0000 Subject: [PATCH] Clean dist directory in tox dist environment To avoid accumulating deleted cruft in the dist directory, remove it prior to running bdist_wheel/sdist. --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 3d21d4b..db369e3 100644 --- a/tox.ini +++ b/tox.ini @@ -18,8 +18,11 @@ deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:dist] +whitelist_externals = rm deps = pbr -commands = python setup.py bdist_wheel sdist +commands = + rm -fr dist + python setup.py bdist_wheel sdist [testenv:docs] whitelist_externals = rm -- 2.11.0