From e18f1c7a9620cdb72e03a6d7651f7af05219715e Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 12 Jan 2024 10:48:17 -0500 Subject: [PATCH] Remove type information files from executable --- Makefile | 2 ++ scripts/get_version.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e0594c0..38ae987 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ build: clean python3 -m pip install -r requirements.txt --no-compile --target build cp -r mail4one/ build/ sed -i "s/DEVELOMENT/$(shell scripts/get_version.sh)/" build/mail4one/version.py + find build -name "*.pyi" -o -name "py.typed" | xargs -I typefile rm typefile + rm -rf build/bin rm -rf build/mail4one/__pycache__ rm -rf build/*.dist-info python3 -m zipapp \ diff --git a/scripts/get_version.sh b/scripts/get_version.sh index cc43f17..f34bdaa 100755 --- a/scripts/get_version.sh +++ b/scripts/get_version.sh @@ -8,7 +8,7 @@ then tag_val=$(git describe --dirty=DIRTY --exact-match) case "$tag_val" in *DIRTY) - echo "git=$commit-changes" + echo "git-$commit-changes" ;; v*) # Only consider tags starting with v echo "$tag_val"