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

chore(deps): update python dependencies #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 11, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
azure-identity (source) ==1.15.0 -> ==1.19.0 age adoption passing confidence
azure-keyvault-secrets (source) ==4.7.0 -> ==4.9.0 age adoption passing confidence
black (changelog) ==23.11.0 -> ==23.12.1 age adoption passing confidence
fastapi (changelog) ==0.104.1 -> ==0.115.3 age adoption passing confidence
httpx (changelog) ==0.26.0 -> ==0.27.2 age adoption passing confidence
isort (source, changelog) ==5.12.0 -> ==5.13.2 age adoption passing confidence
langchain (changelog) ==0.0.329 -> ==0.3.4 age adoption passing confidence
pre-commit ==3.5.0 -> ==3.8.0 age adoption passing confidence
pydantic-settings (changelog) ==2.1.0 -> ==2.6.0 age adoption passing confidence
qdrant-client ==1.6.9 -> ==1.12.0 age adoption passing confidence
requests (source, changelog) ==2.31.0 -> ==2.32.3 age adoption passing confidence
uvicorn (changelog) ==0.24.0.post1 -> ==0.32.0 age adoption passing confidence

Release Notes

Azure/azure-sdk-for-python (azure-identity)

v1.19.0

Compare Source

1.19.0 (2021-09-30)

Breaking Changes in the Provisional azure.core.rest package
  • azure.core.rest.HttpResponse and azure.core.rest.AsyncHttpResponse are now abstract base classes. They should not be initialized directly, instead
    your transport responses should inherit from them and implement them.

  • The properties of the azure.core.rest responses are now all read-only

  • HttpLoggingPolicy integrates logs into one record #​19925

v1.18.0

Compare Source

1.18.0 (2024-09-19)

