Python Package semantic-version: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
Line 20: Line 20:
v2 = Version.coerce('1.2')
v2 = Version.coerce('1.2')
assert v > v2
assert v > v2
</syntaxhighlight>
Getting the string representation of a <code>Version</code> instance.
<syntaxhighlight lang='python'>
?
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 04:16, 14 June 2023

External

Internal

Overview

requirements.txt

semantic-version == 2.10.0

Programming Model

from semantic_version import Version

v = Version('1.2.3')
v2 = Version.coerce('1.2')
assert v > v2

Getting the string representation of a Version instance.

?