Skip to content

Commit

Permalink
Merge pull request #57 from Software-Engineering-DHBW/buildApp
Browse files Browse the repository at this point in the history
Build app
  • Loading branch information
SammyDerksen authored Mar 29, 2022
2 parents 99e5637 + b61b233 commit 3e8ab39
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/venv/
/.eggs/
/requirements.txt
/fix_app_qt_folder_names_for_codesign.py
2 changes: 0 additions & 2 deletions Learn.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from gui import GUI


Expand Down
4 changes: 2 additions & 2 deletions defaults/Defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pickle
import os


class Defaults(object):
class __Defaults:
def __init__(self, filename=os.path.join("defaults", "defaults.pkl")):
Expand All @@ -28,8 +29,7 @@ def get(self, key):
self.getDefaults()
try:
return self.__defaults[key]
except KeyError as e:
# return ex.NotFoundError()
except KeyError:
return ""

def set(self, key, val):
Expand Down
15 changes: 15 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
PyQt5~=5.15.6
pandas~=1.4.1
qroundprogressbar~=1.0.0
modulegraph~=0.19.2
py2app~=0.27
macholib~=1.16
setuptools~=61.0.0
altgraph~=0.17.2
pync~=2.0.3
certifi~=2021.10.8
PyAutoGUI~=0.9.53
numpy~=1.22.3
psutil~=5.9.0
wmctrl~=0.4
PyQtWebEngine
14 changes: 9 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@
from setuptools import setup

APP = ['Learn.py']
DATA_FILES = ['images',
'defaults',
'gui',
'classes',
'style.css']
DATA_FILES = [
'images',
'defaults',
'style.css']
OPTIONS = {
'iconfile': 'images/Logo.png',
}
PACKAGES = [
'gui',
'classes'
]

setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
packages=PACKAGES
)

0 comments on commit 3e8ab39

Please sign in to comment.