Skip to content

Commit b686b14

Browse files
committed
format: formatted aw-server.spec
1 parent 2aca922 commit b686b14

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

aw-server.spec

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,46 @@
11
# -*- mode: python -*-
22
# vi: set ft=python :
3-
43
import os
54

65
import aw_core
7-
aw_core_path = os.path.dirname(aw_core.__file__)
8-
96
import flask_restx
7+
8+
aw_core_path = os.path.dirname(aw_core.__file__)
109
restx_path = os.path.dirname(flask_restx.__file__)
1110

11+
name = "aw-server"
1212
block_cipher = None
1313

1414

15-
a = Analysis(['__main__.py'],
16-
pathex=[],
17-
binaries=None,
18-
datas=[
19-
('aw_server/static', 'aw_server/static'),
20-
21-
(os.path.join(restx_path, 'templates'), 'flask_restx/templates'),
22-
(os.path.join(restx_path, 'static'), 'flask_restx/static'),
23-
(os.path.join(aw_core_path, 'schemas'), 'aw_core/schemas')
24-
],
25-
hiddenimports=[],
26-
hookspath=[],
27-
runtime_hooks=[],
28-
excludes=[],
29-
win_no_prefer_redirects=False,
30-
win_private_assemblies=False,
31-
cipher=block_cipher)
32-
pyz = PYZ(a.pure, a.zipped_data,
33-
cipher=block_cipher)
34-
exe = EXE(pyz,
35-
a.scripts,
36-
exclude_binaries=True,
37-
name='aw-server',
38-
debug=False,
39-
strip=False,
40-
upx=True,
41-
console=True )
42-
coll = COLLECT(exe,
43-
a.binaries,
44-
a.zipfiles,
45-
a.datas,
46-
strip=False,
47-
upx=True,
48-
name='aw-server')
15+
a = Analysis(
16+
["__main__.py"],
17+
pathex=[],
18+
binaries=None,
19+
datas=[
20+
("aw_server/static", "aw_server/static"),
21+
(os.path.join(restx_path, "templates"), "flask_restx/templates"),
22+
(os.path.join(restx_path, "static"), "flask_restx/static"),
23+
(os.path.join(aw_core_path, "schemas"), "aw_core/schemas"),
24+
],
25+
hiddenimports=[],
26+
hookspath=[],
27+
runtime_hooks=[],
28+
excludes=[],
29+
win_no_prefer_redirects=False,
30+
win_private_assemblies=False,
31+
cipher=block_cipher,
32+
)
33+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
34+
exe = EXE(
35+
pyz,
36+
a.scripts,
37+
exclude_binaries=True,
38+
name=name,
39+
debug=False,
40+
strip=False,
41+
upx=True,
42+
console=True,
43+
)
44+
coll = COLLECT(
45+
exe, a.binaries, a.zipfiles, a.datas, strip=False, upx=True, name="aw-server"
46+
)

0 commit comments

Comments
 (0)