-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompile_compatibility.py
More file actions
executable file
·29 lines (23 loc) · 1014 Bytes
/
compile_compatibility.py
File metadata and controls
executable file
·29 lines (23 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
"""takes results of compatibility tests and compie into one file"""
import os
import sys
from compile_matrix import print_breakdowns
def content_checker(filepath):
return os.path.getsize(filepath) > 0
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Params: <version-thumbprint-file> [folder]")
sys.exit(1)
print("## Minimal Effort Compatibility")
print(
"Checks if `icloudpd` can be installed using minimal effort and ran bare minimum functionality of displaying a version information. Minimal effort may require installing default version of package manager using OS tools"
)
print("")
version_thumbprint_file = sys.argv[1]
with open(version_thumbprint_file) as file:
version_thumbprint = file.read()
print(f"Version: {version_thumbprint}")
print("")
folder = sys.argv[2] if len(sys.argv) > 2 else "."
print_breakdowns(folder, content_checker, ("(src)", "Test pass using src (for pip)"))