From b87e52347b131fc55da3980fcbd92b527ed436ee Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Wed, 16 Nov 2022 11:18:31 -0500 Subject: [PATCH] add spec file for building with pyinstaller --- relay.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ setup.cfg | 4 ++++ 2 files changed, 48 insertions(+) create mode 100644 relay.spec diff --git a/relay.spec b/relay.spec new file mode 100644 index 0000000..57fedc7 --- /dev/null +++ b/relay.spec @@ -0,0 +1,44 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis( + ['relay/__main__.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + 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='activityrelay', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) diff --git a/setup.cfg b/setup.cfg index ce5d52f..2345151 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,6 +30,10 @@ install_requires = PyYAML >= 5.0.0 python_requires = >=3.6 +[options.extras_require] +dev = + pyinstaller >= 5.6.0 + [options.entry_points] console_scripts = activityrelay = relay.manage:main