Unverified Commit 8bbe8576 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.kserve: 0.15.2 -> 0.16.0 (#458048)

parents 35e3754b b3f102e5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -28,10 +28,13 @@ buildPythonPackage rec {
    setuptools
  ];

  dependencies = [
    deprecation
  ];

  pythonImportsCheck = [ "cloudevents" ];

  nativeCheckInputs = [
    deprecation
    flask
    pydantic
    pytestCheckHook
+67 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  setuptools,

  # dependencies
  azure-identity,
  azure-storage-blob,
  azure-storage-file-share,
  boto3,
  google-cloud-storage,
  huggingface-hub,
  requests,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "kserve-storage";
  version = "0.16.0";
  pyproject = true;

  src = fetchPypi {
    pname = "kserve_storage";
    inherit version;
    hash = "sha256-xgLnWegsPF18RLxwxt0dfnrZwsX7AK3b8AdT594Bac4=";
  };

  build-system = [
    setuptools
  ];

  pythonRelaxDeps = [
    "google-cloud-storage"
  ];
  dependencies = [
    azure-identity
    azure-storage-blob
    azure-storage-file-share
    boto3
    google-cloud-storage
    huggingface-hub
    requests
  ];

  pythonImportsCheck = [ "kserve_storage" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # RuntimeError: Failed to fetch model. No model found in file:///tmp.
    "test_local_path_with_out_dir_exist"
  ];

  meta = {
    description = "KServe Storage Handler. This module is responsible to download the models from the provided source";
    homepage = "https://pypi.org/project/kserve-storage";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}
+31 −31
Original line number Diff line number Diff line
@@ -5,35 +5,21 @@
  fetchFromGitHub,

  # build-system
  deprecation,
  poetry-core,
  setuptools,

  # dependencies
  cloudevents,
  fastapi,
  grpc-interceptor,
  grpcio,
  grpcio-tools,
  httpx,
  kubernetes,
  numpy,
  orjson,
  pandas,
  uvicorn,

  # optional-dependencies
  azure-identity,
  azure-storage-blob,
  azure-storage-file-share,
  boto3,
  google-cloud-storage,
  huggingface-hub,
  asgi-logger,
  ray,
  vllm,

  prometheus-client,
  protobuf,
  requests,
  psutil,
  pydantic,
  python-dateutil,
@@ -41,11 +27,24 @@
  six,
  tabulate,
  timing-asgi,
  uvicorn,

  # optional-dependencies
  # storage
  kserve-storage,
  # logging
  asgi-logger,
  # ray
  ray,
  # llm
  vllm,

  # tests
  avro,
  grpcio-testing,
  jinja2,
  pytest-asyncio,
  pytest-cov-stub,
  pytest-httpx,
  pytest-xdist,
  pytestCheckHook,
@@ -54,14 +53,14 @@

buildPythonPackage rec {
  pname = "kserve";
  version = "0.15.2";
  version = "0.16.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kserve";
    repo = "kserve";
    tag = "v${version}";
    hash = "sha256-NklR2Aoa5UdWkqNOfX+xl3R158JDSQtStXv9DkklOwM=";
    hash = "sha256-f6ILZMLxfckEpy7wSgCqUx89JWSnn0DbQiqRSHcQHms=";
  };

  sourceRoot = "${src.name}/python/kserve";
@@ -77,8 +76,7 @@ buildPythonPackage rec {
  ];

  build-system = [
    deprecation
    poetry-core
    setuptools
  ];

  dependencies = [
@@ -86,6 +84,7 @@ buildPythonPackage rec {
    fastapi
    grpc-interceptor
    grpcio
    grpcio-tools
    httpx
    kubernetes
    numpy
@@ -101,21 +100,20 @@ buildPythonPackage rec {
    tabulate
    timing-asgi
    uvicorn
  ];
  ]
  ++ uvicorn.optional-dependencies.standard;

  optional-dependencies = {
    storage = [
      azure-identity
      azure-storage-blob
      azure-storage-file-share
      boto3
      huggingface-hub
      google-cloud-storage
      requests
      kserve-storage
    ];
    logging = [
      asgi-logger
    ];
    ray = [
      ray
    ]
    ++ huggingface-hub.optional-dependencies.hf_transfer;
    logging = [ asgi-logger ];
    ray = [ ray ];
    ++ ray.optional-dependencies.serve;
    llm = [
      vllm
    ];
@@ -124,7 +122,9 @@ buildPythonPackage rec {
  nativeCheckInputs = [
    avro
    grpcio-testing
    jinja2
    pytest-asyncio
    pytest-cov-stub
    pytest-httpx
    pytest-xdist
    pytestCheckHook
+2 −0
Original line number Diff line number Diff line
@@ -7964,6 +7964,8 @@ self: super: with self; {
  kserve = callPackage ../development/python-modules/kserve { };
  kserve-storage = callPackage ../development/python-modules/kserve-storage { };
  kubernetes = callPackage ../development/python-modules/kubernetes { };
  kubernetes-asyncio = callPackage ../development/python-modules/kubernetes-asyncio { };