Release version data structures.
total_ordering
dataclass
Semantic
Primary fields for project using semantic versioning.
Prerelease instances should be carried alongside if such information is desired by a codepath. Separation is performed as any desired comparisions should only use the primary delta fields.
SemanticProperties
- major
Major revision usually indicating which protocol set is implemented. Often, the API should have intersections with earlier major revisions, but the level of inconsistency is usually high enough to expect mismatches.
- minor
Minor revision indicating the level of the protocol set, increasing the number usually indicating an expansion of the protocols.
- patch
Revision indicator noting complete protocol set consistency across distinct values. Used for releases that correct defects.
Patch should be negative if describing a pre-release and potentially a negative number indirectly identifying the Prerelease.quality.
Semanticmajorint
major: (int) = None
Semanticminorint
minor: (int) = None
Semanticpatchint
patch: (int) = None
@total_ordering
Semantic__gt__
__gt__(self, operand)
Prerelease
Pre-release version information.
PrereleaseProperties
Prereleasequalitystr
quality: (str) = None
Prereleaseserialint
serial: (int) = None