Features Added
  • All credentials now implement the SupportsTokenInfo or AsyncSupportsTokenInfo protocol. Each credential now has a get_token_info method which returns an AccessTokenInfo object. The get_token_info method is an alternative method to get_token that improves support for more complex authentication scenarios. (#​36882)
    • Information on when a token should be refreshed is now saved in AccessTokenInfo (if available).
Other Changes
  • Added identity config validation to ManagedIdentityCredential to avoid non-deterministic states (e.g. both resource_id and object_id are specified). (#​36950)
  • Additional validation was added for ManagedIdentityCredential in Azure Cloud Shell environments. (#​36438)
  • Bumped minimum dependency on azure-core to >=1.31.0.

v1.17.1

Compare Source

1.17.1 (2024-07-09)

Bugs Fixed
  • Workspace Create operation works without an application insights being provided, and creates a default appIn resource for normal workspaces in that case.
  • Project create operations works in general.

v1.17.0

Compare Source

1.17.0 (2021-08-05)

Features Added
  • Cut hard dependency on requests library
  • Added a from_json method which now accepts storage QueueMessage, eventhub's EventData or ServiceBusMessage or simply json bytes to return a CloudEvent
Fixed
  • Not override "x-ms-client-request-id" if it already exists in the header. #​17757
Breaking Changes in the Provisional azure.core.rest package
  • azure.core.rest will not try to guess the charset anymore if it was impossible to extract it from HttpResponse analysis. This removes our dependency on charset.

v1.16.1

Compare Source

1.16.1 (2024-05-24)

Bugs Fixed

v1.16.0

Compare Source

1.16.0 (2021-07-01)

Features Added
  • Add new provisional methods send_request onto the azure.core.PipelineClient and azure.core.AsyncPipelineClient. This method takes in
    requests and sends them through our pipelines.
  • Add new provisional module azure.core.rest. azure.core.rest is our new public simple HTTP library in azure.core that users will use to create requests, and consume responses.
  • Add new provisional errors StreamConsumedError, StreamClosedError, and ResponseNotReadError to azure.core.exceptions. These errors
    are thrown if you mishandle streamed responses from the provisional azure.core.rest module
Fixed
  • Improved error message in the from_dict method of CloudEvent when a wrong schema is sent.
psf/black (black)

v23.12.1

Compare Source

Packaging
  • Fixed a bug that included dependencies from the d extra by default (#​4108)

v23.12.0

Compare Source

Highlights

It's almost 2024, which means it's time for a new edition of Black's stable style!
Together with this release, we'll put out an alpha release 24.1a1 showcasing the draft
2024 stable style, which we'll finalize in the January release. Please try it out and
share your feedback.

This release (23.12.0) will still produce the 2023 style. Most but not all of the
changes in --preview mode will be in the 2024 stable style.

Stable style
  • Fix bug where # fmt: off automatically dedents when used with the --line-ranges
    option, even when it is not within the specified line range. (#​4084)
  • Fix feature detection for parenthesized context managers (#​4104)
Preview style
  • Prefer more equal signs before a break when splitting chained assignments (#​4010)
  • Standalone form feed characters at the module level are no longer removed (#​4021)
  • Additional cases of immediately nested tuples, lists, and dictionaries are now
    indented less (#​4012)
  • Allow empty lines at the beginning of all blocks, except immediately before a
    docstring (#​4060)
  • Fix crash in preview mode when using a short --line-length (#​4086)
  • Keep suites consisting of only an ellipsis on their own lines if they are not
    functions or class definitions (#​4066) (#​4103)
Configuration
  • --line-ranges now skips Black's internal stability check in --safe mode. This
    avoids a crash on rare inputs that have many unformatted same-content lines. (#​4034)
Packaging
Integrations
fastapi/fastapi (fastapi)

v0.115.3

Compare Source

Upgrades
Docs
Translations
Internal

v0.115.2

Compare Source

Upgrades

v0.115.1

Compare Source

Fixes
Refactors
Docs
Translations
Internal

v0.115.0

Compare Source

Highlights

Now you can declare Query, Header, and Cookie parameters with Pydantic models. 🎉

Query Parameter Models

Use Pydantic models for Query parameters:

from typing import Annotated, Literal

from fastapi import FastAPI, Query
from pydantic import BaseModel, Field

app = FastAPI()

class FilterParams(BaseModel):
    limit: int = Field(100, gt=0, le=100)
    offset: int = Field(0, ge=0)
    order_by: Literal["created_at", "updated_at"] = "created_at"
    tags: list[str] = []

@​app.get("/items/")
async def read_items(filter_query: Annotated[FilterParams, Query()]):
    return filter_query

Read the new docs: Query Parameter Models.

Header Parameter Models

Use Pydantic models for Header parameters:

from typing import Annotated

from fastapi import FastAPI, Header
from pydantic import BaseModel

app = FastAPI()

class CommonHeaders(BaseModel):
    host: str
    save_data: bool
    if_modified_since: str | None = None
    traceparent: str | None = None
    x_tag: list[str] = []

@​app.get("/items/")
async def read_items(headers: Annotated[CommonHeaders, Header()]):
    return headers

Read the new docs: Header Parameter Models.

Cookie Parameter Models

Use Pydantic models for Cookie parameters:

from typing import Annotated

from fastapi import Cookie, FastAPI
from pydantic import BaseModel

app = FastAPI()

class Cookies(BaseModel):
    session_id: str
    fatebook_tracker: str | None = None
    googall_tracker: str | None = None

@​app.get("/items/")
async def read_items(cookies: Annotated[Cookies, Cookie()]):
    return cookies

Read the new docs: Cookie Parameter Models.

Forbid Extra Query (Cookie, Header) Parameters

Use Pydantic models to restrict extra values for Query parameters (also applies to Header and Cookie parameters).

To achieve it, use Pydantic's model_config = {"extra": "forbid"}:

from typing import Annotated, Literal

from fastapi import FastAPI, Query
from pydantic import BaseModel, Field

app = FastAPI()

class FilterParams(BaseModel):
    model_config = {"extra": "forbid"}

    limit: int = Field(100, gt=0, le=100)
    offset: int = Field(0, ge=0)
    order_by: Literal["created_at", "updated_at"] = "created_at"
    tags: list[str] = []

@​app.get("/items/")
async def read_items(filter_query: Annotated[FilterParams, Query()]):
    return filter_query

This applies to Query, Header, and Cookie parameters, read the new docs:

Features
  • ✨ Add support for Pydantic models for parameters using Query, Cookie, Header. PR #​12199 by @​tiangolo.
Translations
  • 🌐 Add Portuguese translation for docs/pt/docs/advanced/security/http-basic-auth.md. PR #​12195 by @​ceb10n.
Internal

v0.114.2

Compare Source

Fixes
Translations
Internal

v0.114.1

Compare Source

Refactors
  • ⚡️ Improve performance in request body parsing with a cache for internal model fields. PR #​12184 by @​tiangolo.
Docs
  • 📝 Remove duplicate line in docs for docs/en/docs/environment-variables.md. PR #​12169 by @​prometek.
Translations
Internal

v0.114.0

Compare Source

You can restrict form fields to only include those declared in a Pydantic model and forbid any extra field sent in the request using Pydantic's model_config = {"extra": "forbid"}:

from typing import Annotated

from fastapi import FastAPI, Form
from pydantic import BaseModel

app = FastAPI()

class FormData(BaseModel):
    username: str
    password: str
    model_config = {"extra": "forbid"}

@​app.post("/login/")
async def login(data: Annotated[FormData, Form()]):
    return data

Read the new docs: Form Models - Forbid Extra Form Fields.

Features
Docs
Internal
  • ✅ Update internal tests for latest Pydantic, including CI tweaks to install the latest Pydantic. PR #​12147 by @​tiangolo.

v0.113.0

Compare Source

Now you can declare form fields with Pydantic models:

from typing import Annotated

from fastapi import FastAPI, Form
from pydantic import BaseModel

app = FastAPI()

class FormData(BaseModel):
    username: str
    password: str

@​app.post("/login/")
async def login(data: Annotated[FormData, Form()]):
    return data

Read the new docs: Form Models.

Features
Internal

v0.112.4

Compare Source

This release is mainly a big internal refactor to enable adding support for Pydantic models for Form fields, but that feature comes in the next release.

This release shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. It's just a checkpoint. 🤓

Refactors
  • ♻️ Refactor deciding if embed body fields, do not overwrite fields, compute once per router, refactor internals in preparation for Pydantic models in Form, Query and others. PR #​12117 by @​tiangolo.
Internal
  • ⏪️ Temporarily revert "✨ Add support for Pydantic models in Form parameters" to make a checkpoint release. PR #​12128 by @​tiangolo.
  • ✨ Add support for Pydantic models in Form parameters. PR #​12127 by @​tiangolo. Reverted to make a checkpoint release with only refactors.

v0.112.3

Compare Source

This release is mainly internal refactors, it shouldn't affect apps using FastAPI in any way. You don't even have to upgrade to this version yet. There are a few bigger releases coming right after. 🚀

Refactors
  • ♻️ Refactor internal check_file_field(), rename to ensure_multipart_is_installed() to clarify its purpose. PR #​12106 by @​tiangolo.
  • ♻️ Rename internal create_response_field() to create_model_field() as it's used for more than response models. PR #​12103 by @​tiangolo.
  • ♻️ Refactor and simplify internal data from solve_dependencies() using dataclasses. PR #​12100 by @​tiangolo.
  • ♻️ Refactor and simplify internal analyze_param() to structure data with dataclasses instead of tuple. PR #​12099 by @​tiangolo.
  • ♻️ Refactor and simplify dependencies data structures with dataclasses. PR #​12098 by @​tiangolo.
Docs
Translations
Internal

v0.112.2

Compare Source

Fixes
Refactors
Docs
Translations
Internal

v0.112.1

Compare Source

Upgrades
Docs
Translations

Configuration

📅 Schedule: Branch creation - "before 5am on monday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from 5ad1d4a to 53fd93e Compare December 13, 2023 22:53
@renovate renovate bot force-pushed the renovate/python-dependencies branch 5 times, most recently from a497a40 to 70ebca2 Compare December 26, 2023 22:08
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from ce8b426 to 6ac68fb Compare January 12, 2024 09:36
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from fc01d03 to 962c1d0 Compare January 22, 2024 21:37
@renovate renovate bot force-pushed the renovate/python-dependencies branch 5 times, most recently from 219f95d to 03f599a Compare January 29, 2024 12:26
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from 42e4664 to 733483e Compare February 4, 2024 21:50
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from dee4068 to 0cae0de Compare February 10, 2024 22:09
@renovate renovate bot force-pushed the renovate/python-dependencies branch 3 times, most recently from 26f8b8b to 1f5e6ef Compare June 11, 2024 16:24
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 1f5e6ef to 3cdea46 Compare June 13, 2024 09:18
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 3cdea46 to 5eb7e8e Compare June 24, 2024 16:19
@renovate renovate bot force-pushed the renovate/python-dependencies branch 2 times, most recently from 3acd957 to 96efbb7 Compare July 20, 2024 09:47
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from d61161a to d46de69 Compare August 2, 2024 11:26
@renovate renovate bot force-pushed the renovate/python-dependencies branch from d46de69 to 7d0013d Compare August 13, 2024 11:19
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 7d0013d to 9d16376 Compare August 27, 2024 13:29
@renovate renovate bot force-pushed the renovate/python-dependencies branch 2 times, most recently from 77719ca to c9fe813 Compare September 11, 2024 09:49
@renovate renovate bot force-pushed the renovate/python-dependencies branch 3 times, most recently from 6c5109f to 35d1b75 Compare September 25, 2024 21:49
@renovate renovate bot force-pushed the renovate/python-dependencies branch 2 times, most recently from 54a7f6f to 24e52c8 Compare October 3, 2024 19:24
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from 22e15f0 to 920db8b Compare October 12, 2024 10:21
@renovate renovate bot force-pushed the renovate/python-dependencies branch 4 times, most recently from 1f3cfdd to 9537bda Compare October 18, 2024 19:45
@renovate renovate bot force-pushed the renovate/python-dependencies branch from 9537bda to 93964f6 Compare October 22, 2024 16:01
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.

0 participants