Convert legacy Python requirements.txt files into modern PEP 621 compliant pyproject.toml dependencies for uv, Poetry, and Flit.
// Migrated configuration for requirements-txt-to-pyproject-toml
fastapi>=0.110.0
pydantic>=2.6.0
uvicorn[standard]>=0.28.0
sqlalchemy>=2.0.0
httpx==0.27.0
# Development dependencies
pytest>=8.0.0
ruff>=0.3.0
Targeting automated migration for requirements-txt-to-pyproject-toml. Review exported syntax for project-specific configurations.
Paste your requirements.txt file.
The migrator categorizes production and development dependencies.
Generate a standardized `[project.dependencies]` block.
Save as `pyproject.toml` and manage dependencies with `uv pip install` or `poetry install`.
name: Python CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v2
- run: uv run pytest
Perform identical migration routines across entire directories or repositories in your local terminal:
devflow migrate reqs-to-pyproject -i requirements.txt -o pyproject.toml