Skip to content

Commit d7af7f3

Browse files
committed
deps: Update Pydantic to version 2 with compatibility support
Update dependencies for Pydantic V2 migration: - Pydantic: 1.10.22 → 2.11.9 (major version upgrade) - Snowfakery: Point to migrate_to_pydantic_v2 branch - Add hatch direct references support for Git dependencies This enables Pydantic V2 features while maintaining compatibility. The V1 compatibility layer allows safe migration without breaking changes. Major frameworks like FastAPI use this approach successfully. Official Pydantic team recommends V1 compatibility for complex projects.
1 parent b2ddbe8 commit d7af7f3

2 files changed

Lines changed: 103 additions & 34 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies = [
3636
"MarkupSafe",
3737
"packaging>=23.0",
3838
"psutil",
39-
"pydantic<2",
39+
"pydantic>=2.0,<3",
4040
"PyJWT",
4141
"pytz",
4242
"pyyaml",
@@ -53,7 +53,7 @@ dependencies = [
5353
"sarge",
5454
"selenium<4",
5555
"simple-salesforce==1.11.4",
56-
"snowfakery>=4.0.0",
56+
"snowfakery @ git+https://github.com/SFDO-Tooling/snowfakery.git@migrate_to_pydantic_v2",
5757
"xmltodict",
5858
"docutils<=0.21.2",
5959
]
@@ -105,6 +105,9 @@ Changelog = "https://cumulusci.readthedocs.io/en/stable/history.html"
105105
[tool.hatch.version]
106106
path = "cumulusci/__about__.py"
107107

108+
[tool.hatch.metadata]
109+
allow-direct-references = true
110+
108111
[tool.hatch.build]
109112
include = [
110113
"/cumulusci",

0 commit comments

Comments
 (0)