()
| 26 | |
| 27 | |
| 28 | def main(): |
| 29 | assert sys.argv[1] == "check_requirement" |
| 30 | payload = json.loads(sys.stdin.read()) |
| 31 | assert type(payload) == dict |
| 32 | jsonschema.validate(payload, SCHEMA) |
| 33 | fail = os.environ.get("APIP_FAIL_PACKAGE", "") |
| 34 | if payload["name"] in fail: |
| 35 | sys.exit(2) |
| 36 | |
| 37 | |
| 38 | if __name__ == "__main__": |
no test coverage detected