basetenlabs / truss

The simplest way to serve AI/ML models in production
https://truss.baseten.co
MIT License
857 stars 61 forks source link

enable py312 client #985

Closed rcano-baseten closed 3 weeks ago

rcano-baseten commented 1 month ago

:rocket: What

https://linear.app/baseten/issue/BT-11088/truss-support-python-312

:computer: How

Updated the allowed versions in pyproject.toml and removed deprecated packages

:microscope: Testing

python3.12 -m venv env312
source ~/baseten/env312/bin/activate
cd truss
pip install .
python
>>> import truss
>>>
rcano-baseten commented 3 weeks ago

TODO: look through https://github.com/basetenlabs/truss/pull/955 and basically just do a full text search throughout the code base where the current upper limit 3.11 / 311 appears and see where you need to update anything

Edit: Doing this as a follow up https://linear.app/baseten/issue/BT-11307/truss-support-python-312-in-context-builder . Going to merge this as a stop gap to enable py312 client to use truss

rcano-baseten commented 3 weeks ago

awaiting 👍 from @squidarth