Remove type information files from executable
This commit is contained in:
parent
cc5ad89977
commit
e18f1c7a96
2
Makefile
2
Makefile
@ -3,6 +3,8 @@ build: clean
|
|||||||
python3 -m pip install -r requirements.txt --no-compile --target build
|
python3 -m pip install -r requirements.txt --no-compile --target build
|
||||||
cp -r mail4one/ build/
|
cp -r mail4one/ build/
|
||||||
sed -i "s/DEVELOMENT/$(shell scripts/get_version.sh)/" build/mail4one/version.py
|
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/mail4one/__pycache__
|
||||||
rm -rf build/*.dist-info
|
rm -rf build/*.dist-info
|
||||||
python3 -m zipapp \
|
python3 -m zipapp \
|
||||||
|
@ -8,7 +8,7 @@ then
|
|||||||
tag_val=$(git describe --dirty=DIRTY --exact-match)
|
tag_val=$(git describe --dirty=DIRTY --exact-match)
|
||||||
case "$tag_val" in
|
case "$tag_val" in
|
||||||
*DIRTY)
|
*DIRTY)
|
||||||
echo "git=$commit-changes"
|
echo "git-$commit-changes"
|
||||||
;;
|
;;
|
||||||
v*) # Only consider tags starting with v
|
v*) # Only consider tags starting with v
|
||||||
echo "$tag_val"
|
echo "$tag_val"
|
||||||
|
Loading…
Reference in New Issue
Block a user