Skip to content

Commit 7ed682b

Browse files
committed
New base images, support 3.14
1 parent f0744fd commit 7ed682b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.github/workflows/_build_truss_server_base_images_if_needed_shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ubuntu-22.04
3232
strategy:
3333
matrix:
34-
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
34+
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
3535
use_gpu: ["y", "n"]
3636
steps:
3737
- uses: docker/setup-buildx-action@v3

truss/base/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
TRUSS_CODE_DIR: pathlib.Path = _TRUSS_ROOT.parent / "truss"
2121
TRAINING_TEMPLATE_DIR = TEMPLATES_DIR / "train"
2222
# Must be sorted ascendingly.
23-
SUPPORTED_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
23+
SUPPORTED_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2424

2525
TRTLLM_PREDICT_CONCURRENCY = 512
2626
BEI_TRTLLM_CLIENT_BATCH_SIZE = 128

truss/contexts/image_builder/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# This needs to be updated whenever we want to update
77
# base images on a merge. Updating this version will cause
88
# base images to be pushed with this tag.
9-
TRUSS_BASE_IMAGE_VERSION_TAG = "v0.9.117"
9+
TRUSS_BASE_IMAGE_VERSION_TAG = "v0.12.0"
1010

1111

1212
def file_is_empty(path: Path, ignore_hash_style_comments: bool = True) -> bool:

truss/tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def test_validate_extra_fields(tmp_path):
908908
("py311", "py311"),
909909
("py312", "py312"),
910910
("py313", "py313"),
911-
("py314", "py313"),
911+
("py314", "py314"),
912912
],
913913
)
914914
def test_map_to_supported_python_version(python_version, expected_python_version):

truss/tests/test_model_inference.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def _temp_truss(model_src: str, config_src: str = "") -> Iterator[TrussHandle]:
109109
("py311", "3.11"),
110110
("py312", "3.12"),
111111
("py313", "3.13"),
112+
("py314", "3.14"),
112113
],
113114
)
114115
def test_predict_python_versions(config_python_version, inspected_python_version):
@@ -119,8 +120,6 @@ def predict(self, data):
119120
version = sys.version_info
120121
return f"{version.major}.{version.minor}"
121122
"""
122-
# config = """base_image:
123-
# image: baseten/truss-server-base:3.13-marius"""
124123
config = f"python_version: {config_python_version}"
125124
with ensure_kill_all(), _temp_truss(model, config) as tr:
126125
container, urls = tr.docker_run_for_test()

truss/tests/test_truss_handle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def _generate_base_image_variations(
129129
("python:3.10-bookworm", "/usr/local/bin/python3", False),
130130
("python:3.11-bookworm", "/usr/local/bin/python3", False),
131131
("python:3.13-trixie", "/usr/local/bin/python3", False),
132+
("python:3.14-trixie", "/usr/local/bin/python3", False),
132133
("python:alpine", "/usr/local/bin/python3", True),
133134
("python:2.7-slim", "/usr/local/bin/python", True),
134135
("python:3.7-slim", "/usr/local/bin/python3", True),

0 commit comments

Comments
 (0)