Skip to content

Commit fb8bbc6

Browse files
committed
Add splitgraph.ingestion.dbt to PyInstaller
[skip test]
1 parent 6c73905 commit fb8bbc6

File tree

1 file changed

+39
-31
lines changed

1 file changed

+39
-31
lines changed

splitgraph.spec

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,44 @@ datas = []
1515
# proot = os.path.dirname(importlib.import_module(package).__file__)
1616
# datas.extend((os.path.join(proot, f), package) for f in files)
1717

18-
a = Analysis(['bin/sgr'],
19-
pathex=['.'],
20-
# Imports that aren't toplevel or explicit (e.g. pyyaml is imported inline in sgr to speed sgr invocations up)
21-
hiddenimports=["splitgraph.hooks.s3", "splitgraph.hooks.splitfile_commands",
22-
"splitgraph.ingestion.socrata.mount", "splitgraph.ingestion.socrata.querying",
23-
"splitgraph.ingestion.snowflake",
24-
# https://github.com/pypa/setuptools/issues/1963#issuecomment-574265532
25-
"pkg_resources.py2_warn",
26-
"target_postgres"],
27-
hookspath=[],
28-
# Linux build on Travis pulls in numpy for no obvious reason
29-
excludes=['numpy'],
30-
runtime_hooks=[],
31-
cipher=block_cipher,
32-
datas=datas)
18+
a = Analysis(
19+
["bin/sgr"],
20+
pathex=["."],
21+
# Imports that aren't toplevel or explicit (e.g. pyyaml is imported inline in sgr to speed sgr invocations up)
22+
hiddenimports=[
23+
"splitgraph.hooks.s3",
24+
"splitgraph.hooks.splitfile_commands",
25+
"splitgraph.ingestion.socrata.mount",
26+
"splitgraph.ingestion.socrata.querying",
27+
"splitgraph.ingestion.dbt.data_source",
28+
"splitgraph.ingestion.snowflake",
29+
# https://github.com/pypa/setuptools/issues/1963#issuecomment-574265532
30+
"pkg_resources.py2_warn",
31+
"target_postgres",
32+
],
33+
hookspath=[],
34+
# Linux build on Travis pulls in numpy for no obvious reason
35+
excludes=["numpy"],
36+
runtime_hooks=[],
37+
cipher=block_cipher,
38+
datas=datas,
39+
)
3340

34-
a.datas += Tree('./splitgraph/resources', 'splitgraph/resources')
41+
a.datas += Tree("./splitgraph/resources", "splitgraph/resources")
3542

36-
pyz = PYZ(a.pure, a.zipped_data,
37-
cipher=block_cipher)
38-
exe = EXE(pyz,
39-
a.scripts,
40-
a.binaries,
41-
a.zipfiles,
42-
a.datas,
43-
[],
44-
name='sgr',
45-
debug=False,
46-
bootloader_ignore_signals=False,
47-
strip=False,
48-
upx=True,
49-
runtime_tmpdir=None,
50-
console=True )
43+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
44+
exe = EXE(
45+
pyz,
46+
a.scripts,
47+
a.binaries,
48+
a.zipfiles,
49+
a.datas,
50+
[],
51+
name="sgr",
52+
debug=False,
53+
bootloader_ignore_signals=False,
54+
strip=False,
55+
upx=True,
56+
runtime_tmpdir=None,
57+
console=True,
58+
)

0 commit comments

Comments
 (0)