diff --git a/.gitignore b/.gitignore index bac626c..4c289dc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__/ .idea/ .kekse dist/ +build/ diff --git a/README.md b/README.md index 4bdf974..1e858cf 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,20 @@ This is a poetry managed project. For details see: * https://python-poetry.org/docs/#installation * https://python-poetry.org/docs/basic-usage/ +## Test + +``poetry run pytest`` + +## Build + +### Python + +``poetry build`` + +### App Image + +``poetry run python -m nuitka --standalone --onefile --output-dir=build/nuitka timebot/app.py`` + # ERRORS ## SSL verify error diff --git a/poetry.lock b/poetry.lock index 230ce72..7d3c7bf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -80,6 +80,14 @@ category = "dev" optional = false python-versions = ">=3.5" +[[package]] +name = "nuitka" +version = "0.6.19.5" +description = "Python compiler with full language support and CPython compatibility" +category = "dev" +optional = false +python-versions = "*" + [[package]] name = "packaging" version = "21.3" @@ -209,7 +217,7 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytes [metadata] lock-version = "1.1" python-versions = "^3.6" -content-hash = "90a881b9873674d1beb1cbae32c605d019b3f2a945780d9fff9f98f2ad26aa02" +content-hash = "69c9457fa471c11ea8c160fbc1fd743e319c7cf8fd88730a60f318d4059e7448" [metadata.files] atomicwrites = [ @@ -244,6 +252,9 @@ more-itertools = [ {file = "more-itertools-8.12.0.tar.gz", hash = "sha256:7dc6ad46f05f545f900dd59e8dfb4e84a4827b97b3cfecb175ea0c7d247f6064"}, {file = "more_itertools-8.12.0-py3-none-any.whl", hash = "sha256:43e6dd9942dffd72661a2c4ef383ad7da1e6a3e968a927ad7a6083ab410a688b"}, ] +nuitka = [ + {file = "Nuitka-0.6.19.5.tar.gz", hash = "sha256:b100789ea71aff8814cf52958e20f82c4c5a01aaa8a8eca38cd6a7e1cc5cae25"}, +] packaging = [ {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"}, {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"}, diff --git a/pyproject.toml b/pyproject.toml index 797f3a8..7b33f84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,7 @@ name = "timebot" version = "0.1.0" description = "" authors = ["Maximilian Zettler "] +readme = "README.md" [tool.poetry.scripts] timebot = 'timebot.app:run' @@ -13,6 +14,7 @@ requests = "^2.27.1" [tool.poetry.dev-dependencies] pytest = "^5.2" +Nuitka = "^0.6.15" [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/timebot/app.py b/timebot/app.py index 1ccfd5f..907b891 100644 --- a/timebot/app.py +++ b/timebot/app.py @@ -114,3 +114,8 @@ def run(): sys.exit(1) sys.exit(0) + + +if __name__ == "__main__": + run() +