MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / check_version

Function check_version

pydev_ipython/version.py:28–38  ·  view source on GitHub ↗

check version string found_version >= expected_min_or_eq_to_version If dev/prerelease tags result in TypeError for string-number comparison, it is assumed that the dependency is satisfied. Users on dev branches are responsible for keeping their own packages up to date.

(found_version, expected_min_or_eq_to_version)

Source from the content-addressed store, hash-verified

26
27
28def check_version(found_version, expected_min_or_eq_to_version):
29 """check version string found_version >= expected_min_or_eq_to_version
30
31 If dev/prerelease tags result in TypeError for string-number comparison,
32 it is assumed that the dependency is satisfied.
33 Users on dev branches are responsible for keeping their own packages up to date.
34 """
35 try:
36 return _Version(found_version) >= _Version(expected_min_or_eq_to_version)
37 except TypeError:
38 return True
39
40
41if __name__ == "__main__":

Callers 4

has_bindingFunction · 0.90
import_pyqt4Function · 0.90
get_optionsFunction · 0.90
version.pyFile · 0.85

Calls 1

_VersionClass · 0.85

Tested by

no test coverage detected