Updates to follow pep 440 versioning for pipelines #163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates to follow pep 440 versioning for pipelines, this is close to how we have been versioning the pipelines already, but now we will better support the usage of the dev, alpha, beta, and rc identifiers; additionally, versions with and without
v
. Along with this, we now can usedevelopment
as an alias to grabbing the most recent dev version of a pipeline. Legacy pipelines that are usingdevelopment
as their version will still be considered as the most recent dev version, otherwise the sort order is largely the same a before.This also fixes a bug that pops up with using packaging >= 22.0, as in this version range
development
is not a valid version. We override this behavior and say thatdevelopment
is the highest version possible and is still considered as a dev version.For example if given the following versions:
We should now expect the following behavior:
If we still have legacy versions, e.g.:
we expect the following behavior:
Finally,
jetstream pipelines
will now return a sorted list, previously this was somewhat random as there was not a function for identifying if one version was greater than the other in terms of sort order. This is fixed by adding__eq__
and__lt__
.