/
niceSOFT
/
python3-pytest
Обзор
Документация
Войти
/
niceSOFT
/
python3-pytest
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.3.0.dev0
testing/freeze/create_executable.py
13 строк
426 B
Pierre Sassoulas
[ruff] Fix all consider [*cats, garfield] instead of cats + [garfield]
02 фев 2024, 17:18
02 фев 2024, 17:18
233ab89
Код
Авторство
О чём код?
"""Generate an executable with pytest runner embedded using PyInstaller.""" if __name__ == "__main__": import subprocess import pytest hidden = [] for x in pytest.freeze_includes(): hidden.extend(["--hidden-import", x]) hidden.extend(["--hidden-import", "distutils"]) args = ["pyinstaller", "--noconfirm", *hidden, "runtests_script.py"] subprocess.check_call(" ".join(args), shell=True)