Repository navigation
Expand file tree
/
Copy pathopenspec.spec
More file actions
96 lines (88 loc) · 2.53 KB
/
Copy pathopenspec.spec
File metadata and controls
96 lines (88 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import sys
import os
from pathlib import Path
block_cipher = None
project_root = Path.cwd()
orchestrator_canonical_path = project_root / "orchestrator" / "resources" / "canonical"
orchestrator_claude_path = project_root / "orchestrator" / "resources" / "claude"
skills_canonical_path = project_root / "skills" / "resources" / "canonical"
skills_claude_path = project_root / "skills" / "resources" / "claude"
package_path = project_root / "orchestrator" / "source"
def _collect_files_excluding_agents_md(src_dir, dst_prefix):
items = []
src = Path(src_dir)
if not src.exists():
return items
for path in src.rglob("*"):
if path.is_file() and path.name != "AGENTS.md":
rel = path.relative_to(src)
dst = str(Path(dst_prefix) / rel.parent)
items.append((str(path), dst))
return items
a = Analysis(
[str(package_path / "__main__.py")],
pathex=[str(project_root)],
binaries=[],
datas=(
_collect_files_excluding_agents_md(
orchestrator_canonical_path, "resources/canonical"
)
+ _collect_files_excluding_agents_md(
orchestrator_claude_path, "resources/claude"
)
+ _collect_files_excluding_agents_md(
skills_canonical_path, "skills/resources/canonical"
)
+ _collect_files_excluding_agents_md(
skills_claude_path, "skills/resources/claude"
)
+ _collect_files_excluding_agents_md(
project_root / "orchestrator" / "source" / "orchestrator",
"source/orchestrator",
)
+ _collect_files_excluding_agents_md(
project_root / "orchestrator" / "source" / "lib", "source/lib"
)
),
hiddenimports=[
"typer",
"toml",
"rich",
"rich.console",
"rich.table",
"yaml",
"subprocess",
"tempfile",
"select",
],
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="openspec-extended",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)