From 608cc6f4a736d536fadb8aa884eeacea25e348ea Mon Sep 17 00:00:00 2001 From: Martin Moss Date: Wed, 26 Jun 2024 17:35:05 +0100 Subject: [PATCH] Make it easier to create versions using bump2version --- release.sh | 12 ++++++++++++ setup.cfg | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 release.sh create mode 100644 setup.cfg diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..febd650 --- /dev/null +++ b/release.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +SCOPE="$1" + +if [ -z "$SCOPE" ]; then + SCOPE="patch" +fi + +echo "Using scope $SCOPE" + +bump2version "$SCOPE" +git push origin --follow-tags diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..73b7c6d --- /dev/null +++ b/setup.cfg @@ -0,0 +1,5 @@ +[bumpversion] +current_version = 0.1.3 +commit = True +tag = True +message = :bookmark: [ci skip] Bump version: {current_version} → {new_version}