Lines Matching full:version
3 # This script bumps the version of LLVM in *all* the different places where
8 import packaging.version
21 def process_file(self, fpath: Path, version: packaging.version.Version) -> None:
22 self.version = version
24 version.major,
25 version.minor,
26 version.micro,
27 version.pre,
50 # Return a string from the version class
54 version: Optional[packaging.version.Version] = None,
57 if version is None:
58 version = self.version
60 ver = f"{version.major}.{version.minor}.{version.micro}"
61 if include_suffix and version.pre:
62 ver += f"-{version.pre[0]}{version.pre[1]}"
72 # building a final version.
153 usage="Call this script with a version and it will bump the version for you"
155 parser.add_argument("version", help="Version to bump to, e.g. 15.0.1", default=None)
156 parser.add_argument("--rc", default=None, type=int, help="RC version")
157 parser.add_argument("--git", action="store_true", help="Git version")
170 verstr = args.version
172 # parse the version string with distutils.
173 # note that -rc will end up as version.pre here
175 version = packaging.version.parse(verstr)
198 "llvm/utils/gn/secondary/llvm/version.gni",
208 processor.process_file(source_root / Path(f), version)