Skip to content

Commit fb3cc3d

Browse files
authored
chore!: remove support for pydantic-v1, pydantic-v2 is now default (#710)
1 parent 6a29f8e commit fb3cc3d

4 files changed

Lines changed: 236 additions & 422 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010

1111
dependencies = [
1212
"httpx>=0.23.0, <1",
13-
"pydantic>=1.9.0, <3",
13+
"pydantic>=2.0, <3",
1414
"typing-extensions>=4.10, <5",
1515
"anyio>=3.5.0, <5",
1616
"distro>=1.7.0, <2",
@@ -47,12 +47,6 @@ aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
4747
[tool.uv]
4848
managed = true
4949
required-version = ">=0.9"
50-
conflicts = [
51-
[
52-
{ group = "pydantic-v1" },
53-
{ group = "pydantic-v2" },
54-
],
55-
]
5650

5751
[dependency-groups]
5852
# version pins are in uv.lock
@@ -72,13 +66,6 @@ dev = [
7266
"uuid-utils>=0.11.0",
7367
"pytest-cov>=7.0.0",
7468
]
75-
pydantic-v1 = [
76-
"pydantic>=1.9.0,<2",
77-
]
78-
pydantic-v2 = [
79-
"pydantic~=2.0 ; python_full_version < '3.14'",
80-
"pydantic~=2.12 ; python_full_version >= '3.14'",
81-
]
8269
docs = [
8370
"furo>=2025.9.25",
8471
"sphinx>=7.4.7",

requirements-dev.lock

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ certifi==2025.11.12
1515
# httpx
1616
colorama==0.4.6 ; sys_platform == 'win32'
1717
# via pytest
18+
coverage==7.10.7 ; python_full_version < '3.10'
19+
# via pytest-cov
20+
coverage==7.13.0 ; python_full_version >= '3.10'
21+
# via pytest-cov
1822
dirty-equals==0.11
1923
distro==1.9.0
2024
# via runloop-api-client
@@ -57,7 +61,9 @@ packaging==25.0
5761
pathspec==0.12.1
5862
# via mypy
5963
pluggy==1.6.0
60-
# via pytest
64+
# via
65+
# pytest
66+
# pytest-cov
6167
pydantic==2.12.5
6268
# via runloop-api-client
6369
pydantic-core==2.41.5
@@ -70,27 +76,34 @@ pyright==1.1.399
7076
pytest==8.4.2 ; python_full_version < '3.10'
7177
# via
7278
# pytest-asyncio
79+
# pytest-cov
80+
# pytest-timeout
7381
# pytest-xdist
74-
pytest==9.0.1 ; python_full_version >= '3.10'
82+
pytest==9.0.2 ; python_full_version >= '3.10'
7583
# via
7684
# pytest-asyncio
85+
# pytest-cov
86+
# pytest-timeout
7787
# pytest-xdist
7888
pytest-asyncio==1.2.0 ; python_full_version < '3.10'
7989
pytest-asyncio==1.3.0 ; python_full_version >= '3.10'
90+
pytest-cov==7.0.0
91+
pytest-timeout==2.4.0
8092
pytest-xdist==3.8.0
8193
python-dateutil==2.9.0.post0 ; python_full_version < '3.10'
8294
# via time-machine
8395
respx==0.22.0
8496
rich==14.2.0
85-
ruff==0.14.7
97+
ruff==0.14.8
8698
six==1.17.0 ; python_full_version < '3.10'
8799
# via python-dateutil
88100
sniffio==1.3.1
89101
# via runloop-api-client
90102
time-machine==2.19.0 ; python_full_version < '3.10'
91103
time-machine==3.1.0 ; python_full_version >= '3.10'
92-
tomli==2.3.0 ; python_full_version < '3.11'
104+
tomli==2.3.0 ; python_full_version <= '3.11'
93105
# via
106+
# coverage
94107
# mypy
95108
# pytest
96109
typing-extensions==4.15.0
@@ -106,5 +119,7 @@ typing-extensions==4.15.0
106119
# typing-inspection
107120
typing-inspection==0.4.2
108121
# via pydantic
122+
uuid-utils==0.12.0
123+
# via runloop-api-client
109124
zipp==3.23.0
110125
# via importlib-metadata

scripts/test

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@ PY_VERSION_MIN=">=3.9.0"
6060
PY_VERSION_MAX=">=3.14.0"
6161

6262
function run_tests() {
63-
echo "==> Running tests with Pydantic v2"
6463
uv run --isolated --all-extras pytest "$@"
65-
66-
# Skip Pydantic v1 tests on latest Python (not supported)
67-
if [[ "$UV_PYTHON" != "$PY_VERSION_MAX" ]]; then
68-
echo "==> Running tests with Pydantic v1"
69-
uv run --isolated --all-extras --group=pydantic-v1 pytest "$@"
70-
fi
7164
}
7265

7366
# If UV_PYTHON is already set in the environment, just run the command once

0 commit comments

Comments
 (0)