You are here: Home / LBN / Up2date / Cloud Computing / BastionLinux 19 / python-semver-2.0.1-1.lbn19.noarch

python-semver-2.0.1-1.lbn19.noarch

Package Attributes
RPM  python-semver-2.0.1-1.lbn19.noarch.rpm Architecture  noarch Size  6931 Created  2019/09/30 06:52:34 UTC
Package Specification
Summary Python package to work with Semantic Versioning (http://semver.org/)
Group Application/Internet
License ZPL
Home Page https://pypi.python.org/packages/source/s/semver/semver-2.0.1.tar.gz
Description

Simple module for comparing versions as noted at semver.org.

This module provides just couple of functions, main of which are:

>>> import semver >>> semver.compare("1.0.0", "2.0.0") 1 >>> semver.compare("2.0.0", "1.0.0") -1 >>> semver.compare("2.0.0", "2.0.0") 0 >>> semver.match("2.0.0", ">=1.0.0") True >>> semver.match("1.0.0", ">1.0.0") False

Requires
python  
rpmlib(FileDigests)  
rpmlib(CompressedFileNames)  
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PartialHardlinkSets)  
rpmlib(PayloadIsXz)  
Provides
python-semver

Document Actions