Skip to content

Commit 6967ef1

Browse files
authored
Chore: Pin Pydantic v1 (#1556)
* Chore: Pin Pydantic to v1 * Update docs
1 parent f22a006 commit 6967ef1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/installation.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ Other extras are required to use specific SQL engines, like Bigquery or Postgres
5656

5757
Multiple extras can be installed at once, as in `pip install "sqlmesh[web,slack]"`.
5858

59+
## Pydantic v2
60+
SQLMesh supports Pydantic v2, but since v2 is relatively new, v1 is the version installed by default. If you would like to use Pydantic v2, you can by installing it after installing SQLMesh.
61+
62+
```bash
63+
pip install --upgrade pydantic
64+
```
65+
66+
Pip may issue a warning about dependency conflicts, but SQLMesh should still function fine. Furthermore, if you are using the SQLMesh UI, you will also need to install pydantic-settings.
67+
68+
```bash
69+
pip install --upgrade pydantic-settings
70+
```
71+
5972
## Next steps
6073

6174
Now that you've installed SQLMesh, it's time to get started with the SQLMesh example project.

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"ipywidgets",
4343
"jinja2",
4444
"pandas<2.1.0",
45-
"pydantic[email]",
45+
"pydantic[email]>=1.10.7,<2.0.0",
4646
"requests",
4747
"rich",
4848
"ruamel.yaml",
@@ -78,7 +78,6 @@
7878
"pdoc",
7979
"psycopg2-binary",
8080
"pyarrow>=10.0.1,<10.1.0",
81-
"pydantic[email]>=1.10.7,<2.0.0",
8281
"PyGithub",
8382
"pytest",
8483
"pytest-asyncio",

0 commit comments

Comments
 (0)