From 79a6c12af59adaba1c5b5bed0631b0f73f08fc89 Mon Sep 17 00:00:00 2001 From: vggonzal <9Tcostoamm> Date: Wed, 9 Aug 2023 16:32:22 -0700 Subject: [PATCH] implementing the lambda function --- build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..e237ee8 --- /dev/null +++ b/build.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -eo pipefail + +PACKAGE_NAME=$(awk -F' = ' '{gsub(/"/,"");if($1=="name")print $2}' pyproject.toml) +VERSION="0_0_1" +ROOT_PATH="$PWD" +ZIP_PATH="$ROOT_PATH/dist/$PACKAGE_NAME-$VERSION.zip" +mkdir -p "$ROOT_PATH/dist/" +rm -f "$ZIP_PATH" +zip -vr9 "$ZIP_PATH" .