runway.compat module

Python dependency compatibility handling.

exception runway.compat.PackageNotFoundError[source]

Bases: ModuleNotFoundError

The package was not found.

property name

module name

__init__(*args, **kwargs)
__new__(**kwargs)
add_note()

Exception.add_note(note) – add a note to the exception

msg

exception message

name_from

name imported from module

path

module path

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

runway.compat.shlex_join(split_command)

Return a shell-escaped string from split_command.

runway.compat.version(distribution_name)[source]

Get the version string for the named package.

Parameters

distribution_name – The name of the distribution package to query.

Returns

The version string for the package as defined in the package’s “Version” metadata key.