Working build

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

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
*.swp *.swp
__pycache__ __pycache__
dummy.py dummy.py
build
mail4one.pyz

View File

@ -5,3 +5,16 @@ shell:
test: test:
pipenv run python -m unittest mail4one/*test.py 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
mail4one/__main__.py Normal file
View File

@ -0,0 +1,3 @@
from .server import main
main()