test_ok1/testing/cx_freeze/runtests_setup.py

15 lines
425 B
Python
Raw Normal View History

"""
Sample setup.py script that generates an executable with pytest runner embedded.
"""
from cx_Freeze import setup, Executable
import pytest
setup(
name="runtests",
version="0.1",
description="exemple of how embedding py.test into an executable using cx_freeze",
executables=[Executable("runtests_script.py")],
options={"build_exe": {'includes': pytest.cx_freeze_support.includes()}},
)