From c734a7f5e70dc3d93052696fcf56bda5b0d96e54 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Tue, 28 Aug 2018 19:24:54 +0200 Subject: [PATCH] Test pyinstaller spec file --- .gitignore | 3 +++ luftdaten-tool.spec | 29 +++++++++++++++++++++++++++++ requirements.txt | 5 +++++ 3 files changed, 37 insertions(+) create mode 100644 luftdaten-tool.spec diff --git a/.gitignore b/.gitignore index 41598c0..cd456c5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ *.py[oc] *.swp +build/ +dist/ + # Ignore compiled Qt assets *.qm gui/*.py diff --git a/luftdaten-tool.spec b/luftdaten-tool.spec new file mode 100644 index 0000000..c12df00 --- /dev/null +++ b/luftdaten-tool.spec @@ -0,0 +1,29 @@ +# -*- mode: python -*- + +block_cipher = None + + +a = Analysis(['luftdaten-tool.py'], + pathex=['.'], + binaries=[], + datas=[], + hiddenimports=['PyQt5.sip'], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + name='luftdaten-tool', + debug=False, + strip=False, + upx=True, + runtime_tmpdir=None, + console=True ) diff --git a/requirements.txt b/requirements.txt index 8035f8f..26ee36a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,14 @@ +altgraph==0.16.1 certifi==2018.8.24 chardet==3.0.4 ecdsa==0.13 esptool==2.5.0 +future==0.16.0 idna==2.7 +macholib==1.11 +pefile==2018.8.8 pyaes==1.6.1 +PyInstaller==3.3.1 PyQt5==5.11.2 PyQt5-sip==4.19.12 pyserial==3.4