-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new requiremnts.txt for smooth packaging on OSX
- Loading branch information
1 parent
b2eb568
commit fe1a168
Showing
71 changed files
with
183 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
|
||
block_cipher = None | ||
|
||
import distutils | ||
if distutils.distutils_path.endswith('__init__.py'): | ||
distutils.distutils_path = os.path.dirname(distutils.distutils_path) | ||
|
||
|
||
a = Analysis(['application.py'], | ||
pathex=['/Users/kaali/Programs/datapod-backend-layer/Application'], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=['_striptime'], | ||
hookspath=['pyinstaller_hooks'], | ||
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='Datapod', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
runtime_tmpdir=None, | ||
console=False ) | ||
app = BUNDLE(exe, | ||
name='Datapod.app', | ||
icon=None, | ||
bundle_identifier=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
|
||
block_cipher = None | ||
|
||
import distutils | ||
if distutils.distutils_path.endswith('__init__.py'): | ||
distutils.distutils_path = os.path.dirname(distutils.distutils_path) | ||
a = Analysis(['application.py'], | ||
pathex=['/Users/kaali/Programs/datapod-backend-layer/Application'], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=['engineio.async_eventlet', '_striptime', 'engineio.async_gevent'], | ||
hookspath=['pyinstaller_hooks'], | ||
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='Datapod_OSX', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
runtime_tmpdir=None, | ||
console=False , icon='datapod.ico') | ||
app = BUNDLE(exe, | ||
name='Datapod_OSX.app', | ||
icon='datapod.ico', | ||
bundle_identifier=None) |
Binary file modified
BIN
-1 Byte
(99%)
Application/EncryptionModule/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/EncryptionModule/__pycache__/gen_mnemonic.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/EncryptionModule/__pycache__/key_derivation.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/EncryptionModule/__pycache__/symmetric.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# -*- mode: python ; coding: utf-8 -*- | ||
|
||
block_cipher = None | ||
import distutils | ||
if distutils.distutils_path.endswith('__init__.py'): | ||
distutils.distutils_path = os.path.dirname(distutils.distutils_path) | ||
|
||
a = Analysis(['../application.py'], | ||
pathex=['/Users/kaali/Programs/datapod-backend-layer/Application/Executables'], | ||
binaries=[], | ||
datas=[], | ||
hiddenimports=['_striptime'], | ||
hookspath=['../pyinstaller_hooks'], | ||
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='Datapodmac', | ||
debug=False, | ||
bootloader_ignore_signals=False, | ||
strip=False, | ||
upx=True, | ||
upx_exclude=[], | ||
runtime_tmpdir=None, | ||
console=False , icon='datapod.ico') | ||
app = BUNDLE(exe, | ||
name='Datapodmac.app', | ||
icon='datapod.ico', | ||
bundle_identifier=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
import os | ||
import platform | ||
import subprocess | ||
from loguru import logger | ||
import shutil | ||
def os_command_output(command:str, final_message:str) -> str: | ||
|
||
process = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True) | ||
while True: | ||
line = process.stdout.readline() | ||
if not line: | ||
logger.success(final_message) | ||
break | ||
yield line.decode().split("\r")[0] | ||
|
||
|
||
|
||
def build_app(): | ||
|
||
if platform.system() == "Linux": | ||
logger.info("Removing build directory") | ||
shutil.rmtree("build") | ||
backup_command = f"pyi-makespec --hidden-import _strptime --additional-hooks-dir pyinstaller_hooks --onefile --console --name Datapod --icon datapod.ico application.py" | ||
|
||
for out in os_command_output(backup_command, "Making Spec file completed"): | ||
logger.info(out) | ||
#backup_command = f"tar --create --lzma --no-check-device --verbose --listed-incremental={self.user_index} -f {temp.name} {self.raw_data_path}" | ||
command = "pyinstaller Datapod.spec" | ||
for out in os_command_output(command, "Build Complete"): | ||
logger.info(out) | ||
|
||
elif platform.system() == "Darwin": | ||
pass | ||
#backup_command = f"gtar --create --lzma --no-check-device --verbose --listed-incremental={self.user_index} -f {temp.name} {self.raw_data_path}" | ||
else: | ||
raise Exception("The platform is not available for this os distribution") | ||
|
||
|
||
if __name__ == "__main__": | ||
build_app() | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/browsers/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/browsers/__pycache__/browser_history.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/crypto/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/crypto/__pycache__/crypto_history_api.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(99%)
Application/data_sources/crypto/binance_ds/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/crypto/binance_ds/__pycache__/binance.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/facebook_ds/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/facebook_ds/__pycache__/facebook_ds.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/facebook_ds/__pycache__/facebool_api.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/auth.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/backup_functions.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/backup_new.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/errors.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/github_api.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/github_ds/__pycache__/utils.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/instagram_ds/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/instagram_ds/__pycache__/instagram_api.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/instagram_ds/__pycache__/instagram_data.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/takeout/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/takeout/__pycache__/api.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/takeout/__pycache__/images.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/takeout/__pycache__/location.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-50 Bytes
(100%)
Application/data_sources/takeout/__pycache__/parse_emails.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/data_sources/takeout/__pycache__/purchases_n_reservations.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1 Byte
(99%)
Application/database_calls/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/credentials.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/db_emails.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/db_images.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/db_profile.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/db_purchases.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/db_reservations.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/__pycache__/initialize_tables.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(99%)
Application/database_calls/coderepos/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(99%)
Application/database_calls/coderepos/github/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/coderepos/github/__pycache__/calls.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/coderepos/github/__pycache__/initialize.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/database_calls/crypto/__pycache__/db_binance.cpython-37.pyc
Binary file not shown.
Binary file modified
BIN
-1 Byte
(100%)
Application/errors_module/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+430 Bytes
Application/pyinstaller_hooks/__pycache__/hook-dateparser.cpython-37.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.