Converts the label of bazel rule to the name of podspec.
(label)
| 135 | |
| 136 | |
| 137 | def get_spec_name(label): |
| 138 | """Converts the label of bazel rule to the name of podspec.""" |
| 139 | assert label.startswith("//absl/"), "{} doesn't start with //absl/".format( |
| 140 | label) |
| 141 | # e.g. //absl/apple/banana -> abseil/apple/banana |
| 142 | return "abseil/" + label[7:] |
| 143 | |
| 144 | |
| 145 | def write_podspec(f, rules, args): |
no test coverage detected