-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
""" | ||
Appends grpc-web to the project name of both Cargo.toml and pyproject.toml. | ||
This is used in CI to update the package metadata before publishing the alternate | ||
package with the grpc-web feature enabled. | ||
""" | ||
import toml | ||
|
||
with open("pyproject.toml", "r+") as f: | ||
data = toml.load(f) | ||
data["project"]["name"] = "qcs-sdk-python-grpc-web" | ||
f.seek(0) | ||
f.write(toml.dumps(data)) | ||
f.truncate() | ||
|
||
with open("Cargo.toml", "r+") as f: | ||
data = toml.load(f) | ||
data["package"]["name"] = "qcs-sdk-python-grpc-web" | ||
f.seek(0) | ||
f.write(toml.dumps(data)) | ||
f.truncate() |