Unverified Commit cc76f5ab authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #336443 from natsukium/lancedb/update

python312Packages.lancedb: 0.11.0 -> 0.12.0; python312Packages.pylance: 0.15.0 -> 0.16.0
parents e4cf02f2 ddf9cf97
Loading
Loading
Loading
Loading
+593 −683

File changed.

Preview size limit exceeded, changes collapsed.

+13 −2
Original line number Diff line number Diff line
@@ -23,18 +23,19 @@
  polars,
  pytest-asyncio,
  pytestCheckHook,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "lancedb";
  version = "0.11.0";
  version = "0.12.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lancedb";
    repo = "lancedb";
    rev = "refs/tags/python-v${version}";
    hash = "sha256-JT6HNuMjFO/q+6LlYRT+vKa0aV9DOC9b21ulHXq1gjY=";
    hash = "sha256-LDxq49aFxUmRAw8tQvFxnExtU0IKKqMbxIBuY95cBHU=";
  };

  # ratelimiter only support up to python310 and it has been removed from nixpkgs
@@ -110,6 +111,16 @@ buildPythonPackage rec {
    "test_s3.py"
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "python-v(.*)"
      "--generate-lockfile"
      "--lockfile-metadata-path"
      "python"
    ];
  };

  meta = {
    description = "Developer-friendly, serverless vector database for AI applications";
    homepage = "https://github.com/lancedb/lancedb";
+393 −613

File changed.

Preview size limit exceeded, changes collapsed.

+19 −5
Original line number Diff line number Diff line
@@ -15,22 +15,24 @@
  pillow,
  polars,
  pytestCheckHook,
  torch,
  tqdm,
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "pylance";
  version = "0.15.0";
  version = "0.16.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lancedb";
    repo = "lance";
    rev = "refs/tags/v${version}";
    hash = "sha256-zJ6zyS9DNhlJ1wbXHZRtNMDytF/Beh9DDHKB8S9HFwk=";
    hash = "sha256-bB+6q3kkSxY8i5xf4wumREHizUGWWOZ8Tr5Gt10CVAs=";
  };

  sourceRoot = "${src.name}/python";
  buildAndTestSubdir = "python";

  cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };

@@ -65,6 +67,10 @@ buildPythonPackage rec {
    pyarrow
  ];

  optional-dependencies = {
    torch = [ torch ];
  };

  pythonImportsCheck = [ "lance" ];

  nativeCheckInputs = [
@@ -74,10 +80,10 @@ buildPythonPackage rec {
    polars
    pytestCheckHook
    tqdm
  ];
  ] ++ optional-dependencies.torch;

  preCheck = ''
    cd python/tests
    cd python/python/tests
  '';

  disabledTests = [
@@ -86,6 +92,14 @@ buildPythonPackage rec {
    "test_simple_predicates"
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--generate-lockfile"
      "--lockfile-metadata-path"
      "python"
    ];
  };

  meta = {
    description = "Python wrapper for Lance columnar format";
    homepage = "https://github.com/lancedb/lance";