Skip to content

Update uvicorn to 0.52.0 - #613

Closed
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-uvicorn-0.4.6-to-0.52.0
Closed

Update uvicorn to 0.52.0#613
pyup-bot wants to merge 1 commit into
masterfrom
pyup-update-uvicorn-0.4.6-to-0.52.0

Conversation

@pyup-bot

@pyup-bot pyup-bot commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

This PR updates uvicorn from 0.4.6 to 0.52.0.

The bot wasn't able to find a changelog for this release. Got an idea?

Links

Summary by CodeRabbit

  • Chores
    • Updated the Uvicorn server dependency to a newer version.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The pinned uvicorn dependency is updated from version 0.4.6 to 0.52.0 in the requirements file.

Changes

Uvicorn dependency update

Layer / File(s) Summary
Update Uvicorn version
src/requirements.txt
Pins uvicorn to version 0.52.0 instead of 0.4.6.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely states the main dependency version bump in the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pyup-update-uvicorn-0.4.6-to-0.52.0

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/requirements.txt`:
- Line 3: Update the Python-version configuration associated with
uvicorn==0.52.0, including the .travis.yml runtime matrix, to require a
compatible Python release and remove or update Python 3.6 and 3.9 entries.
Ensure the declared support floor matches Uvicorn’s requirement and remains
consistent across dependency and CI configuration.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2b944582-942a-419a-8e46-5609d4065afc

📥 Commits

Reviewing files that changed from the base of the PR and between d377ad0 and ddbf5f7.

📒 Files selected for processing (1)
  • src/requirements.txt

Comment thread src/requirements.txt
fastapi==0.6.4
gitpython
uvicorn==0.4.6
uvicorn==0.52.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Declared Python versions:"
fd -HI '^(pyproject\.toml|setup\.py|setup\.cfg|tox\.ini|\.python-version|Dockerfile.*|.*\.yml|.*\.yaml)$' . \
  -x rg -n 'requires-python|python_requires|python-version|FROM python|python:' {}

echo "Uvicorn usage:"
rg -n --glob '!src/requirements.txt' '\buvicorn\b|python[0-9.]*' .

Repository: salimfadhley/dockerized_python_playground

Length of output: 227


🏁 Script executed:

#!/bin/bash
set -u

echo "Top-level files:"
find . -maxdepth 3 -type f \( -name 'pyproject.toml' -o -name 'setup.py' -o -name 'setup.cfg' -o -name 'tox.ini' -o -name '.python-version' -o -iname 'dockerfile*' -o -iname '*.yml' -o -iname '*.yaml' -o -name 'requirements*.txt' -o -name 'README*' \) -print | sort

echo
echo "Python mentions in tracked/config files:"
git ls-files | rg -i '(^|/)(pyproject\.toml|setup\.py|setup\.cfg|tox\.ini|\.python-version|Dockerfile|docker-compose.*|.*\.ya?ml|requirements.*\.txt|README.*|.*\.md)$' | while read -r f; do
  if rg -n 'requires-python|python_requires|python-version|FROM python|python:|python[0-9.]+' "$f" >/tmp/matches.$$ 2>/dev/null; then
    echo "--- $f"
    cat /tmp/matches.$$
  fi
done
rm -f /tmp/matches.$$ || true

echo
echo "src/requirements.txt:"
if [ -f src/requirements.txt ]; then cat -n src/requirements.txt; fi

Repository: salimfadhley/dockerized_python_playground

Length of output: 499


🏁 Script executed:

#!/bin/bash
set -u

echo ".travis.yml:"
cat -n .travis.yml

echo
echo "docker-compose.yaml:"
cat -n docker-compose.yaml

echo
echo "Dockerfile:"
cat -n Dockerfile

echo
echo "src/setup.py:"
cat -n src/setup.py

echo
echo "src/requirements_dev.txt:"
if [ -f src/requirements_dev.txt ]; then cat -n src/requirements_dev.txt; fi

Repository: salimfadhley/dockerized_python_playground

Length of output: 2591


🏁 Script executed:

#!/bin/bash
set -u

echo "Uvicorn 0.52.0 metadata:"
python3 - <<'PY'
import json, urllib.request, sys
url="https://pypi.org/pypi/uvicorn/0.52.0/json"
try:
    with urllib.request.urlopen(url, timeout=20) as r:
        data=json.load(r)
except Exception as e:
    print(f"ERROR: {e}", file=sys.stderr)
    raise SystemExit(1)
info=data.get("info", {})
print("requires_python:", info.get("requires_python"))
print("classifiers:", [c for c in info.get("classifiers", []) if c.startswith("Programming Language :: Python")])
PY

echo
echo "Other requirements mentioning uvicorn/fastapi/hypercorn/daphne:"
rg -n '(?i)\b(uvicorn|fastapi|hypercorn|daphne|python)[0-9.\s=<>~=|^~]*' Dockerfile .travis.yml src/requirements*.txt src/setup.py

Repository: salimfadhley/dockerized_python_playground

Length of output: 936


🌐 Web query:

PyPI uvicorn 0.52.0 requires_python classifiers

💡 Result:

As of July 29, 2026, Uvicorn version 0.52.0 has not been released [1][2]. The latest available version on PyPI is 0.51.0, released on July 8, 2026 [3][4]. For Uvicorn version 0.51.0, the requires-python metadata is set to >=3.10 [3]. While previous versions of Uvicorn historically included a broad set of classifiers to support older Python versions [5], recent releases have updated their constraints to align with modern Python support requirements [3]. It is important to note that for Python packaging, requires-python is the metadata used by installers (like pip) to enforce installation compatibility [6]. Classifiers, while often used to display compatibility on PyPI, are primarily for searching and browsing and do not programmatically restrict installation [6].

Citations:


🏁 Script executed:

#!/bin/bash
set -u

echo "All requirements/config files:"
for f in Dockerfile .travis.yml docker-compose.yaml src/requirements.txt src/requirements_dev.txt src/setup.py; do
  if [ -f "$f" ]; then
    echo "--- $f"
    cat -n "$f"
  fi
done

echo
echo "Python constraints and versions across tracked files:"
git ls-files | xargs -r rg -n 'requires-python|python_requires|Programming Language :: Python :: (3\.|[^0-9])|python-version|language: python|python:[[:space:]]|\bpython[[:space:]]*[:=<>~^|][[:space:]]*[0-9]|FROM python|python:' || true

Repository: salimfadhley/dockerized_python_playground

Length of output: 2860


Align the Python floor with Uvicorn’s requirement.

uvicorn==0.52.0 is incompatible with Python 3.9 and older, while .travis.yml still declares Python 3.6. Add a python_requires/Travis-compatible release constraint and update or remove downstream 3.6/3.9 support before merging.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/requirements.txt` at line 3, Update the Python-version configuration
associated with uvicorn==0.52.0, including the .travis.yml runtime matrix, to
require a compatible Python release and remove or update Python 3.6 and 3.9
entries. Ensure the declared support floor matches Uvicorn’s requirement and
remains consistent across dependency and CI configuration.

@pyup-bot

pyup-bot commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator Author

Closing this in favor of #616

@pyup-bot pyup-bot closed this Aug 1, 2026
@salimfadhley
salimfadhley deleted the pyup-update-uvicorn-0.4.6-to-0.52.0 branch August 1, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant