Skip to content

Commit 07914ea

Browse files
authored
Merge pull request #615 from basetenlabs/bump-version-0.6.4
Release 0.6.4
2 parents f801e68 + 38a6165 commit 07914ea

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/create_release_pr.yml

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
CURR_VERSION=$(curl https://pypi.org/pypi/truss/json | jq ".info.version")
4848
PR_BODY="Updating Truss from [$CURR_VERSION](https://pypi.org/pypi/truss/json) to $INPUT_VERSION."
4949
PR_URL=$(gh pr create --base release --head refs/heads/bump-version-$INPUT_VERSION --title "Release $INPUT_VERSION" --body "$PR_BODY")
50-
gh pr merge $PR_URL --auto --merge
5150
env:
5251
INPUT_VERSION: ${{ github.event.inputs.version }}
5352
GH_TOKEN: ${{ secrets.BASETENBOT_GITHUB_TOKEN }}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.6.3"
3+
version = "0.6.4"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"

truss/contexts/image_builder/cache_warmer.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ def download_file(
2323
storage_client = storage.Client.from_service_account_json(key_file)
2424
bucket = storage_client.bucket(repo_name)
2525
blob = bucket.blob(file_name)
26+
dst_file = Path(f"{cache_dir}/{file_name}")
27+
if not dst_file.parent.exists():
28+
dst_file.parent.mkdir(parents=True)
2629
# Download the blob to a file
27-
blob.download_to_filename(f"{cache_dir}/{file_name}")
30+
blob.download_to_filename(dst_file)
2831
except Exception as e:
2932
raise RuntimeError(f"Failure downloading file from GCS: {e}")
3033
else:

0 commit comments

Comments
 (0)