From: Jeremy Stanley Date: Tue, 8 May 2018 19:23:52 +0000 (+0000) Subject: Clean dist directory in tox dist environment X-Git-Tag: 0.0.1~79 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=a90e7d339651dddc0cd50f756346afbd9e513ddc;p=mudpy.git Clean dist directory in tox dist environment To avoid accumulating deleted cruft in the dist directory, remove it prior to running bdist_wheel/sdist. --- 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