From 0563a44873cd015dbf08d1c7faece85cedf1749f Mon Sep 17 00:00:00 2001 From: yshalsager Date: Mon, 7 Mar 2022 13:35:47 +0200 Subject: [PATCH] ci: Add pyinstaller requirements Signed-off-by: yshalsager --- .github/workflows/ci.yml | 2 ++ .gitignore | 2 +- requirements.txt | 42 ++++++++++++++++++++++++++++++++++++++++ wit_transcriber.spec | 40 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 requirements.txt create mode 100644 wit_transcriber.spec diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1fa1e0..e50e788 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: uses: yshalsager/pyinstaller-action-windows@main with: path: . + spec: wit_transcriber.spec - uses: actions/upload-artifact@v2 with: @@ -27,6 +28,7 @@ jobs: uses: yshalsager/pyinstaller-action-linux@main with: path: . + spec: wit_transcriber.spec - uses: actions/upload-artifact@v2 with: diff --git a/.gitignore b/.gitignore index 4d2493a..2ffb143 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,7 @@ MANIFEST # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest -*.spec +#*.spec # Installer logs pip-log.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d95ea1b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,42 @@ +altgraph==0.17.2; python_version >= "3.6" and python_version < "3.11" and sys_platform == "darwin" +anyio==3.5.0; python_full_version >= "3.6.2" and python_version >= "3.6" +black==21.12b0; python_full_version >= "3.6.2" +certifi==2021.10.8; python_version >= "3.6" +cfgv==3.3.1; python_full_version >= "3.6.1" +charset-normalizer==2.0.12; python_full_version >= "3.5.0" and python_version >= "3.6" +click==8.0.4; python_version >= "3.6" and python_full_version >= "3.6.2" +colorama==0.4.4; python_version >= "3.6" and python_full_version >= "3.6.2" and platform_system == "Windows" +distlib==0.3.4; python_full_version >= "3.6.1" +filelock==3.6.0; python_version >= "3.7" and python_full_version >= "3.6.1" +flake8==4.0.1; python_version >= "3.6" +future==0.18.2; python_version >= "3.6" and python_version < "3.11" and sys_platform == "win32" and python_full_version >= "3.6.0" +h11==0.12.0; python_version >= "3.6" +httpcore==0.14.7; python_version >= "3.6" +httpx==0.22.0; python_version >= "3.6" +identify==2.4.11; python_version >= "3.7" and python_full_version >= "3.6.1" +idna==3.3; python_version >= "3.6" and python_full_version >= "3.6.2" +isort==5.10.1; python_full_version >= "3.6.1" and python_version < "4.0" +macholib==1.15.2; python_version >= "3.6" and python_version < "3.11" and sys_platform == "darwin" +mccabe==0.6.1; python_version >= "3.6" +mypy-extensions==0.4.3; python_full_version >= "3.6.2" and python_version >= "3.6" +mypy==0.931; python_version >= "3.6" +nodeenv==1.6.0; python_full_version >= "3.6.1" +pathspec==0.9.0; python_full_version >= "3.6.2" +pefile==2021.9.3; python_version >= "3.6" and python_version < "3.11" and sys_platform == "win32" and python_full_version >= "3.6.0" +platformdirs==2.5.1; python_version >= "3.7" and python_full_version >= "3.6.2" +pre-commit==2.17.0; python_full_version >= "3.6.1" +pycodestyle==2.8.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" +pydub==0.25.1 +pyflakes==2.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6" +pyinstaller-hooks-contrib==2022.2; python_version >= "3.7" and python_version < "3.11" +pyinstaller==4.10; python_version >= "3.6" and python_version < "3.11" +pywin32-ctypes==0.2.0; python_version >= "3.6" and python_version < "3.11" and sys_platform == "win32" +pyyaml==6.0; python_version >= "3.6" and python_full_version >= "3.6.1" +ratelimiter==1.2.0.post0 +rfc3986==1.5.0; python_version >= "3.6" +six==1.16.0; python_full_version >= "3.6.1" +sniffio==1.2.0; python_full_version >= "3.6.2" and python_version >= "3.6" +toml==0.10.2; python_full_version >= "3.6.1" +tomli==1.2.3; python_version >= "3.6" and python_full_version >= "3.6.2" +typing-extensions==4.1.1 +virtualenv==20.13.2; python_full_version >= "3.6.1" diff --git a/wit_transcriber.spec b/wit_transcriber.spec new file mode 100644 index 0000000..862fe65 --- /dev/null +++ b/wit_transcriber.spec @@ -0,0 +1,40 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis(['wit_transcriber.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig=None, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) + +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='wit_transcriber', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None )