You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/posts/2025/2025-08-26-python-uv-cheat-sheet.md
+78Lines changed: 78 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -568,3 +568,81 @@ The tool will be installed in an isolated environment in the user's cache direct
568
568
## Workspace
569
569
570
570
To be continued.
571
+
572
+
## Migrating from pip requirements files to uv
573
+
574
+
Say a project uses `requirements.txt` to manage dependencies, there's no setup.py, the build config is declared in the `pyproject.toml` and now we want to migrate to `uv` with `pyproject.toml`.
575
+
576
+
Before the migration, there're 3 req files:
577
+
578
+
```bash
579
+
requirements/
580
+
base.txt
581
+
dev.txt
582
+
docs.txt
583
+
```
584
+
585
+
and they're declared as dynamic dependencies in `pyproject.toml`.
0 commit comments