Skip to content

[Bug] dbt-core pydantic 2 support; package constraints do not match comments #11634

@cburroughs

Description

@cburroughs

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

$ grep -i pydantic dbt_core-1.10.0b3.dist-info/METADATA
Requires-Dist: pydantic<2

Expected Behavior

Per https://github.com/dbt-labs/dbt-core/blame/1efad4e68ed44e53a2175b29484399029919d9ac/core/setup.py#L77 this section says " Expect compatibility with all new versions of these packages, so lower bounds only." but pydantic<2 is an upper bound.

Steps To Reproduce

See "Current Behavior".

Relevant log output

Environment

- OS: This version of dbt releases a `py3-none-any` wheel
- Python: `Requires-Python: >=3.9`
- dbt: `1.10.0b3`

Which database adapter are you using with dbt?

No response

Additional Context

I understand this could be described as a bug since it 'regressed' in 1.10.x and doesn't match the comment, or a feature request for pydantic v2 support. I am not pedantic about pydantic and accept either triage.
The motivation is to use Python models with code that depends on pydantic>2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions