runway.compat module

Python dependency compatability handling.

exception runway.compat.PackageNotFoundError[source]

Bases: ModuleNotFoundError

The package was not found.

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.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.