Working build
This commit is contained in:
parent
0520174bf3
commit
3ba9c44d51
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
|||||||
*.swp
|
*.swp
|
||||||
__pycache__
|
__pycache__
|
||||||
dummy.py
|
dummy.py
|
||||||
|
build
|
||||||
|
mail4one.pyz
|
||||||
|
13
Makefile
13
Makefile
@ -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
3
mail4one/__main__.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from .server import main
|
||||||
|
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user