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
+2
View File
@@ -2,3 +2,5 @@
*.swp
__pycache__
dummy.py
build
mail4one.pyz
+13
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
+3
View File
@@ -0,0 +1,3 @@
from .server import main
main()