aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahiel@protonmail.ch>2016-01-03 23:39:11 +0100
committerRahiel Kasim <rahiel@protonmail.ch>2016-01-03 23:39:11 +0100
commitfd71aca2fa715e8ce171ef06d2a5940f9a476bb9 (patch)
tree09bee721891e82dc8491b907c704a0c936b5cad8
parentaacea31ca8ca63c05f4914413b683ddbe930768c (diff)
let pypi update script exit if something is wrong
-rwxr-xr-xupdate-pypi.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/update-pypi.bash b/update-pypi.bash
index 4423149..9410f8d 100755
--- a/update-pypi.bash
+++ b/update-pypi.bash
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
-rm -R dist/
+set -e
+python3 -c 'import pypandoc'
+
+rm -rf dist/
python3 setup.py sdist # source distribution
python3 setup.py bdist_wheel # built package
# gpg --detach-sign -a dist/*