guardscan-cli 1.1.1rc5__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ __version__ = "1.1.1rc5"
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: guardscan_cli/bin/guardscan.exe
3
+ size: 102046208 bytes
4
+ sha256: 1019551940790e01c8f1fceb3077bfe9e68df01719b8c42e57e74771b76bd403
@@ -0,0 +1,25 @@
1
+ """Standard-library-only launcher for the bundled GuardScan executable."""
2
+ from importlib.resources import files
3
+ import hashlib
4
+ import os
5
+ import subprocess
6
+ import sys
7
+
8
+ EXPECTED_SHA256 = "1019551940790e01c8f1fceb3077bfe9e68df01719b8c42e57e74771b76bd403"
9
+ BINARY_NAME = "guardscan.exe"
10
+
11
+ def main():
12
+ binary = files("guardscan_cli").joinpath("bin", BINARY_NAME)
13
+ executable = os.fspath(binary)
14
+ digest = hashlib.sha256()
15
+ with open(executable, "rb") as stream:
16
+ for chunk in iter(lambda: stream.read(1024 * 1024), b""):
17
+ digest.update(chunk)
18
+ digest = digest.hexdigest()
19
+ if digest != EXPECTED_SHA256:
20
+ raise RuntimeError("bundled GuardScan executable failed integrity verification")
21
+ argv = [executable, *sys.argv[1:]]
22
+ if os.name != "nt":
23
+ os.execv(executable, argv)
24
+ completed = subprocess.run(argv, check=False)
25
+ raise SystemExit(completed.returncode)
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: guardscan-cli
3
+ Version: 1.1.1rc5
4
+ Summary: Privacy-first code review and security scanning CLI
5
+ License-Expression: MIT
6
+ Requires-Python: >=3.9
@@ -0,0 +1,7 @@
1
+ guardscan_cli/__init__.py,sha256=WEbDQtpkYQ5y1CWWLF-2NIMb4Imy7XVVOga5YLulzlA,25
2
+ guardscan_cli/launcher.py,sha256=cg_skOCcnh8lYioT2HRH3ZxAfyrg1oDRnmum2ibIaZ4,914
3
+ guardscan_cli/bin/guardscan.exe,sha256=EBlVGUB5DgHI8fzrMHe_6eaN8BcZuMQuV-dHcbdr1AM,102046208
4
+ guardscan_cli-1.1.1rc5.dist-info/METADATA,sha256=vWkfRRVPMMj9PKK7z4wr18BWH7oquJ9i_2e4wUoYDvw,168
5
+ guardscan_cli-1.1.1rc5.dist-info/WHEEL,sha256=-effnnm5VsEG6B3LDrQfy1P_YFad6JBJJqi9BiyP_a4,95
6
+ guardscan_cli-1.1.1rc5.dist-info/entry_points.txt,sha256=YKJuyhWBzTpoI7QQFYq0GFmDQlcpz8oCtjWKYT26Ks4,58
7
+ guardscan_cli-1.1.1rc5.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: guardscan-release
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ guardscan = guardscan_cli.launcher:main