Your team wants to move from `pip` + `requirements.txt` to `uv`. What do you evaluate?
IntermediateScenarioTesting, CI/CD, packaging & services
Answer
Situation read → Tooling change; benefits are speed and a real lock file.
What I'd do →
- Measure current CI install time vs
uv pip syncoruv sync. - Check compatibility: private indexes and auth, platform-specific wheels, Dependabot/Renovate support for
uv.lock. - Migrate one repo:
pyproject.tomlwith dependencies,uv lock, CI withastral-sh/setup-uvand cache. - Keep
uv export --format requirements-txtavailable for consumers that need it.
Why → Measured pilots avoid tooling churn for its own sake.
Interview tip → Mention that uv can also install Python itself, replacing pyenv in CI.
More on Testing, CI/CD, packaging & services
You join a team whose Python automation repo has no tests. Where do you start?BeginnerYour pytest suite takes 12 minutes. How do you speed it up?IntermediateA test passes locally but fails in CI only when run with the rest of the suite. What do you suspect?IntermediateYou want a reusable CI pipeline for 15 Python tool repos. What goes in it?IntermediateYour Python Docker image is 1.1 GB. How do you shrink it?IntermediateYou want to distribute an internal CLI to 200 engineers. What are your options?Intermediate