Update uvicorn to 0.45.0 - #566
Conversation
📝 WalkthroughWalkthroughThe dependency version for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~1 minute Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/requirements.txt`:
- Line 3: The uvicorn pin in requirements.txt (uvicorn==0.45.0) conflicts with
the older fastapi dependency; update the dependency resolution by either
upgrading the fastapi entry to a recent compatible release (replace
fastapi==0.6.4 with a modern version that supports Python >=3.10 and newer
Starlette/Pydantic) or else pin uvicorn to a back-compatible release that
matches your target Python runtime (e.g., choose a uvicorn version that supports
Python <3.10 if you must keep fastapi==0.6.4); modify the requirements.txt
entries for "uvicorn" and "fastapi" accordingly so both packages and their
transitive dependencies are compatible with your project's Python version.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| fastapi==0.6.4 | ||
| gitpython | ||
| uvicorn==0.4.6 | ||
| uvicorn==0.45.0 |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== Dependency pins in repo =="
rg -n --iglob '*requirements*.txt' --iglob '*setup.py' 'fastapi|uvicorn|starlette|pydantic'
echo
echo "== PyPI metadata: fastapi 0.6.4 =="
curl -s https://pypi.org/pypi/fastapi/0.6.4/json | jq '.info.requires_python, .info.requires_dist'
echo
echo "== PyPI metadata: uvicorn 0.45.0 =="
curl -s https://pypi.org/pypi/uvicorn/0.45.0/json | jq '.info.requires_python, .info.requires_dist'
echo
echo "== Search for uvicorn CLI usage/flags in deployment files =="
rg -n --iglob '*Dockerfile*' --iglob '*.yml' --iglob '*.yaml' --iglob '*.sh' \
'\buvicorn\b|--host|--port|--workers|--reload|--loop|--http|--ws|--lifespan'Repository: salimfadhley/dockerized_python_playground
Length of output: 1746
Python version incompatibility blocks this dependency change.
uvicorn==0.45.0 requires Python ≥3.10, but fastapi==0.6.4 is compatible with Python ≥3.6. This creates a hard constraint conflict: if your environment runs Python <3.10, uvicorn 0.45.0 will fail to install; if it runs Python ≥3.10, the 0.6.4 version of fastapi (released ~early 2020) may have unresolved transitive dependencies on ancient starlette (0.11.1) and pydantic (0.17–0.18.2).
Resolve by either upgrading fastapi to a recent version compatible with uvicorn 0.45.0 or pinning uvicorn to a version supporting your Python version requirement.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@src/requirements.txt` at line 3, The uvicorn pin in requirements.txt
(uvicorn==0.45.0) conflicts with the older fastapi dependency; update the
dependency resolution by either upgrading the fastapi entry to a recent
compatible release (replace fastapi==0.6.4 with a modern version that supports
Python >=3.10 and newer Starlette/Pydantic) or else pin uvicorn to a
back-compatible release that matches your target Python runtime (e.g., choose a
uvicorn version that supports Python <3.10 if you must keep fastapi==0.6.4);
modify the requirements.txt entries for "uvicorn" and "fastapi" accordingly so
both packages and their transitive dependencies are compatible with your
project's Python version.
|
Closing this in favor of #569 |
This PR updates uvicorn from 0.4.6 to 0.45.0.
The bot wasn't able to find a changelog for this release. Got an idea?
Links
Summary by CodeRabbit