Skip to content

Commit c518948

Browse files
code-perspectivecopybara-github
authored andcommitted
Copybara import of the project:
-- 56dc839 by Shruthi Gorantala <[email protected]>: Minor corrections to gcp scripts: Annotate from_args as static method and correct git-clone link and some paths. Annotate from_args as static method update git clone link to https line and correct one of the paths COPYBARA_INTEGRATE_REVIEW=#1774 from google:gcp_scripts b96723f PiperOrigin-RevId: 753283992
1 parent 0020c70 commit c518948

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

scripts/gcp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ $ gcloud beta services identity create --service tpu.googleapis.com
4848
- Clone HEIR repo and install dependencies
4949

5050
```sh
51-
$ git clone git@github.com:google/heir.git
51+
$ git clone https://github.com/google/heir.git
5252
$ cd heir
53-
$ pip install -r /scripts/gcp/requirements.txt
53+
$ pip install -r ./scripts/gcp/requirements.txt
5454
```
5555

5656
- Create a TPU

scripts/gcp/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def add_args(parser) -> None:
5050
parser.add_argument("--project", type=str, required=False)
5151
parser.add_argument("--zone", type=str, required=False)
5252

53-
def from_args(self, args) -> "Core":
53+
@staticmethod
54+
def from_args(args) -> "Core":
5455
"""Creates a Core object from the given args."""
5556
return Core(project=args.project, zone=args.zone)
5657

scripts/gcp/tool

100644100755
File mode changed.

0 commit comments

Comments
 (0)