Skip to content

Commit 22b533f

Browse files
chore(internal): bump httpx dependency (#557)
1 parent 4b82e52 commit 22b533f

File tree

4 files changed

+29
-6
lines changed

4 files changed

+29
-6
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dev-dependencies = [
5454
"dirty-equals>=0.6.0",
5555
"importlib-metadata>=6.7.0",
5656
"rich>=13.7.1",
57-
"nest_asyncio==1.6.0"
57+
"nest_asyncio==1.6.0",
5858
]
5959

6060
[tool.rye.scripts]

requirements-dev.lock

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ h11==0.14.0
3535
# via httpcore
3636
httpcore==1.0.2
3737
# via httpx
38-
httpx==0.25.2
38+
httpx==0.28.1
3939
# via finch-api
4040
# via respx
4141
idna==3.4
@@ -76,7 +76,7 @@ python-dateutil==2.8.2
7676
# via time-machine
7777
pytz==2023.3.post1
7878
# via dirty-equals
79-
respx==0.20.2
79+
respx==0.22.0
8080
rich==13.7.1
8181
ruff==0.6.9
8282
setuptools==68.2.2
@@ -86,7 +86,6 @@ six==1.16.0
8686
sniffio==1.3.0
8787
# via anyio
8888
# via finch-api
89-
# via httpx
9089
time-machine==2.9.0
9190
tomli==2.0.2
9291
# via mypy

requirements.lock

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ h11==0.14.0
2525
# via httpcore
2626
httpcore==1.0.2
2727
# via httpx
28-
httpx==0.25.2
28+
httpx==0.28.1
2929
# via finch-api
3030
idna==3.4
3131
# via anyio
@@ -37,7 +37,6 @@ pydantic-core==2.27.1
3737
sniffio==1.3.0
3838
# via anyio
3939
# via finch-api
40-
# via httpx
4140
typing-extensions==4.12.2
4241
# via anyio
4342
# via finch-api

tests/test_client.py

+25
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import httpx
1919
import pytest
20+
import packaging.version as version
2021
from respx import MockRouter
2122
from pydantic import ValidationError
2223

@@ -643,6 +644,10 @@ def test_absolute_request_url(self, client: Finch) -> None:
643644
)
644645
assert request.url == "https://myapi.com/foo"
645646

647+
@pytest.mark.skipif(
648+
version.parse(httpx.__version__) >= version.parse("0.28.0"),
649+
reason="Test is only relevant for httpx versions < 0.28.0",
650+
)
646651
def test_transport_option_is_deprecated(self) -> None:
647652
with pytest.warns(
648653
DeprecationWarning,
@@ -672,6 +677,10 @@ def test_transport_option_mutually_exclusive_with_http_client(self) -> None:
672677
http_client=http_client,
673678
)
674679

680+
@pytest.mark.skipif(
681+
version.parse(httpx.__version__) >= version.parse("0.28.0"),
682+
reason="Test is only relevant for httpx versions < 0.28.0",
683+
)
675684
def test_connection_pool_limits_option_is_deprecated(self) -> None:
676685
with pytest.warns(
677686
DeprecationWarning,
@@ -709,6 +718,10 @@ def test_connection_pool_limits_option_mutually_exclusive_with_http_client(self)
709718
http_client=http_client,
710719
)
711720

721+
@pytest.mark.skipif(
722+
version.parse(httpx.__version__) >= version.parse("0.28.0"),
723+
reason="Test is only relevant for httpx versions < 0.28.0",
724+
)
712725
def test_proxies_option_is_deprecated(self) -> None:
713726
with pytest.warns(
714727
DeprecationWarning,
@@ -1527,6 +1540,10 @@ def test_absolute_request_url(self, client: AsyncFinch) -> None:
15271540
)
15281541
assert request.url == "https://myapi.com/foo"
15291542

1543+
@pytest.mark.skipif(
1544+
version.parse(httpx.__version__) >= version.parse("0.28.0"),
1545+
reason="Test is only relevant for httpx versions < 0.28.0",
1546+
)
15301547
def test_transport_option_is_deprecated(self) -> None:
15311548
with pytest.warns(
15321549
DeprecationWarning,
@@ -1556,6 +1573,10 @@ async def test_transport_option_mutually_exclusive_with_http_client(self) -> Non
15561573
http_client=http_client,
15571574
)
15581575

1576+
@pytest.mark.skipif(
1577+
version.parse(httpx.__version__) >= version.parse("0.28.0"),
1578+
reason="Test is only relevant for httpx versions < 0.28.0",
1579+
)
15591580
def test_connection_pool_limits_option_is_deprecated(self) -> None:
15601581
with pytest.warns(
15611582
DeprecationWarning,
@@ -1593,6 +1614,10 @@ async def test_connection_pool_limits_option_mutually_exclusive_with_http_client
15931614
http_client=http_client,
15941615
)
15951616

1617+
@pytest.mark.skipif(
1618+
version.parse(httpx.__version__) >= version.parse("0.28.0"),
1619+
reason="Test is only relevant for httpx versions < 0.28.0",
1620+
)
15961621
def test_proxies_option_is_deprecated(self) -> None:
15971622
with pytest.warns(
15981623
DeprecationWarning,

0 commit comments

Comments
 (0)