Currently, if the current database version is 1.0.9, then pum upgrade won't apply a delta with version number 1.0.10. Because the version strings are compared, and the string "1.0.9" is greater than "1.0.10":
>>> "1.0.9" > "1.0.10"
True
In the same way a delta with version 1.0.9 will be applied after a delta with version 1.0.10. This is because Pum sorts deltas based on their version strings.
To fix that problem Pum needs to rely on setuptools' packaging.version.parse (see link for example). Or maybe rely on a semver library (example).
Currently, if the current database version is
1.0.9
, thenpum upgrade
won't apply a delta with version number1.0.10
. Because the version strings are compared, and the string"1.0.9"
is greater than"1.0.10"
:In the same way a delta with version
1.0.9
will be applied after a delta with version1.0.10
. This is because Pum sorts deltas based on their version strings.To fix that problem Pum needs to rely on setuptools'
packaging.version.parse
(see link for example). Or maybe rely on a semver library (example).