runway.compat module

Python dependency compatibility handling.

exception runway.compat.PackageNotFoundError[source]

Bases: ModuleNotFoundError

The package was not found.

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

exception message

name

module name

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.