-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Deprecated fix #2482
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
Deprecated fix #2482
Conversation
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
| def _try_cast(val): | ||
| val = val.strip() | ||
| try: | ||
| m = re.match("(\\d+)(.*)", val) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should prefer optional_import("pkg_resources", name="parse_version") if it is installed... this version_leq will be used in many cases, better to make it as robust as possible
wyli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! if you don't have time to add optional_import("pkg_resources", name="parse_version"), I'll do it later today
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
|
This should sort the optional dependency on pkg_resources now |
Signed-off-by: Eric Kerfoot eric.kerfoot@kcl.ac.uk
Fixes #2479 .
Description
This fixes an issue with version strings and replaces some functionality reliant on an optional package with an internal solution. Version strings should contain integers separated by ".", any component not containing an integer is broken into an initial integer component and the rest. The integers from this are compared when comparing versions, so "0.6.0rc0" will be treated the same as "0.6.0". Git version suffixes are ignored.
Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests.make htmlcommand in thedocs/folder.