Skip to content

Commit 42cc26e

Browse files
authored
Merge pull request #754 from Point72/tkp/httpx
Migrate from httpx to httpx2
2 parents 1885b26 + 1a5de58 commit 42cc26e

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

conda/dev-environment-unix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
- flex
1818
- graphviz
1919
- gtest
20-
- httpx>=0.20,<1
20+
- httpx2>=2,<3
2121
- libarrow<24
2222
- libboost>=1.80.0
2323
- libboost-headers>=1.80.0

conda/dev-environment-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
# - flex # not available on windows
1818
- graphviz
1919
- gtest
20-
- httpx>=0.20,<1
20+
- httpx2>=2,<3
2121
- libarrow<24
2222
- libboost>=1.80.0
2323
- libboost-headers>=1.80.0

csp/tests/adapters/kafka_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import httpx
1+
import httpx2
22

33

44
def _precreate_topic(topic):
55
"""Since we test against confluent kafka, just use the kafka rest addon"""
66
rest_broker = "http://localhost:8082"
7-
cluster_info = httpx.get(f"{rest_broker}/v3/clusters")
7+
cluster_info = httpx2.get(f"{rest_broker}/v3/clusters")
88
cluster_id = cluster_info.json()["data"][0]["cluster_id"]
9-
resp = httpx.post(f"{rest_broker}/v3/clusters/{cluster_id}/topics", json={"topic_name": topic})
9+
resp = httpx2.post(f"{rest_broker}/v3/clusters/{cluster_id}/topics", json={"topic_name": topic})
1010
if resp.status_code != 201 and "already exists" not in resp.content.decode("utf8"):
1111
raise Exception(
1212
f"Could not create topic {topic} on cluster {rest_broker}/v3/clusters/{cluster_id}/topics - received {resp.content}"

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ develop = [
8181
"graphviz",
8282
"pillow",
8383
# adapters
84-
"httpx>=0.20,<1", # kafka
84+
"httpx2>=2,<3", # kafka
8585
"perspective-python>=2", # perspective
8686
"anywidget", # perspective
8787
"polars", # parquet
@@ -102,7 +102,7 @@ test = [
102102
"pytest-asyncio",
103103
"pytest-cov",
104104
"pytest-sugar",
105-
"httpx>=0.20,<1",
105+
"httpx2>=2,<3",
106106
"perspective-python",
107107
"polars",
108108
"psutil",

0 commit comments

Comments
 (0)