From 38768737b1eee684d2518f05359f6870506d7114 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 29 May 2024 12:50:56 +0200 Subject: [PATCH] feat: implemented release script --- git_time_tracking/__about__.py | 2 +- release | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 release diff --git a/git_time_tracking/__about__.py b/git_time_tracking/__about__.py index 554331b..de9f3a8 100644 --- a/git_time_tracking/__about__.py +++ b/git_time_tracking/__about__.py @@ -1,2 +1,2 @@ -__version__ = "0.0.0" +__version__ = "0.0.1" __name__ = "git_time_tracking" diff --git a/release b/release new file mode 100755 index 0000000..a8995c7 --- /dev/null +++ b/release @@ -0,0 +1,17 @@ +#!/bin/bash + +# install build tools +pip install build +pip install twine +pip install hatch + + +# increment version in pyproject.toml +hatch version micro + +# build package +python3 -m build --wheel + +# upload to pypi +python3 -m twine upload dist/* +python3 -m twine upload --skip-existing --repository gitea dist/*