MCPcopy Create free account
hub / github.com/conda/constructor / sign

Method sign

constructor/signing.py:70–74  ·  view source on GitHub ↗

Sign the specified file.

(self, file_path: str | Path)

Source from the content-addressed store, hash-verified

68 raise NotImplementedError("Signature verification not implemented for base class.")
69
70 def sign(self, file_path: str | Path):
71 """Sign the specified file."""
72 # Use shell=True with env var references so secrets aren't exposed in tracebacks
73 command = f"{self.get_signing_command()} {win_str_esc(str(file_path))}"
74 check_call(command, shell=True)
75
76
77class WindowsSignTool(SigningTool):

Callers 1

createFunction · 0.80

Calls 2

get_signing_commandMethod · 0.95
win_str_escFunction · 0.85

Tested by

no test coverage detected