Skip to content

Feature request: Add pydantic-settings to v3 Layer #5508

Closed
@tkasuz

Description

@tkasuz

Use case

To facilitate migration from v2 to v3, it would be advantageous to include pydantic-settings as an optional dependency in the v3 layer. This is because v3 relies on Pydantic v2, necessitating the import of BaseSettings from pydantic-settings, which is currently absent from the v3 layer.

Solution/User Experience

Since this is not directly related to parser library, it would be better to included in the all option like the following:

[tool.poetry.extras]
parser = ["pydantic"]
validation = ["fastjsonschema"]
tracer = ["aws-xray-sdk"]
redis = ["redis"]
all = [
  "pydantic",
  "pydantic-settings",
  "aws-xray-sdk",
  "fastjsonschema",
  "aws-encryption-sdk",
  "jsonpath-ng"
]

Alternative solutions

No response

Acknowledgment

Metadata

Metadata

Labels

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions