Skip to content

Commit

Permalink
Merge pull request #60 from LEv145:dev
Browse files Browse the repository at this point in the history
Add pyinstaller
  • Loading branch information
LEv145 authored Nov 22, 2021
2 parents c860771 + 895d4d9 commit 29d2378
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ test.py
dist
spore.py.egg-info
static_tests
.pyinstaller_*
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.PHONY: build
build:
pyinstaller pyinstaller.spec \
--distpath .pyinstaller_dist \
--workpath .pyinstaller_build

.PHONY: clean
clean:
rm .pyinstaller_*
43 changes: 43 additions & 0 deletions pyinstaller.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
["spore_api/__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="spore_cli",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
10 changes: 6 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
aiohttp==3.8.0
xmltodict==0.12.0
dataclasses_json==0.5.6
click>=8.0.3
aiohttp
xmltodict
dataclasses_json
click
asyncclick
anyio
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ flake8>=4.0.1
mypy>=0.910
mkinit
black
pyinstaller
40 changes: 40 additions & 0 deletions spore_api.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(['spore_api/__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='spore_api',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )
2 changes: 1 addition & 1 deletion spore_api/scripts/spore_cli.py → spore_api/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import asyncclick as click

from spore_api import SporeClient
from spore_api.enums import AssetType, ViewType
from spore_api import AssetType, ViewType


_client = SporeClient()
Expand Down
Empty file removed spore_api/scripts/__init__.py
Empty file.

0 comments on commit 29d2378

Please sign in to comment.