From 12469ceb5da6a02874cfb0d2362ebb58cc6e7594 Mon Sep 17 00:00:00 2001 From: Brian Rutledge Date: Sat, 12 Jun 2021 11:21:52 -0400 Subject: [PATCH] Use shutil for rmtree (#763) --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 542d0f5c..bdafe485 100644 --- a/tox.ini +++ b/tox.ini @@ -92,14 +92,13 @@ commands = basepython = python3 deps = build - path.py passenv = TWINE_PASSWORD TWINE_REPOSITORY setenv = TWINE_USERNAME = {env:TWINE_USERNAME:__token__} commands = - python -c "import path; path.Path('dist').rmtree_p()" + python -c "import shutil; shutil.rmtree('dist', ignore_errors=True)" python -m build python -m twine upload dist/*