Make reflex init and docs uv-first#6287
Conversation
Signed-off-by: Gautam Manchandani <gautammanch@Gautams-MacBook-Air.local>
Greptile SummaryThis PR makes Key changes:
Minor issues: the Windows uv installation command is absent from the README, and a Confidence Score: 4/5Safe to merge — core logic is correct and well-tested, backward compatibility with requirements.txt is preserved. No P0 or P1 findings. Three P2 issues remain: missing Windows install guidance in README, a RequirementsTxt constant used in a pyproject.toml message, and a minor regex delimiter issue in the fallback TOML parser. None of these block merge but the README gap is worth addressing before release. README.md (missing Windows uv install guidance), reflex/reflex.py (RequirementsTxt constant in pyproject message), reflex/utils/frontend_skeleton.py (fallback regex) Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[reflex init] --> B{rxconfig.py exists?}
B -- Yes --> C[reinit: skip app creation]
B -- No --> D[initialize_default_app / remote template]
D --> E[initialize_python_manifest]
C --> E
E --> F{pyproject.toml exists?}
F -- Yes --> G{has reflex dependency?}
G -- Yes --> H[return kind=pyproject]
G -- No --> I[return kind=pyproject\nneeds_manual=True]
F -- No --> J{requirements.txt exists?}
J -- Yes --> K[_initialize_requirements_txt\nreturn kind=requirements]
J -- No --> L[_initialize_pyproject_toml\ncreate new file\nreturn kind=pyproject]
H --> M{manifest.kind?}
I --> M
K --> M
L --> M
M -- pyproject --> N[Show: uv sync + uv run reflex run]
M -- requirements --> O[Show: uv pip install -r requirements.txt]
Reviews (1): Last reviewed commit: "Make reflex init uv-first" | Re-trigger Greptile |
All Submissions:
Type of change
New Feature Submission:
Changes To Core Features:
Description
reflex initprojects generatepyproject.tomlby defaultrequirements.txtprojects working without creating a second manifestuvpyproject.tomldependency detection so only real Reflex dependencies countAfter these steps, you're ready to open a pull request.
closes #6269