Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ authors = [

dependencies = [
"httpx>=0.23.0, <1",
"pydantic>=1.9.0, <3",
"pydantic>=2.0, <3",
"typing-extensions>=4.10, <5",
"anyio>=3.5.0, <5",
"distro>=1.7.0, <2",
Expand Down Expand Up @@ -47,12 +47,6 @@ aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
[tool.uv]
managed = true
required-version = ">=0.9"
conflicts = [
[
{ group = "pydantic-v1" },
{ group = "pydantic-v2" },
],
]

[dependency-groups]
# version pins are in uv.lock
Expand All @@ -72,13 +66,6 @@ dev = [
"uuid-utils>=0.11.0",
"pytest-cov>=7.0.0",
]
pydantic-v1 = [
"pydantic>=1.9.0,<2",
]
pydantic-v2 = [
"pydantic~=2.0 ; python_full_version < '3.14'",
"pydantic~=2.12 ; python_full_version >= '3.14'",
]
docs = [
"furo>=2025.9.25",
"sphinx>=7.4.7",
Expand Down
23 changes: 19 additions & 4 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ certifi==2025.11.12
# httpx
colorama==0.4.6 ; sys_platform == 'win32'
# via pytest
coverage==7.10.7 ; python_full_version < '3.10'
# via pytest-cov
coverage==7.13.0 ; python_full_version >= '3.10'
# via pytest-cov
dirty-equals==0.11
distro==1.9.0
# via runloop-api-client
Expand Down Expand Up @@ -57,7 +61,9 @@ packaging==25.0
pathspec==0.12.1
# via mypy
pluggy==1.6.0
# via pytest
# via
# pytest
# pytest-cov
pydantic==2.12.5
# via runloop-api-client
pydantic-core==2.41.5
Expand All @@ -70,27 +76,34 @@ pyright==1.1.399
pytest==8.4.2 ; python_full_version < '3.10'
# via
# pytest-asyncio
# pytest-cov
# pytest-timeout
# pytest-xdist
pytest==9.0.1 ; python_full_version >= '3.10'
pytest==9.0.2 ; python_full_version >= '3.10'
# via
# pytest-asyncio
# pytest-cov
# pytest-timeout
# pytest-xdist
pytest-asyncio==1.2.0 ; python_full_version < '3.10'
pytest-asyncio==1.3.0 ; python_full_version >= '3.10'
pytest-cov==7.0.0
pytest-timeout==2.4.0
pytest-xdist==3.8.0
python-dateutil==2.9.0.post0 ; python_full_version < '3.10'
# via time-machine
respx==0.22.0
rich==14.2.0
ruff==0.14.7
ruff==0.14.8
six==1.17.0 ; python_full_version < '3.10'
# via python-dateutil
sniffio==1.3.1
# via runloop-api-client
time-machine==2.19.0 ; python_full_version < '3.10'
time-machine==3.1.0 ; python_full_version >= '3.10'
tomli==2.3.0 ; python_full_version < '3.11'
tomli==2.3.0 ; python_full_version <= '3.11'
# via
# coverage
# mypy
# pytest
typing-extensions==4.15.0
Expand All @@ -106,5 +119,7 @@ typing-extensions==4.15.0
# typing-inspection
typing-inspection==0.4.2
# via pydantic
uuid-utils==0.12.0
# via runloop-api-client
zipp==3.23.0
# via importlib-metadata
7 changes: 0 additions & 7 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,7 @@ PY_VERSION_MIN=">=3.9.0"
PY_VERSION_MAX=">=3.14.0"

function run_tests() {
echo "==> Running tests with Pydantic v2"
uv run --isolated --all-extras pytest "$@"

# Skip Pydantic v1 tests on latest Python (not supported)
if [[ "$UV_PYTHON" != "$PY_VERSION_MAX" ]]; then
echo "==> Running tests with Pydantic v1"
uv run --isolated --all-extras --group=pydantic-v1 pytest "$@"
fi
}

# If UV_PYTHON is already set in the environment, just run the command once
Expand Down
Loading
Loading