How to use the fasteners.process_lock.interprocess_locked function in fasteners

To help you get started, we’ve selected a few fasteners examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emc-openstack / storops / storops_comptest / utils.py View on Github external
def inter_process_locked(name):
    return process_lock.interprocess_locked(get_lock_file(name))
github darvid / reqwire / src / reqwire / scaffold.py View on Github external
@fasteners.process_lock.interprocess_locked(str(reqwire.config.lockfile))
def extend_source_file(working_directory,             # type: str
                       tag_name,                      # type: str
                       specifiers,                    # type: Iterable[str]
                       extension='.in',               # type: str
                       index_url=None,                # type: Optional[str]
                       extra_index_urls=None,   # type: Optional[Set[str]]
                       lookup_index_urls=None,  # type: Optional[Set[str]]
                       prereleases=False,             # type: bool
                       resolve_canonical_names=True,  # type: bool
                       resolve_versions=True,         # type: bool
                       ):
    # type: (...) -> None
    """Adds requirements to an existing requirement source file.

    Args:
        working_directory: The parent directory of the source file.