Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support python 3.12 #3645

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout source
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion hack/python-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ do
continue
fi
pushd "${folder}"
poetry lock --no-update
poetry update --lock
popd

done
1,814 changes: 1,370 additions & 444 deletions python/aiffairness/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions python/aiffairness/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.8,<3.12"
python = ">=3.8,<3.13"
kserve = {path = "../kserve", develop = true}
aif360 = "^0.2.3"
nest-asyncio = "^1.4.0"
aif360 = "^0.6.1"
nest-asyncio = "^1.5.8"
requests = {version = "^2.24.0", extras = ["security"]}

[tool.poetry.group.test]
Expand Down
1,495 changes: 877 additions & 618 deletions python/artexplainer/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions python/artexplainer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
python = ">=3.9,<3.13"
kserve = {path = "../kserve", develop = true}
adversarial-robustness-toolbox = {version = "^1.10.3", extras = ["keras"]}
nest-asyncio = "^1.4.0"
nest-asyncio = "^1.5.8"
pillow = "^10.2.0"

[tool.poetry.group.test]
Expand Down
1,270 changes: 800 additions & 470 deletions python/custom_model/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions python/custom_model/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
python = ">=3.9,<3.13"
kserve = {path = "../kserve", develop = true}
torchvision = {version = "0.15.1+cpu", source = "pytorch"}
torch = {version = "2.0.0", source = "pytorch"}
torchvision = {version = "0.18.0+cpu", source = "pytorch"}
torch = {version = "2.3.0+cpu", source = "pytorch"}
pillow = "^10.2.0"


Expand Down
1,095 changes: 712 additions & 383 deletions python/custom_tokenizer/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/custom_tokenizer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
python = ">=3.9,<3.13"
kserve = {path = "../kserve", develop = true}

[tool.poetry.group.test]
Expand Down
1,276 changes: 803 additions & 473 deletions python/custom_transformer/poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions python/custom_transformer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
python = ">=3.9,<3.13"
kserve = {path = "../kserve", develop = true}
torchvision = {version = "0.15.1+cpu", source = "pytorch"}
torch = {version = "2.0.0+cpu", source = "pytorch"}
torchvision = {version = "0.18.0+cpu", source = "pytorch"}
torch = {version = "2.3.0+cpu", source = "pytorch"}
pillow = "^10.2.0"


Expand Down
2 changes: 1 addition & 1 deletion python/huggingface_server.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARG POETRY_HOME=/opt/poetry
ARG POETRY_VERSION=1.7.1

# Install vllm
ARG VLLM_VERSION=0.4.0.post1
ARG VLLM_VERSION=0.4.1

RUN apt-get update -y && apt-get install gcc python3.10-venv python3-dev -y
RUN python3 -m venv ${POETRY_HOME} && ${POETRY_HOME}/bin/pip3 install poetry==${POETRY_VERSION}
Expand Down
1,088 changes: 600 additions & 488 deletions python/huggingfaceserver/poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions python/huggingfaceserver/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
python = ">=3.9,<3.13"
kserve = { path = "../kserve", extras = ["storage"], develop = true }
transformers = "~4.39.3"
transformers = "~4.40.0"
accelerate = "~0.27.2"
torch = "~2.1.2"
vllm = { version = "^0.4.0.post1", optional = true }
torch = "~2.2.1"
vllm = { version = "^0.4.1", optional = true }

[tool.poetry.extras]
vllm = [
Expand Down
650 changes: 505 additions & 145 deletions python/kserve/poetry.lock

Large diffs are not rendered by default.

25 changes: 11 additions & 14 deletions python/kserve/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
Expand All @@ -33,29 +34,26 @@ packages = [
exclude = ["kserve/storage/test"]

[tool.poetry.dependencies]
python = ">=3.8,<3.12"
uvicorn = { version = "^0.21.1", extras = ["standard"] }
python = ">=3.8,<3.13"
uvicorn = { version = "^0.23.0", extras = ["standard"] }
fastapi = "^0.109.1"
cloudevents = "^1.6.2"
six = "^1.16.0"
kubernetes = ">=23.3.0"
python-dateutil = "^2.8.0"
numpy = "^1.23.5"
psutil = "^5.9.0"
ray = { version = "~2.10.0", extras = ["serve"] }
async-timeout = { version = "^4.0.3", python = "==3.11.*" }
grpcio = "^1.49.1"
python-dateutil = "^2.9.0"
numpy = [ { version = "^1.26.0", python = ">=3.12"}, {version = "^1.23.5", python = ">=3.8,<3.12"}]
ray = [ { version = "^2.12.0", extras = ["serve"], python = ">=3.12" }, { version = "~2.10.0", extras = ["serve"], python = ">=3.8,<3.12" } ]
grpcio = "^1.59.0"
protobuf = "^3.19.0"
prometheus-client = "^0.20.0"
orjson = "^3.9.15"
httpx = "^0.26.0"
timing-asgi = "^0.3.0"
tabulate = "^0.9.0"
pandas = ">=1.3.5"
pydantic = ">1.0,<3"
pandas = [ { version = "^2.2.0", python = ">=3.12"}, {version = ">=1.3.5", python = ">=3.8,<3.12"}]
pydantic = [ { version = "^2.5.0", python = ">=3.12"}, {version = ">1.0,<3", python = ">=3.8,<3.12"}]

# Storage dependencies. They can be opted into by apps.
urllib3 = { version = "^1.26.8", optional = true }
requests = { version = "^2.20.0", optional = true }
google-cloud-storage = { version = "^2.3.0", optional = true }
azure-storage-blob = { version = "^12.10.0", optional = true }
Expand All @@ -64,11 +62,10 @@ azure-identity = { version = "^1.8.0", optional = true }
boto3 = { version = "^1.21.0", optional = true }

# Logging dependencies. They can be opted into by apps.
asgi-logger = { version = "^0.1.0", optional = true, python = ">3.8.0,<3.11" }
asgi-logger = { version = "^0.1.0", optional = true, python = ">3.8.0,<3.13" }

[tool.poetry.extras]
storage = [
"urllib3",
"requests",
"google-cloud-storage",
"azure-storage-blob",
Expand All @@ -89,7 +86,7 @@ pytest-cov = "^4.0.0"
pytest-xdist = "^3.0.2"
pytest-asyncio = "^0.20.2"
mypy = "^0.991"
portforward = "^0.4.3"
portforward = "^0.6.1"
avro = "^1.11.0"
tomlkit = "^0.11.6"
jinja2 = "^3.1.2"
Expand Down
Loading
Loading