Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the production-dependencies group in /applications/cls-cad-backend with 3 updates #38

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 25, 2023

Bumps the production-dependencies group in /applications/cls-cad-backend with 3 updates: fastapi, uvicorn and pydantic.

Updates fastapi from 0.103.0 to 0.106.0

Release notes

Sourced from fastapi's releases.

0.106.0

Breaking Changes

Using resources from dependencies with yield in background tasks is no longer supported.

This change is what supports the new features, read below. 🤓

Dependencies with yield, HTTPException and Background Tasks

Dependencies with yield now can raise HTTPException and other exceptions after yield. 🎉

Read the new docs here: Dependencies with yield and HTTPException.

from fastapi import Depends, FastAPI, HTTPException
from typing_extensions import Annotated
app = FastAPI()
data = {
"plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
"portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
}
class OwnerError(Exception):
pass
def get_username():
try:
yield "Rick"
except OwnerError as e:
raise HTTPException(status_code=400, detail=f"Onwer error: {e}")
@​app.get("/items/{item_id}")
def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
if item_id not in data:
raise HTTPException(status_code=404, detail="Item not found")
item = data[item_id]
if item["owner"] != username:
raise OwnerError(username)
return item


Before FastAPI 0.106.0, raising exceptions after yield was not possible, the exit code in dependencies with yield was executed after the response was sent, so Exception Handlers would have already run.

... (truncated)

Commits
  • 5826c4f 📝 Tweak release notes
  • 91510db 🔖 Release version 0.106.0
  • bcd5a42 📝 Update release notes
  • 678bed2 📝 Update release notes
  • a4aa79e ✨ Add support for raising exceptions (including HTTPException) in dependenc...
  • e7756ae 📝 Update release notes
  • dc2fdd5 👥 Update FastAPI People (#10567)
  • 36c2667 📝 Update release notes
  • d8185ef 🔖 Release version 0.105.0
  • fc51d7e 📝 Update release notes
  • Additional commits viewable in compare view

Updates uvicorn from 0.24.0.post1 to 0.25.0

Release notes

Sourced from uvicorn's releases.

Version 0.25.0

Added

  • Support the WebSocket Denial Response ASGI extension (#1916) 17/12/23

Fixed

  • Allow explicit hidden file paths on --reload-include (#2176) 08/12/23
  • Properly annotate uvicorn.run() (#2158) 22/11/23

Full Changelog: encode/uvicorn@0.24.0...0.25.0

Changelog

Sourced from uvicorn's changelog.

0.25.0 - 2023-12-17

Added

  • Support the WebSocket Denial Response ASGI extension (#1916) 17/12/23

Fixed

  • Allow explicit hidden file paths on --reload-include (#2176) 08/12/23
  • Properly annotate uvicorn.run() (#2158) 22/11/23
Commits

Updates pydantic from 2.5.2 to 2.5.3

Release notes

Sourced from pydantic's releases.

v2.5.3 2023-12-22

v2.5.3 (2023-12-22)

GitHub release

What's Changed

Packaging

  • uprev pydantic-core to 2.14.6

Fixes

Full Changelog: pydantic/pydantic@v2.5.2...v2.5.3/

Changelog

Sourced from pydantic's changelog.

v2.5.3 (2023-12-22)

GitHub release

What's Changed

Packaging

  • uprev pydantic-core to 2.14.5

Fixes

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the production-dependencies group in /applications/cls-cad-backend with 3 updates: [fastapi](https://github.com/tiangolo/fastapi), [uvicorn](https://github.com/encode/uvicorn) and [pydantic](https://github.com/pydantic/pydantic).


Updates `fastapi` from 0.103.0 to 0.106.0
- [Release notes](https://github.com/tiangolo/fastapi/releases)
- [Commits](fastapi/fastapi@0.103.0...0.106.0)

Updates `uvicorn` from 0.24.0.post1 to 0.25.0
- [Release notes](https://github.com/encode/uvicorn/releases)
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md)
- [Commits](encode/uvicorn@0.24.0.post1...0.25.0)

Updates `pydantic` from 2.5.2 to 2.5.3
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v2.5.3/HISTORY.md)
- [Commits](pydantic/pydantic@v2.5.2...v2.5.3)

---
updated-dependencies:
- dependency-name: fastapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: uvicorn
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: production-dependencies
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: production-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Dec 25, 2023
Copy link

Test Results

16 tests   16 ✅  1s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 3c66677.

Copy link

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
546 546 100% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 3c66677 by action🐍

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 1, 2024

Superseded by #40.

@dependabot dependabot bot closed this Jan 1, 2024
@dependabot dependabot bot deleted the dependabot/pip/applications/cls-cad-backend/production-dependencies-d2f912b1e9 branch January 1, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants