Skip to content

Commit

Permalink
fix: hyper-proxy has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
BatmanAoD committed Nov 14, 2024
1 parent df70de6 commit f875d47
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions crates/python/scripts/patch_grpc_web.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""
Appends grpc-web to the project name of both Cargo.toml and pyproject.toml,
and patches the `hyper-proxy` dependency to allow ppc64le wheel builds.
Appends grpc-web to the project name of both Cargo.toml and pyproject.toml.
This is used in CI to prepare grpc-web-specific python artifacts for publishing.
"""
Expand Down Expand Up @@ -29,11 +28,4 @@ def write(f: TextIOWrapper, data):
with open(join(pycrate_path, "Cargo.toml"), "r+") as f:
data = toml.load(f)
data["package"]["name"] = "qcs-sdk-python-grpc-web"
write(f, data)

# Patch the `hyper-proxy` dependency

with open(join(workspace_path, "Cargo.toml"), "r+") as f:
data = toml.load(f)
data["patch"] = {"crates-io": {"hyper-proxy": {"git": "https://github.com/rigetti/hyper-proxy"}}}
write(f, data)
write(f, data)

0 comments on commit f875d47

Please sign in to comment.