Skip to content

Commit 8c0dd6a

Browse files
feat: Package rxconfig.py in wheel for uvx compatibility (#44)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 2533ec8 commit 8c0dd6a

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

agentic_connector_builder_webapp/cli.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ def main() -> None:
1313
It locates the app directory (containing rxconfig.py) and runs reflex from there.
1414
"""
1515
package_dir = Path(__file__).parent
16+
cwd = Path.cwd()
1617

17-
if (package_dir / "rxconfig.py").exists():
18-
app_dir = package_dir
18+
if (cwd / "rxconfig.py").exists():
19+
app_dir = cwd
1920
elif (package_dir.parent / "rxconfig.py").exists():
2021
app_dir = package_dir.parent
22+
elif (package_dir / "rxconfig.py").exists():
23+
app_dir = package_dir
2124
else:
2225
print(
2326
"Error: Could not find rxconfig.py. "
@@ -26,6 +29,9 @@ def main() -> None:
2629
)
2730
sys.exit(1)
2831

32+
rxconfig_path = app_dir / "rxconfig.py"
33+
print(f"Using rxconfig.py from: {rxconfig_path}", file=sys.stderr)
34+
2935
cmd = ["reflex", "run"]
3036

3137
try:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111
"pydantic-ai-slim[duckduckgo]",
1212
"python-dotenv>=1.2.1",
1313
"dill>=0.4.0",
14+
"ddgs>=9.7.1,<10.0",
1415
]
1516

1617
[project.optional-dependencies]
@@ -29,6 +30,9 @@ build-backend = "hatchling.build"
2930
[tool.hatch.build.targets.wheel]
3031
packages = ["agentic_connector_builder_webapp"]
3132

33+
[tool.hatch.build.targets.wheel.force-include]
34+
"rxconfig.py" = "rxconfig.py"
35+
3236
[dependency-groups]
3337
dev = [
3438
"playwright>=1.54.0",

uv.lock

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)