Working build

This commit is contained in:
2023-06-13 20:45:26 -04:00
parent 0520174bf3
commit 3ba9c44d51
3 changed files with 18 additions and 0 deletions

View File

@ -5,3 +5,16 @@ shell:
test:
pipenv run python -m unittest mail4one/*test.py
build: clean
pipenv run python -m pip install -r <(pipenv requirements ) --target build
cp -r mail4one/ build/
pipenv run python -m zipapp \
--output mail4one.pyz \
--python "/usr/bin/env python3" \
--main mail4one.server:main \
--compress build
clean:
rm -rf build
rm -rf mail4one.pyz