Write out versions of packages to files in a directory.
(dest_path: pathlib.Path)
| 220 | |
| 221 | |
| 222 | def write_package_versions(dest_path: pathlib.Path): |
| 223 | """Write out versions of packages to files in a directory.""" |
| 224 | dest_path.mkdir(parents=True, exist_ok=True) |
| 225 | |
| 226 | for k, v in DOWNLOADS.items(): |
| 227 | p = dest_path / ("VERSION.%s" % k) |
| 228 | content = "%s_VERSION := %s\n" % (k.upper().replace("-", "_"), v["version"]) |
| 229 | write_if_different(p, content.encode("ascii")) |
| 230 | |
| 231 | |
| 232 | def write_cpython_version(dest_path: pathlib.Path, version: str): |
no test coverage detected