IQ.Pilot Release Commit @ 98a2c61
This commit is contained in:
@@ -18,8 +18,8 @@ def run(args, **kwargs):
|
||||
|
||||
|
||||
def update_release(directory, name, version, agnos_version, release_notes):
|
||||
(directory / "docs").mkdir(parents=True, exist_ok=True)
|
||||
with open(directory / "docs" / "CHANGELOG.md", "w") as f:
|
||||
(directory / "iqpilot" / "docs").mkdir(parents=True, exist_ok=True)
|
||||
with open(directory / "iqpilot" / "docs" / "CHANGELOG.md", "w") as f:
|
||||
f.write(release_notes)
|
||||
|
||||
(directory / "iqpilot" / "common").mkdir(parents=True, exist_ok=True)
|
||||
|
||||
@@ -94,7 +94,7 @@ def cleanup_stale_overlay() -> None:
|
||||
|
||||
def parse_release_notes(basedir: str) -> bytes:
|
||||
try:
|
||||
with open(os.path.join(basedir, "docs", "CHANGELOG.md"), "rb") as f:
|
||||
with open(os.path.join(basedir, "iqpilot", "docs", "CHANGELOG.md"), "rb") as f:
|
||||
r = f.read().split(b'\n\n', 1)[0] # Slice latest release notes
|
||||
try:
|
||||
return bytes(parse_markdown(r.decode("utf-8")), encoding="utf-8")
|
||||
@@ -462,7 +462,7 @@ def prepare_environment() -> bool:
|
||||
subprocess.check_output(cmd, cwd=cwd, stderr=subprocess.STDOUT, encoding="utf8", env=env)
|
||||
|
||||
try:
|
||||
env_sync = os.path.join(BASEDIR, "scripts", "iqpilot", "env_sync.sh")
|
||||
env_sync = os.path.join(BASEDIR, "artifacts", "runtime", "env_sync.sh")
|
||||
if os.path.exists(env_sync):
|
||||
cloudlog.info("update prep: syncing python env")
|
||||
_run(["bash", env_sync], BASEDIR)
|
||||
|
||||
@@ -33,7 +33,7 @@ def get_version(path: str = BASEDIR) -> str:
|
||||
|
||||
|
||||
def get_release_notes(path: str = BASEDIR) -> str:
|
||||
with open(os.path.join(path, "docs", "CHANGELOG.md")) as f:
|
||||
with open(os.path.join(path, "iqpilot", "docs", "CHANGELOG.md")) as f:
|
||||
return f.read().split('\n\n', 1)[0]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user