diff options
author | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-03-17 15:33:06 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com> | 2017-03-17 15:33:06 +0100 |
commit | 2fc4a28de8d70058310a6951cd93849c17d50908 (patch) | |
tree | 26460287f6a48e627e3546cfd76ea9693d0e6023 | |
parent | 4406ac71209f6539593f4e462fa5e6320f6ac6f2 (diff) | |
download | qtivi-qface-2fc4a28de8d70058310a6951cd93849c17d50908.tar.gz |
ensure the distribution folder is created if not exists and removed if exists. This is for creating a python distribution
-rwxr-xr-x | cli.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -166,7 +166,9 @@ def uninstall(): @cli.command() def upload(): dist = Path('dist') - dist.rmdir_p() + if dist.exists(): + dist.rmdir_p() + dist.makedirs_p() sh('python3 setup.py bdist_wheel') sh('twine upload dist/*') |