Project

Profile

Help

Issue #7826

Updated by fao89 about 4 years ago

~~~ python 
 if semver.compare(collection_version.version, last_highest.version) > 0: 
 ~~~ 

 https://github.com/pulp/pulp_ansible/blob/master/pulp_ansible/app/tasks/collections.py#L223 

 ~~~ python 
 In [1]: import semantic_version as semver 

 In [2]: semver.compare("9.1.0-dev.1+40688.git966d0b3", "9.1.0-dev.1+40390.gita455009") 
 Out[2]: NotImplemented 

 In [3]: semver.Version("9.1.0-dev.1+40688.git966d0b3") > semver.Version("9.1.0-dev.1+40390.gita455009") 
 Out[3]: False 

 In [4]: semver.Version("9.1.0-dev.1+40688.git966d0b3") < semver.Version("9.1.0-dev.1+40390.gita455009") 
 Out[4]: False 

 In [5]: semver.Version("9.1.0-dev.1+40688.git966d0b3") == semver.Version("9.1.0-dev.1+40390.gita455009") 
 Out[5]: False 

 ~~~ 

 https://galaxy.ansible.com/api/v2/collections/brightcomputing/bcm/versions/ 

Back