diff --git a/.github/workflows/config.json b/.github/workflows/config.json index eed86ba..ccccab9 100644 --- a/.github/workflows/config.json +++ b/.github/workflows/config.json @@ -1,4 +1,5 @@ { "node": true, - "docker": true -} \ No newline at end of file + "docker": true, + "pyinstaller": true +} diff --git a/requirements.txt b/requirements.txt index 299a779..715640a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,3 @@ # pip-compile --output-file=./requirements.txt ./requirements.in # -opengeodeweb-back==6.*,>=6.1.3rc1 diff --git a/vease-back.spec b/vease-back.spec new file mode 100644 index 0000000..f49a05a --- /dev/null +++ b/vease-back.spec @@ -0,0 +1,46 @@ +# -*- mode: python ; coding: utf-8 -*- +# pyinstaller --onefile --collect-data opengeodeweb_back --collect-data vease_back --recursive-copy-metadata vease_back src/vease_back/app.py -n vease-back +from PyInstaller.utils.hooks import collect_data_files +from PyInstaller.utils.hooks import copy_metadata + +datas = [] +datas += collect_data_files('opengeodeweb_back') +datas += collect_data_files('vease_back') +datas += copy_metadata('vease_back', recursive=True) + + +a = Analysis( + ['src/vease_back/app.py'], + pathex=[], + binaries=[], + datas=datas, + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='vease-back', + 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, +)