diff --git a/Makefile b/Makefile index 38ae987..aedf7e9 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -# Needs python3 >= 3.9, sed, git for build +# Needs python3 >= 3.9, sed, git for build, docker for tests build: clean python3 -m pip install -r requirements.txt --no-compile --target build cp -r mail4one/ build/ sed -i "s/DEVELOMENT/$(shell scripts/get_version.sh)/" build/mail4one/version.py find build -name "*.pyi" -o -name "py.typed" | xargs -I typefile rm typefile - rm -rf build/bin + rm -rf build/bin rm -rf build/mail4one/__pycache__ rm -rf build/*.dist-info python3 -m zipapp \ @@ -26,6 +26,7 @@ docker-tests: docker run --pull=always -v `pwd`:/app -w /app --rm python:3.9 sh scripts/runtests.sh # ============================================================================ +# Below targets for devs. Need pipenv, black installed requirements.txt: Pipfile.lock pipenv requirements > requirements.txt diff --git a/Pipfile.lock b/Pipfile.lock index 3d57926..8287405 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -35,11 +35,11 @@ }, "attrs": { "hashes": [ - "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04", - "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015" + "sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30", + "sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1" ], "markers": "python_version >= '3.7'", - "version": "==23.1.0" + "version": "==23.2.0" }, "python-jata": { "hashes": [ diff --git a/deploy_configs/README.md b/deploy_configs/README.md index 13abe9b..a121b2a 100644 --- a/deploy_configs/README.md +++ b/deploy_configs/README.md @@ -107,7 +107,7 @@ cd test_dir python3 -m http.server 25 ``` In local machine or a browser -You should see file listing a, b, c. Repeat for port 465, 995 to make sure firewall rules and dns is working +You should see file listing a, b, c. Repeat for port 465, 995 to make sure firewall rules and dns is working ```sh curl http://mail.example.com:25 ``` diff --git a/requirements.txt b/requirements.txt index 6c908e5..2896019 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -i https://pypi.org/simple aiosmtpd==1.4.4.post2; python_version ~= '3.7' atpublic==4.0; python_version >= '3.8' -attrs==23.1.0; python_version >= '3.7' +attrs==23.2.0; python_version >= '3.7' python-jata==1.2; python_version >= '3.8'