From 1790af17f176fc1273b0367decc3713cc6fba317 Mon Sep 17 00:00:00 2001 From: Torsten Kilias Date: Wed, 12 Feb 2025 06:25:37 +0100 Subject: [PATCH] Add nox session that builds a executable for the cli with pyinstaller. --- noxfile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/noxfile.py b/noxfile.py index de58332888..17c9b80825 100644 --- a/noxfile.py +++ b/noxfile.py @@ -145,3 +145,9 @@ def unit_tests(session: nox.Session) -> None: context = _context(session, coverage=True) _unit_tests(session, PROJECT_CONFIG, context) + +@nox.session(name="build-executable", python=False) +def build_executable(session: nox.Session): + with session.chdir(ROOT): + session.run("poetry", "run", "pyinstaller", "-F", "exasol_integration_test_docker_environment/main.py", "--collect-datas", "exasol_integration_test_docker_environment.templates", "--collect-datas", "exasol_integration_test_docker_environment.docker_db_config") +