aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli.py')
-rwxr-xr-xcli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli.py b/cli.py
index c04cbac..09863a2 100755
--- a/cli.py
+++ b/cli.py
@@ -167,12 +167,13 @@ def uninstall():
@cli.command()
def upload():
+ Path('build').rmtree_p()
dist = Path('dist')
- if dist.exists():
- dist.rmdir_p()
+ dist.rmtree_p()
dist.makedirs_p()
sh('python3 setup.py bdist_wheel')
sh('twine upload dist/*')
+ Path('build').rmtree_p()
@cli.command()