Python Package semantic-version: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
<syntaxhighlight lang='text'> | <syntaxhighlight lang='text'> | ||
semantic-version == 2.10.0 | semantic-version == 2.10.0 | ||
</syntaxhighlight> | |||
=Programming Model= | |||
<syntaxhighlight lang='python'> | |||
from semantic_version import Version | |||
v = Version('1.2.3') | |||
v2 = Version.coerce('1.2') | |||
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.
?