Python Package semantic-version: Difference between revisions
Jump to navigation
Jump to search
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> | </syntaxhighlight> |
Revision as of 21:56, 24 January 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