Partial version comparison
Shouldn't partial versions be compared too?
At the moment Version('1.0', partial=True) == Version('1.0.5', partial=True) is True.
Works by coercing both and then comparing, but isn't that the result you'd want by comparing the original ones in the first place?
:+1:
Hi,
Thanks for the suggestion. However, partials are intended as an implementation detail for specs; I haven't found a real-world use case for them.
How would you use this feature?
Some packages use both partial version numbers and regular ones, i.e. using 1.8 together with 1.8.1 (e.g. Django). To compare them correctly 1.8 has to be considered as 1.8.0.
Well, the overall design is that users would first move from the real world of heterogeneous version numbers to the purer world of semver through coerce, and perform all operations on sanitized versions.