Skip to content

Commit 3d36d22

Browse files
authored
Merge pull request #1415 from basetenlabs/bump-version-0.9.64
Release 0.9.64
2 parents c71d766 + d62b5ad commit 3d36d22

38 files changed

+1218
-1474
lines changed

.github/workflows/release-truss-utils.yml

-57
This file was deleted.

.pre-commit-config.yaml

+1-10
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,5 @@ repos:
3636
entry: poetry run mypy
3737
language: python
3838
types: [python]
39-
exclude: ^examples/|^truss/test.+/|model.py$|^truss-chains/.*|^smoketests/.*
40-
pass_filenames: true
41-
- id: mypy
42-
name: mypy-local (3.9)
43-
entry: poetry run mypy
44-
language: python
45-
types: [python]
46-
files: ^truss-chains/.*|^smoketests/.*
47-
args:
48-
- --python-version=3.9
39+
exclude: ^examples/|^truss/test.+/|model.py$
4940
pass_filenames: true

docs/examples/09-private-huggingface.mdx

+1-5
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,8 @@ system_packages: []
8787
```
8888
# Deploying the model
8989

90-
An important note for deploying models with secrets is that
91-
you must use the `--trusted` flag to give the model access to
92-
secrets stored on the remote secrets manager.
93-
9490
```bash
95-
$ truss push --trusted
91+
$ truss push
9692
```
9793

9894
After the model finishes deploying, you can invoke it with:

docs/examples/performance/cached-weights.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ You'll need a [Baseten API key](https://app.baseten.co/settings/account/api_keys
139139
We have successfully packaged Llama 2 as a Truss. Let's deploy!
140140

141141
```sh
142-
truss push --trusted
142+
truss push
143143
```
144144

145145
### Step 5: Invoke the model

docs/examples/private-model.mdx

+1-3
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,8 @@ You'll need a [Baseten API key](https://app.baseten.co/settings/account/api_keys
154154

155155
We have successfully packaged a gated model as a Truss. Let's deploy!
156156

157-
Use `--trusted` with `truss push` to give the model server access to secrets stored on the remote host.
158-
159157
```sh
160-
truss push --trusted
158+
truss push
161159
```
162160

163161
Wait for the model to finish deployment before invoking.

poetry.lock

+836-933
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "truss"
3-
version = "0.9.63"
3+
version = "0.9.64"
44
description = "A seamless bridge from model development to model delivery"
55
license = "MIT"
66
readme = "README.md"
@@ -71,7 +71,7 @@ truss-docker-build-setup = "truss.contexts.docker_build_setup:docker_build_setup
7171
[tool.poetry.dependencies]
7272
# "base" dependencies.
7373
# "When using chains, 3.9 will be required at runtime, but other truss functionality works with 3.8.
74-
python = ">=3.8,<3.13"
74+
python = ">=3.9,<3.13"
7575
huggingface_hub = ">=0.25.0"
7676
pydantic = ">=1.10.0" # We cannot upgrade to v2, due to customer constraints.
7777
PyYAML = ">=6.0"
@@ -178,7 +178,7 @@ requires = ["poetry-core>=1.2.1"]
178178

179179
[tool.mypy]
180180
ignore_missing_imports = true
181-
python_version = "3.8"
181+
python_version = "3.9"
182182
plugins = ["pydantic.mypy"]
183183

184184
[tool.pytest.ini_options]
@@ -189,7 +189,9 @@ markers = [
189189
addopts = "--ignore=smoketests"
190190

191191
[tool.ruff]
192-
src = ["truss", "truss-chains", "truss-utils"]
192+
src = ["truss", "truss-chains"]
193+
# Parenthesized context managers are not supported in 3.8 but appear in the `templates` dir
194+
# which still supports 3.8. Therefore use 3.8 for formatting.
193195
target-version = "py38"
194196
line-length = 88
195197
lint.extend-select = [

truss-chains/truss_chains/__init__.py

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
import sys
2-
3-
if (sys.version_info.major, sys.version_info.minor) <= (3, 8):
4-
raise RuntimeError(
5-
"Python version 3.8 or older is not supported for `Truss-Chains`. Please"
6-
"upgrade to Python 3.9 or newer. You can still use other Truss functionality."
7-
)
8-
del sys
91
import pydantic
102

113
pydantic_major_version = int(pydantic.VERSION.split(".")[0])

truss-chains/truss_chains/deployment/deployment_client.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,9 @@ def __init__(
557557

558558
def _patch(self) -> None:
559559
exception_raised = None
560-
with log_utils.LogInterceptor() as log_interceptor, self._console.status(
561-
" Live Patching Model.\n", spinner="arrow3"
560+
with (
561+
log_utils.LogInterceptor() as log_interceptor,
562+
self._console.status(" Live Patching Model.\n", spinner="arrow3"),
562563
):
563564
try:
564565
gen_truss_path = code_gen.gen_truss_model_from_source(self._source)
@@ -717,8 +718,9 @@ def _code_gen_and_patch_thread(
717718
def _patch(self, executor: concurrent.futures.Executor) -> None:
718719
exception_raised = None
719720
stack_trace = ""
720-
with log_utils.LogInterceptor() as log_interceptor, self._console.status(
721-
" Live Patching Chain.\n", spinner="arrow3"
721+
with (
722+
log_utils.LogInterceptor() as log_interceptor,
723+
self._console.status(" Live Patching Chain.\n", spinner="arrow3"),
722724
):
723725
# Handle import errors gracefully (e.g. if user saved file, but there
724726
# are syntax errors, undefined symbols etc.).

truss-utils/README.md

-21
This file was deleted.

truss-utils/poetry.lock

-75
This file was deleted.

truss-utils/pyproject.toml

-17
This file was deleted.

truss-utils/truss_utils/__init__.py

-1
This file was deleted.

truss-utils/truss_utils/image.py

-17
This file was deleted.

truss-utils/truss_utils/s3.py

-32
This file was deleted.

truss/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
__version__ = get_version(__name__, Path(__file__).parent.parent)
1111

1212

13-
def version():
14-
return __version__
13+
def version() -> str:
14+
return __version__ or ""
1515

1616

1717
from truss.api import login, push, whoami

0 commit comments

Comments
 (0)