Update dependency fastapi to v0.112.2
This MR contains the following updates:
Package | Update | Change |
---|---|---|
fastapi (changelog) | minor |
==0.111.1 -> ==0.112.2
|
fastapi (changelog) | minor |
==0.111.0 -> ==0.112.2
|
⚠ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
fastapi/fastapi (fastapi)
v0.112.2
Fixes
-
🐛 Fixallow_inf_nan
option for Param and Body classes. MR #11867 by @giunio-prc. -
🐛 Ensure thatapp.include_router
merges nested lifespans. MR #9630 by @Lancetnik.
Refactors
-
🎨 Fix typing annotation for semi-internalFastAPI.add_api_route()
. MR #10240 by @ordinary-jamie. -
⬆ ️ Upgrade version of Ruff and reformat. MR #12032 by @tiangolo.
Docs
-
📝 Fix a typo indocs/en/docs/virtual-environments.md
. MR #12064 by @aymenkrifa. -
📝 Add docs about Environment Variables and Virtual Environments. MR #12054 by @tiangolo. -
📝 Add Asyncer mention in async docs. MR #12037 by @tiangolo. -
📝 Move the Features docs to the top level to improve the main page menu. MR #12036 by @tiangolo. -
✏ ️ Fix import typo in reference example forSecurity
. MR #11168 by @0shah0. -
📝 Highlight correct line in tutorialdocs/en/docs/tutorial/body-multiple-params.md
. MR #11978 by @svlandeg. -
🔥 Remove Sentry link from Advanced Middleware docs. MR #12031 by @alejsdev. -
📝 Clarify management tasks for translations, multiples files in one MR. MR #12030 by @tiangolo. -
📝 Edit the link to the OpenAPI "Responses Object" and "Response Object" sections in the "Additional Responses in OpenAPI" section. MR #11996 by @VaitoSoi. -
🔨 Specifyemail-validator
dependency with dash. MR #11515 by @jirikuncar. -
🌐 Add Spanish translation fordocs/es/docs/project-generation.md
. MR #11947 by @alejsdev. -
📝 Fix minor typo. MR #12026 by @MicaelJarniac. -
📝 Several docs improvements, tweaks, and clarifications. MR #11390 by @nilslindemann. -
📝 Add missingcompresslevel
parameter on docs forGZipMiddleware
. MR #11350 by @junah201. -
📝 Fix inconsistent response code when item already exists in docs for testing. MR #11818 by @lokomilo. -
📝 Updatedocs/en/docs/tutorial/body.md
with Python 3.10 union type example. MR #11415 by @rangzen.
Translations
-
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/request_file.md
. MR #12018 by @Joao-Pedro-P-Holanda. -
🌐 Add Japanese translation fordocs/ja/docs/learn/index.md
. MR #11592 by @ukwhatn. -
📝 Update Spanish translation docs for consistency. MR #12044 by @alejsdev. -
🌐 Update Chinese translation fordocs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
. MR #12028 by @xuvjso. -
📝 Update FastAPI People, do not translate to have the most recent info. MR #12034 by @tiangolo. -
🌐 Update Urdu translation fordocs/ur/docs/benchmarks.md
. MR #10046 by @AhsanSheraz.
Internal
-
⬆ [pre-commit.ci] pre-commit autoupdate. MR #12046 by @pre-commit-ci[bot]. -
🔧 Update coverage config files. MR #12035 by @tiangolo. -
🔨 Standardize shebang across shell scripts. MR #11942 by @gitworkflows. -
⬆ Update sqlalchemy requirement from <1.4.43,>=1.3.18 to >=1.3.18,<2.0.33. MR #11979 by @dependabot[bot]. -
🔊 Remove old ignore warnings. MR #11950 by @tiangolo. -
⬆ ️ Upgrade griffe-typingdoc for the docs. MR #12029 by @tiangolo. -
🙈 Add .coverage* to.gitignore
. MR #11940 by @gitworkflows. -
⚙ ️ Record and show test coverage contexts (what test covers which line). MR #11518 by @slafs.
v0.112.1
Upgrades
-
⬆ ️ Allow Starlette 0.38.x, update the pin to>=0.37.2,<0.39.0
. MR #11876 by @musicinmybrain.
Docs
-
📝 Update docs section about "Don't Translate these Pages". MR #12022 by @tiangolo. -
📝 Add documentation for non-translated pages and scripts to verify them. MR #12020 by @tiangolo. -
📝 Update docs about discussions questions. MR #11985 by @tiangolo.
Translations
-
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/bigger-applications.md
. MR #11971 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/testing-websockets.md
. MR #11994 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/testing-dependencies.md
. MR #11995 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/using-request-directly.md
. MR #11956 by @ceb10n. -
🌐 Add French translation fordocs/fr/docs/tutorial/body-multiple-params.md
. MR #11796 by @pe-brian. -
🌐 Update Chinese translation fordocs/zh/docs/tutorial/query-params.md
. MR #11557 by @caomingpei. -
🌐 Update typo in Chinese translation fordocs/zh/docs/advanced/testing-dependencies.md
. MR #11944 by @bestony. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/sub-applications.md
anddocs/pt/docs/advanced/behind-a-proxy.md
. MR #11856 by @marcelomarkus. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/cors.md
anddocs/pt/docs/tutorial/middleware.md
. MR #11916 by @wesinalves. -
🌐 Add French translation fordocs/fr/docs/tutorial/path-params-numeric-validations.md
. MR #11788 by @pe-brian.
Internal
-
⬆ Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0. MR #11727 by @dependabot[bot]. -
🔧 Add changelog URL topyproject.toml
, shows in PyPI. MR #11152 by @Pierre-VF. -
👷 Do not sync labels as it overrides manually added labels. MR #12024 by @tiangolo. -
👷🏻 Update Labeler GitHub Actions. MR #12019 by @tiangolo. -
🔧 Update configs for MkDocs for languages and social cards. MR #12016 by @tiangolo. -
👷 Update permissions and config for labeler GitHub Action. MR #12008 by @tiangolo. -
👷🏻 Add GitHub Action label-checker. MR #12005 by @tiangolo. -
👷 Add label checker GitHub Action. MR #12004 by @tiangolo. -
👷 Update GitHub Action add-to-project. MR #12002 by @tiangolo. -
🔧 Update labeler GitHub Action. MR #12001 by @tiangolo. -
👷 Add GitHub Action labeler. MR #12000 by @tiangolo. -
👷 Add GitHub Action add-to-project. MR #11999 by @tiangolo. -
📝 Update admonitions in docs missing. MR #11998 by @tiangolo. -
🔨 Update docs.py script to enable dirty reload conditionally. MR #11986 by @tiangolo. -
🔧 Update MkDocs instant previews. MR #11982 by @tiangolo. -
🐛 Fix deploy docs previews script to handle mkdocs.yml files. MR #11984 by @tiangolo. -
💡 Add comment about custom Termynal line-height. MR #11976 by @tiangolo. -
👷 Add alls-green for test-redistribute. MR #11974 by @tiangolo. -
👷 Update docs-previews to handle no docs changes. MR #11975 by @tiangolo. -
🔨 Refactor scriptdeploy_docs_status.py
to account for deploy URLs with or without trailing slash. MR #11965 by @tiangolo. -
🔒 ️ Update permissions for deploy-docs action. MR #11964 by @tiangolo. -
👷🏻 Add deploy docs status and preview links to MRs. MR #11961 by @tiangolo. -
🔧 Update docs setup with latest configs and plugins. MR #11953 by @tiangolo. -
🔇 Ignore warning from attrs in Trio. MR #11949 by @tiangolo.
v0.112.0
Breaking Changes
-
♻ ️ Add support forpip install "fastapi[standard]"
with standard dependencies andpython -m fastapi
. MR #11935 by @tiangolo.
Summary
Install with:
pip install "fastapi[standard]"
Other Changes
- This adds support for calling the CLI as:
python -m fastapi
- And it upgrades
fastapi-cli[standard] >=0.0.5
.
Technical Details
Before this, fastapi
would include the standard dependencies, with Uvicorn and the fastapi-cli
, etc.
And fastapi-slim
would not include those standard dependencies.
Now fastapi
doesn't include those standard dependencies unless you install with pip install "fastapi[standard]"
.
Before, you would install pip install fastapi
, now you should include the standard
optional dependencies (unless you want to exclude one of those): pip install "fastapi[standard]"
.
This change is because having the standard optional dependencies installed by default was being inconvenient to several users, and having to install instead fastapi-slim
was not being a feasible solution.
Discussed here: #11522 and here: #11525
Docs
-
✏ ️ Fix typos in docs. MR #11926 by @jianghuyiyuan. -
📝 Tweak management docs. MR #11918 by @tiangolo. -
🚚 Rename GitHub links from tiangolo/fastapi to fastapi/fastapi. MR #11913 by @tiangolo. -
📝 Add docs about FastAPI team and project management. MR #11908 by @tiangolo. -
📝 Re-structure docs main menu. MR #11904 by @tiangolo. -
📝 Update Speakeasy URL. MR #11871 by @ndimares.
Translations
-
🌐 Update Portuguese translation fordocs/pt/docs/alternatives.md
. MR #11931 by @ceb10n. -
🌐 Add Russian translation fordocs/ru/docs/tutorial/dependencies/sub-dependencies.md
. MR #10515 by @AlertRED. -
🌐 Add Portuguese translation fordocs/pt/docs/advanced/response-change-status-code.md
. MR #11863 by @ceb10n. -
🌐 Add Portuguese translation fordocs/pt/docs/reference/background.md
. MR #11849 by @lucasbalieiro. -
🌐 Add Portuguese translation fordocs/pt/docs/tutorial/dependencies/dependencies-with-yield.md
. MR #11848 by @Joao-Pedro-P-Holanda. -
🌐 Add Portuguese translation fordocs/pt/docs/reference/apirouter.md
. MR #11843 by @lucasbalieiro.
Internal
-
🔧 Update sponsors: add liblab. MR #11934 by @tiangolo. -
👷 Update GitHub Action label-approved permissions. MR #11933 by @tiangolo. -
👷 Refactor GitHub Action to comment docs deployment URLs and update token. MR #11925 by @tiangolo. -
👷 Update tokens for GitHub Actions. MR #11924 by @tiangolo. -
👷 Update token permissions to comment deployment URL in docs. MR #11917 by @tiangolo. -
👷 Update token permissions for GitHub Actions. MR #11915 by @tiangolo. -
👷 Update GitHub Actions token usage. MR #11914 by @tiangolo. -
👷 Update GitHub Action to notify translations with labelapproved-1
. MR #11907 by @tiangolo. -
🔧 Update sponsors, remove Reflex. MR #11875 by @tiangolo. -
🔧 Update sponsors: remove TalkPython. MR #11861 by @tiangolo. -
🔨 Update docs Termynal scripts to not include line nums for local dev. MR #11854 by @tiangolo.
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.