|
|
|
|
|
|
parser.add_argument("--package_dirs", nargs="+") |
|
|
|
args = parser.parse_args() |
|
|
|
|
|
|
|
ok = False |
|
|
|
return_code = 0 |
|
|
|
ok = True |
|
|
|
for package_dir in args.package_dirs: |
|
|
|
config_path = os.path.join(os.getcwd(), package_dir, "pydoc-config.yaml") |
|
|
|
print(config_path) |
|
|
|
|
|
|
subprocess.check_call(subprocess_args, stdout=output_file) |
|
|
|
remove_trailing_whitespace(output_file_name) |
|
|
|
new_hash = hash_file(output_file_name) |
|
|
|
ok = old_hash == new_hash |
|
|
|
|
|
|
|
return_code = 0 if ok else 1 |
|
|
|
ok &= old_hash == new_hash |
|
|
|
sys.exit(return_code) |
|
|
|
sys.exit(0 if ok else 1) |