From a358bc2f62745d20f26149e7b5a8ef0a76a246a3 Mon Sep 17 00:00:00 2001 From: Jaxc Date: Sat, 9 Jul 2022 15:54:10 +0200 Subject: [PATCH] Add build for release --- current_version.txt | 1 + make_release.sh | 20 ++++++++++++++++++++ pyproject.toml | 13 ++++++------- 3 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 current_version.txt create mode 100644 make_release.sh diff --git a/current_version.txt b/current_version.txt new file mode 100644 index 0000000..17e51c3 --- /dev/null +++ b/current_version.txt @@ -0,0 +1 @@ +0.1.1 diff --git a/make_release.sh b/make_release.sh new file mode 100644 index 0000000..e6a7972 --- /dev/null +++ b/make_release.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +echo "Starting releasebuild! Last release in main branch was:" +cat current_version.txt +echo "" +echo "Which version shall next release be?" +read new_ver + +echo $new_ver > current_version.txt +echo "version = \""$new_ver"\"" >> pyproject.toml + +rm dist/* + +python3 -m build + +echo "Please enter token for upload to PyPi" +read -s PyPi_token +echo + +twine upload dist/* -u __token__ -p $PyPi_token diff --git a/pyproject.toml b/pyproject.toml index 226da87..295f25a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,9 +2,14 @@ requires = ["hatchling"] build-backend = "hatchling.build" +[project.urls] +"Homepage" = "https://github.com/Jaxc/PyStageLinQ" +"Bug Tracker" = "https://github.com/Jaxc/PyStageLinQ/issues" +"Documentation" = "https://pystagelinq.readthedocs.io/en/latest/" +"Funding" = "https://ko-fi.com/jaxcie" + [project] name = "PyStageLinQ" -version = "0.1.0" authors = [ { email="jaxc@skrooter.com" }, ] @@ -19,9 +24,3 @@ classifiers = [ "Programming Language :: Python :: 3.10", ] keywords = ["StageLinQ", "DJ", "VJ", "Denon DJ", "Prime Go", "Streaming"] - -[project.urls] -"Homepage" = "https://github.com/Jaxc/PyStageLinQ" -"Bug Tracker" = "https://github.com/Jaxc/PyStageLinQ/issues" -"Documentation" = "https://pystagelinq.readthedocs.io/en/latest/" -"Funding" = "https://ko-fi.com/jaxcie" \ No newline at end of file