summaryrefslogtreecommitdiff
path: root/build_upload.sh
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-17 15:16:50 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-17 15:16:50 -0600
commitd2dfa337171fdad8ed48ce95e3b8f91e291423b7 (patch)
tree0a2b46b1f0510b13eb2d4cc2f06ed9d393ac8234 /build_upload.sh
parent3c0691df1b7ff1fd04e22ab6055e84cc2137504e (diff)
add build and upload command, modified readme
Diffstat (limited to 'build_upload.sh')
-rwxr-xr-xbuild_upload.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/build_upload.sh b/build_upload.sh
new file mode 100755
index 0000000..c195b5f
--- /dev/null
+++ b/build_upload.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# this is supposed to be used from within the package root dir,
+# too lazy to make it more general
+
+echo "building package"
+/bin/python -m build
+
+echo "uploading to pypi"
+# alternatively, use /bin/python -m twine, i use twine in arch
+/bin/twine upload dist/*
+
+echo "removing dist/*"
+rm -r dist \ No newline at end of file