This is a solution proposal for #432: the current FastAPI version comparison fails for version 0.100.0-beta2 because the lexicographic comparison of the string value fails because "1" is less than "4" even if the numerical value 100 is higher than 41.
Before:
ipdb> self.min_version
'0.41.0'
ipdb> fastapi.__version__
'0.100.0-beta2'
ipdb> fastapi.__version__ < self.min_version # due to lexicographic comparison, not proper SemVer comparison
True
Checking in on any progress getting this merged? We are a little stuck on upgrades to fast-api while Rollbar misinterprets their 100 version as < 0.41+. FastAPI 0.41.0+ is required to use add_to() function
Description of the change
This is a solution proposal for #432: the current FastAPI version comparison fails for version
0.100.0-beta2
because the lexicographic comparison of the string value fails because"1"
is less than"4"
even if the numerical value100
is higher than41
.Before:
After:
Type of change
Related issues
Checklists
Development
Code review