mail4one/Makefile

22 lines
477 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:
2023-06-13 21:12:46 -04:00
pipenv run python -m unittest discover
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/
2023-06-13 21:38:36 -04:00
pipenv run python -m compileall build/mail4one -f
2023-06-13 20:45:26 -04:00
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