PackagingVersion#

class neophile.inventory.version.PackagingVersion(parsed_version, version)#

Bases: ParsedVersion

Represents a version string using packaging.version.Version.

Parameters:

Methods Summary

from_str(string)

Parse a string into a Version.

is_valid(string)

Return whether a version is valid.

Methods Documentation

classmethod from_str(string)#

Parse a string into a Version.

Parameters:

string (str) – Version as a string.

Returns:

Parsed version.

Return type:

PackagingVersion

static is_valid(string)#

Return whether a version is valid.

Parameters:

string (str) – Version as a string.

Returns:

Always returns True since all versions are valid for this implementation (some will parse to a legacy version).

Return type:

bool