From 25c601ecee4636db1f9ac88f209ed6602d9fca89 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 2 Jul 2024 16:35:14 +0200 Subject: [PATCH] feat: added release script --- release | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 release diff --git a/release b/release new file mode 100755 index 0000000..2f325a7 --- /dev/null +++ b/release @@ -0,0 +1,20 @@ +#!/bin/bash + +# install build tools +pip install build +pip install twine +pip install hatch + + +# increment version in pyproject.toml +hatch version micro +git add json_unescape/__about__.py +git commit -m "bump version" +git push + +# build package +python3 -m build --wheel + +# upload to pypi +python3 -m twine upload dist/* +python3 -m twine upload --skip-existing --repository gitea dist/*