Lines Matching full:version
5 # Licensed under the Apache License, Version 2.0 (the "License");
22 Get the latest version of package syn, say 1.0.17,
94 def get_version_numbers(version): argument
95 match = VERSION_MATCHER.match(version)
103 echo(args, "checking version={} id={}".format(check_version, check_id))
109 """Ask crates.io for a pkg's latest version."""
117 """Ask crates.io for the latest version download path."""
118 base_name, version = pkg_base_name(name)
119 if not version:
120 version = get_max_version(name)
121 url = "https://crates.io/api/v1/crates/{}/{}".format(base_name, version)
125 if "version" not in data or "dl_path" not in data["version"]:
126 print("ERROR: cannot find version {} of package {}".format(
127 version, base_name))
129 echo(args, "found download path for version {}".format(version))
130 return data["version"]["dl_path"]
147 # but it might not be (name + "-" + version)