MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / _macos_codesign

Function _macos_codesign

misc/python/materialize/cli/run.py:531–544  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

529
530
531def _macos_codesign(path: str) -> None:
532 env = dict(os.environ)
533 command = ["codesign"]
534 command.extend(["-s", "-", "-f", "--entitlements"])
535
536 # write our entitlements file to a temp path
537 temp = tempfile.NamedTemporaryFile()
538 temp.write(bytes(MACOS_ENTITLEMENTS_DATA, "utf-8"))
539 temp.flush()
540
541 command.append(temp.name)
542 command.append(path)
543
544 spawn.runv(command, env=env)
545
546
547def _connect_sql(urlstr: str) -> psycopg.Connection | None:

Callers 1

mainFunction · 0.85

Calls 4

extendMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected