MCPcopy Create free account
hub / github.com/apache/fory / prepare

Function prepare

ci/release.py:51–65  ·  view source on GitHub ↗

Create a new release branch

(v: str)

Source from the content-addressed store, hash-verified

49
50
51def prepare(v: str):
52 """Create a new release branch"""
53 logger.info("Start to prepare release branch for version %s", v)
54 _check_release_version(v)
55 os.chdir(PROJECT_ROOT_DIR)
56 branch = f"releases-{v}"
57 try:
58 subprocess.check_call(f"git checkout -b {branch}", shell=True)
59 bump_version(version=v, l="all")
60 subprocess.check_call("git add -u", shell=True)
61 subprocess.check_call(f"git commit -m 'prepare release for {v}'", shell=True)
62 except BaseException:
63 logger.exception("Prepare branch failed")
64 subprocess.check_call(f"git checkout - && git branch -D {branch}", shell=True)
65 raise
66
67
68def build(v: str):

Callers

nothing calls this directly

Calls 3

_check_release_versionFunction · 0.85
bump_versionFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected