-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvera.spec
More file actions
136 lines (127 loc) · 3.28 KB
/
vera.spec
File metadata and controls
136 lines (127 loc) · 3.28 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# -*- mode: python ; coding: utf-8 -*-
"""Vera PyInstaller spec — bundles the Python backend into a distributable."""
import sys
from pathlib import Path
from PyInstaller.utils.hooks import collect_all, collect_submodules
block_cipher = None
ROOT = Path(SPECPATH)
# Collect litellm and tiktoken fully (they discover providers/encodings at runtime)
litellm_datas, litellm_binaries, litellm_hiddenimports = collect_all("litellm")
tiktoken_datas, tiktoken_binaries, tiktoken_hiddenimports = collect_all("tiktoken")
a = Analysis(
[str(ROOT / "main.py")],
pathex=[str(ROOT)],
binaries=litellm_binaries + tiktoken_binaries,
datas=[
(str(ROOT / "vera" / "static"), "vera/static"),
(str(ROOT / "config.py"), "."),
(str(ROOT / ".env.example"), "."),
# Bundle data skeleton for first-run
(str(ROOT / "data"), "data"),
]
+ litellm_datas
+ tiktoken_datas,
hiddenimports=[
# --- LiteLLM & LLM providers ---
"litellm",
"litellm.llms",
*litellm_hiddenimports,
# --- Tiktoken (tokenizer) ---
"tiktoken",
"tiktoken_ext",
"tiktoken_ext.openai_public",
*tiktoken_hiddenimports,
# --- Sentence transformers / FAISS ---
"sentence_transformers",
"faiss",
# --- Web framework ---
"uvicorn",
"uvicorn.logging",
"uvicorn.loops",
"uvicorn.loops.auto",
"uvicorn.protocols",
"uvicorn.protocols.http",
"uvicorn.protocols.http.auto",
"uvicorn.protocols.websockets",
"uvicorn.protocols.websockets.auto",
"uvicorn.lifespan",
"uvicorn.lifespan.on",
"fastapi",
"pydantic",
"pydantic_settings",
"websockets",
"httpx",
# --- LangChain / LangGraph ---
"langchain_core",
"langgraph",
"langgraph.graph",
"langgraph.graph.state",
# --- Voice / TTS / STT ---
"pyttsx3",
"pyttsx3.drivers",
"pyttsx3.drivers.sapi5",
"edge_tts",
# --- Image / Vision ---
"PIL",
"PIL.Image",
# --- Browser automation ---
"playwright",
"playwright.sync_api",
"playwright.async_api",
# --- Security ---
"cryptography",
"cryptography.fernet",
# --- Utilities ---
"duckduckgo_search",
"beautifulsoup4",
"bs4",
"yfinance",
"pyautogui",
"psutil",
"pyperclip",
"chardet",
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
"tkinter",
"matplotlib",
"scipy",
"jupyter",
"notebook",
"IPython",
"pytest",
"ruff",
"bandit",
"safety",
],
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,
[],
exclude_binaries=True,
name="vera-server",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
icon=None,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name="vera-server",
)