2014-07-31 08:50:00 +08:00
|
|
|
"""
|
|
|
|
Sample setup.py script that generates an executable with pytest runner embedded.
|
|
|
|
"""
|
2014-07-31 09:28:03 +08:00
|
|
|
if __name__ == '__main__':
|
|
|
|
from cx_Freeze import setup, Executable
|
|
|
|
import pytest
|
2014-07-31 08:50:00 +08:00
|
|
|
|
2014-07-31 09:28:03 +08:00
|
|
|
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()}},
|
|
|
|
)
|
2014-07-31 06:16:51 +08:00
|
|
|
|