mail4one/Makefile

26 lines
555 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
requirements.txt: Pipfile.lock
pipenv requirements > requirements.txt
build: clean requirements.txt
python3 -m pip install -r requirements.txt --target build
2023-06-13 20:45:26 -04:00
cp -r mail4one/ build/
python3 -m compileall build/mail4one -f
2023-06-14 12:00:23 -04:00
rm -rf build/*.dist-info
python3 -m zipapp \
2023-06-13 20:45:26 -04:00
--output mail4one.pyz \
--python "/usr/bin/env python3" \
--main mail4one.server:main \
--compress build
clean:
rm -rf build
rm -rf mail4one.pyz