mail4one/Makefile

21 lines
435 B
Makefile
Raw Normal View History

2023-06-11 13:19:39 -04:00
shell:
MYPYPATH=`pipenv --venv`/lib/python3.11/site-packages pipenv shell
2023-06-13 16:13:30 -04:00
test:
pipenv run python -m unittest mail4one/*test.py
2023-06-13 20:45:26 -04:00
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