-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[22.01] Workaround to numeric sorting in the local portion of tool versions if they are galaxy "build" numbers #13570
base: release_22.01
Are you sure you want to change the base?
[22.01] Workaround to numeric sorting in the local portion of tool versions if they are galaxy "build" numbers #13570
Conversation
versions if they are galaxy "build" numbers.
Would you mind adding a simple unit test? Just to verify that whatever is passed to |
As a follow-up to the discussion at the pre-release meeting, I don't think we need to initialize a tool here for testing. The only thing that needs testing here is the logic modifying the version string. One simple way to do it would be to refactor the version_object property extracting a helper method that takes a string and returns a, possibly, modified string. Thus, the property would call the helper and then, call |
|
FWIW, you can do
(with a diff variable name) |
@pradyunsg Thanks for the tip, I'm aware, but unfortunately this doesn't help for us because we have to support user-defined tool versions which are often not PEP 440 compliant (e.g. "4.3.1t") to not break reproducibility of old pipelines. |
Could you drop a comment on pypa/packaging#502? Multiple folks have expressed interest in having the Even if the final maintainer of such a package isn't you, having your interest expressed on that issue would still be useful. :) |
On usegalaxy.org, we have installed a few different "+galaxyN" versions of Circos 0.69.8, including +galaxy1, +galaxy7, and +galaxy10. The version that shows up in the tool panel is +galaxy7, although +galaxy10 is selectable from the tool form version dropdown. This is because of the PEP-440 rules regarding sorting of the local version identifier.
This change causes local version identifiers of the format
^\+galaxy(.+)$
to be converted to+galaxy.(\1)
so that if the stuff after+galaxy
is an integer, it will sort numerically instead of lexicographically.WIP/Draft because @nsoranzo kindly offered to take a look at the proper handling of tool lineages.
How to test the changes?
(Select all options that apply)
License