From 29dc8dc2edf4822a61205e7b53e758f930845ec7 Mon Sep 17 00:00:00 2001 From: Boldi Date: Mon, 2 Oct 2023 16:52:05 +0100 Subject: [PATCH] Trying to fix deployment --- .github/workflows/lint.yml | 4 ++++ pyproject.toml | 15 +++++++++++++++ setup.py | 7 +++++++ 3 files changed, 26 insertions(+) create mode 100644 setup.py diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7b0dc76b..aa6d2eb0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -29,3 +29,7 @@ jobs: continue-on-error: true run: pylint zxlive + - name: mypy + continue-on-error: true + run: + mypy zxlive diff --git a/pyproject.toml b/pyproject.toml index 423e9eeb..846e4092 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,8 @@ test = [ "PySide6-stubs", "shapely-stubs @ git+https://github.com/ciscorn/shapely-stubs.git", "mypy", + "pyproject-flake8", + "pylint", ] [project.urls] @@ -71,3 +73,16 @@ disallow_untyped_defs = true disable_error_code = [ "import", ] + +[tool.distutils.build_exe] +excludes = [ + "IPython", + "jupyter", + "pytest", + "mypy", +] +zip_include_packages = [ + "encodings", + "zxlive", + "pyzx", +] \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..8936e5bc --- /dev/null +++ b/setup.py @@ -0,0 +1,7 @@ +import sys +from cx_Freeze import setup, Executable + +# base="Win32GUI" should be used only for Windows GUI app +base = "Win32GUI" if sys.platform == "win32" else None + +setup(executables=[Executable("zxlive/__main__.py", base=base, target_name="zxlive")])