MCPcopy
hub / github.com/pex-tool/pex / write_deterministic

Method write_deterministic

pex/common.py:373–390  ·  view source on GitHub ↗
(
        self,
        filename,  # type: Text
        arcname=None,  # type: Optional[Text]
        digest=None,  # type: Optional[Digest]
        deterministic=True,  # type: bool
        compress=True,  # type: bool
    )

Source from the content-addressed store, hash-verified

371 return zip_info, is_dir
372
373 def write_deterministic(
374 self,
375 filename, # type: Text
376 arcname=None, # type: Optional[Text]
377 digest=None, # type: Optional[Digest]
378 deterministic=True, # type: bool
379 compress=True, # type: bool
380 ):
381 if deterministic:
382 return self.write_ex(
383 filename,
384 arcname=arcname,
385 date_time=DETERMINISTIC_DATETIME.timetuple(),
386 file_mode=ZipFileType.from_path(filename).deterministic_mode,
387 digest=digest,
388 compress=compress,
389 )
390 return self.write_ex(filename, arcname=arcname, digest=digest, compress=compress)
391
392 def write_ex(
393 self,

Callers 4

write_entryMethod · 0.80
create_whlFunction · 0.80
build_wheelFunction · 0.80
_createMethod · 0.80

Calls 2

write_exMethod · 0.95
from_pathMethod · 0.80

Tested by

no test coverage detected