runway.compat module

Python dependency compatibility handling.

exception runway.compat.PackageNotFoundError[source]

Bases: ModuleNotFoundError

The package was not found.

property name

module name

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.