python - How to compare pip versioning with debian versioning? -


for example if have package version "1.0.0", changes versioning "0.0.10" epoch added. if compare in package way "1:0.0.10" > "1.0.0" there true. pip not has epochs, take latest according dates of changes = "0.0.10", think. so, how 2 versions ("0.0.10" , "1.0.0") correctly compared (using python example)?

according pep 0440 (https://www.python.org/dev/peps/pep-0440/#version-scheme)

final releases within project must numbered in consistently increasing fashion, otherwise automated tools not able upgrade them correctly

therefore version after 1.0.0 must 1.0.1 or 1.1.0 or 2.0.0.

edit : pointed out, there support epochs python , pip. have use 1!0.0.10 tell python version newer 1.0.0. note have keep 1! in further releases. if happen change again numerotation 2!1.0.0 , on.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -