Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
use_gpu: ["y", "n"]
steps:
- uses: docker/setup-buildx-action@v3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "truss"
version = "0.11.27rc002"
version = "0.11.27rc003"
description = "A seamless bridge from model development to model delivery"
authors = [
{ name = "Pankaj Gupta", email = "no-reply@baseten.co" },
Expand Down
2 changes: 1 addition & 1 deletion truss/base/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
TRUSS_CODE_DIR: pathlib.Path = _TRUSS_ROOT.parent / "truss"
TRAINING_TEMPLATE_DIR = TEMPLATES_DIR / "train"
# Must be sorted ascendingly.
SUPPORTED_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
SUPPORTED_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

TRTLLM_PREDICT_CONCURRENCY = 512
BEI_TRTLLM_CLIENT_BATCH_SIZE = 128
Expand Down
2 changes: 1 addition & 1 deletion truss/contexts/image_builder/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This needs to be updated whenever we want to update
# base images on a merge. Updating this version will cause
# base images to be pushed with this tag.
TRUSS_BASE_IMAGE_VERSION_TAG = "v0.9.117"
TRUSS_BASE_IMAGE_VERSION_TAG = "v0.12.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've proactively published the new base images using the next tag as 0.12.0. Another slight chicken/egg problem



def file_is_empty(path: Path, ignore_hash_style_comments: bool = True) -> bool:
Expand Down
2 changes: 1 addition & 1 deletion truss/templates/control/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ loguru>=0.7.2
python-json-logger>=2.0.2
tenacity>=8.1.0
# To avoid divergence, this should follow the latest release.
truss==0.11.1
truss==0.11.27rc3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a chicken and egg - we use this truss version to perform config validation server side, but this needs to change to include py314 as an eligible python_version

However, a release with this can't exist until this PR is merged, so I've manually created an rc to prove tests pass. Once we create a release, we can fast follow this to 0.12.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nnarayen Did you mean rc003 here at all, or is that intentional?

Copy link
Contributor Author

@nnarayen nnarayen Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed offline - pypi truncates but seems to support installing via either rc003 or just rc3!

uvicorn>=0.24.0
uvloop>=0.19.0
websockets>=10.0
2 changes: 1 addition & 1 deletion truss/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ def test_validate_extra_fields(tmp_path):
("py311", "py311"),
("py312", "py312"),
("py313", "py313"),
("py314", "py313"),
("py314", "py314"),
],
)
def test_map_to_supported_python_version(python_version, expected_python_version):
Expand Down
4 changes: 2 additions & 2 deletions truss/tests/test_data/server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ RUN /usr/local/bin/python3 -c "import sys; \
sys.exit(0) \
if sys.version_info.major == 3 \
and sys.version_info.minor >= 9 \
and sys.version_info.minor <= 13 \
and sys.version_info.minor <= 14 \
else sys.exit(1)" \
|| { echo "ERROR: Supplied base image does not have 3.9 <= python <= 3.13"; exit 1; }
|| { echo "ERROR: Supplied base image does not have 3.9 <= python <= 3.14"; exit 1; }
RUN if ! command -v uv >/dev/null 2>&1; then \
command -v curl >/dev/null 2>&1 || (apt update && apt install -y curl) && \
curl -LsSf --retry 5 --retry-delay 5 https://astral.sh/uv/0.8.22/install.sh | sh && \
Expand Down
3 changes: 1 addition & 2 deletions truss/tests/test_model_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def _temp_truss(model_src: str, config_src: str = "") -> Iterator[TrussHandle]:
("py311", "3.11"),
("py312", "3.12"),
("py313", "3.13"),
("py314", "3.14"),
],
)
def test_predict_python_versions(config_python_version, inspected_python_version):
Expand All @@ -119,8 +120,6 @@ def predict(self, data):
version = sys.version_info
return f"{version.major}.{version.minor}"
"""
# config = """base_image:
# image: baseten/truss-server-base:3.13-marius"""
config = f"python_version: {config_python_version}"
with ensure_kill_all(), _temp_truss(model, config) as tr:
container, urls = tr.docker_run_for_test()
Expand Down
1 change: 1 addition & 0 deletions truss/tests/test_truss_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def _generate_base_image_variations(
("python:3.10-bookworm", "/usr/local/bin/python3", False),
("python:3.11-bookworm", "/usr/local/bin/python3", False),
("python:3.13-trixie", "/usr/local/bin/python3", False),
("python:3.14-trixie", "/usr/local/bin/python3", False),
("python:alpine", "/usr/local/bin/python3", True),
("python:2.7-slim", "/usr/local/bin/python", True),
("python:3.7-slim", "/usr/local/bin/python3", True),
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading