• Home
  • Raw
  • Download

Lines Matching full:version

23 """Supports Python version checking."""
30 # The minimum Python version the webkitpy package supports.
35 """Compare the current Python version with a target version.
38 sysmodule: An object with version and version_info data attributes
39 used to detect the current Python version. The attributes
40 should have the same semantics as sys.version and
43 target_version: A string representing the Python version to compare
44 the current version against. The string should have
46 Defaults to the minimum version that the webkitpy
53 current version with the target version. A positive
54 number means the current version is greater than the
56 means the current version is less than the target.
57 This method compares version information only up
58 to the precision of the given target version. For
59 example, if the target version is 2.6 and the current
60 version is 2.5.3, this method uses 2.5 for the purposes
62 current_version: A string representing the current Python version, for
64 target_version: A string representing the version that the current
65 version was compared against, for example 2.5.
73 # The number of version parts to compare.
76 # We use sys.version_info rather than sys.version since its first
83 # Compare version strings lexicographically.
91 # The version number portion of the current version string, for
93 current_version = sysmodule.version.split()[0]
98 # FIXME: Add a logging level parameter to allow the version message
101 """Check the current Python version against a target version.
103 Logs a warning message if the current version is less than the
104 target version.
107 log: A logging.logger instance to use when logging the version warning.
113 A boolean value of whether the current version is greater than
114 or equal to the target version.
124 # Then the current version is at least the minimum version.
128 "version (%s). The minimum supported version is %s.\n"
129 " See the following page to upgrade your Python version:\n\n"