aboutsummaryrefslogtreecommitdiff
path: root/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package.sh')
-rwxr-xr-xpackage.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/package.sh b/package.sh
new file mode 100755
index 0000000..7fb24ad
--- /dev/null
+++ b/package.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -ex
+
+unset PYTHONPATH
+python3 -m venv build/venv
+. build/venv/bin/activate
+
+pip install --upgrade build twine
+python -m build
+twine check dist/*
+
+echo 'When ready, upload to PyPI using: build/venv/bin/twine upload dist/*'