voodoo-framework 1.0.2__tar.gz → 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/PKG-INFO +1 -1
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/pyproject.toml +1 -1
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/cli.py +39 -2
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/PKG-INFO +1 -1
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/README.md +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/setup.cfg +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/tests/test_components.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/tests/test_data.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/tests/test_i18n.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/tests/test_queue.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/tests/test_theme.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/tests/test_websocket.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/__init__.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/agent.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/api.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/components.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/config.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/core.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/data.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/i18n.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/mcp.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/queue.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/status.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/storage.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/telemetry.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo/theme.py +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/SOURCES.txt +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/dependency_links.txt +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/entry_points.txt +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/requires.txt +0 -0
- {voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/top_level.txt +0 -0
|
@@ -139,8 +139,36 @@ from voodoo.config import config
|
|
|
139
139
|
app = create_app()
|
|
140
140
|
|
|
141
141
|
if __name__ == "__main__":
|
|
142
|
-
uvicorn.run(
|
|
142
|
+
uvicorn.run(
|
|
143
|
+
"main:app",
|
|
144
|
+
host=config.host,
|
|
145
|
+
port=config.port,
|
|
146
|
+
reload=True,
|
|
147
|
+
ws_max_size=16777216,
|
|
148
|
+
ws_max_queue=32,
|
|
149
|
+
h11_max_incomplete_event_size=5242880
|
|
150
|
+
)
|
|
143
151
|
""")
|
|
152
|
+
|
|
153
|
+
# Set up local virtual environment and install dependencies
|
|
154
|
+
if (project_dir / "pyproject.toml").exists():
|
|
155
|
+
task = progress.add_task(description="Setting up local virtual environment (.venv)...", total=None)
|
|
156
|
+
import shutil
|
|
157
|
+
has_uv = shutil.which("uv") is not None
|
|
158
|
+
try:
|
|
159
|
+
if has_uv:
|
|
160
|
+
subprocess.run(["uv", "venv"], cwd=project_dir, check=True, capture_output=True)
|
|
161
|
+
progress.update(task, description="Installing dependencies with uv...")
|
|
162
|
+
subprocess.run(["uv", "pip", "install", "-e", "."], cwd=project_dir, check=True, capture_output=True)
|
|
163
|
+
else:
|
|
164
|
+
subprocess.run([sys.executable, "-m", "venv", ".venv"], cwd=project_dir, check=True, capture_output=True)
|
|
165
|
+
progress.update(task, description="Installing dependencies with pip...")
|
|
166
|
+
pip_exe = ".venv/bin/pip" if os.name != "nt" else ".venv\\Scripts\\pip.exe"
|
|
167
|
+
subprocess.run([str(project_dir / pip_exe), "install", "-e", "."], cwd=project_dir, check=True, capture_output=True)
|
|
168
|
+
except subprocess.CalledProcessError as e:
|
|
169
|
+
console.print(f"\n[bold yellow]Warning:[/bold yellow] Failed to set up local environment or install dependencies.")
|
|
170
|
+
if e.stderr:
|
|
171
|
+
console.print(f"[dim]{e.stderr.decode()}[/dim]")
|
|
144
172
|
|
|
145
173
|
console.print("[bold green]✓ Project scaffolded successfully![/bold green]")
|
|
146
174
|
console.print(f"\nNext steps:\n [cyan]cd {project_name}[/cyan]\n [cyan]voodoo dev[/cyan]\n")
|
|
@@ -171,13 +199,22 @@ def dev(
|
|
|
171
199
|
import sys
|
|
172
200
|
import os
|
|
173
201
|
|
|
202
|
+
local_venv_python = Path(".venv/bin/python") if os.name != "nt" else Path(".venv/Scripts/python.exe")
|
|
203
|
+
|
|
204
|
+
if local_venv_python.exists():
|
|
205
|
+
python_exe = str(local_venv_python.absolute())
|
|
206
|
+
console.print("[dim]Using local virtual environment.[/dim]")
|
|
207
|
+
else:
|
|
208
|
+
python_exe = sys.executable
|
|
209
|
+
console.print("[dim]Using global environment.[/dim]")
|
|
210
|
+
|
|
174
211
|
env = os.environ.copy()
|
|
175
212
|
env["PYTHONPATH"] = os.pathsep.join(sys.path)
|
|
176
213
|
|
|
177
214
|
try:
|
|
178
215
|
# We let uvicorn take over the terminal output
|
|
179
216
|
subprocess.run(
|
|
180
|
-
[
|
|
217
|
+
[python_exe, "-m", "uvicorn", app_str, "--reload", "--port", str(port), "--h11-max-incomplete-event-size", "5242880"],
|
|
181
218
|
env=env
|
|
182
219
|
)
|
|
183
220
|
except KeyboardInterrupt:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{voodoo_framework-1.0.2 → voodoo_framework-1.0.4}/voodoo_framework.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|