lance-context 0.3.1__tar.gz → 0.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lance_context-0.3.1 → lance_context-0.3.3}/PKG-INFO +11 -5
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/Cargo.toml +1 -1
- {lance_context-0.3.1 → lance_context-0.3.3}/pyproject.toml +19 -6
- {lance_context-0.3.1 → lance_context-0.3.3}/python/Cargo.toml +4 -1
- lance_context-0.3.3/python/tests/test_packaging_metadata.py +31 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/uv.lock +22 -10
- {lance_context-0.3.1 → lance_context-0.3.3}/Cargo.toml +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/LICENSE +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/README.md +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-api/Cargo.toml +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-api/src/lib.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/README.md +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/src/api_impl.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/src/context.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/src/lib.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/src/record.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/src/serde.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/crates/lance-context-core/src/store.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/Cargo.lock +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/LICENSE +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/README.md +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/lance_context/__init__.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/lance_context/api.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/python/tests/test_context.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/src/lib.rs +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_add_many.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_async.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_compaction.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_delete.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_external_id.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_gcs_persistence.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_id_index.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_persistence.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_search.py +0 -0
- {lance_context-0.3.1 → lance_context-0.3.3}/python/tests/test_storage_options.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lance-context
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Intended Audience :: Science/Research
|
|
6
6
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -14,19 +14,25 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Rust
|
|
16
16
|
Classifier: Topic :: Scientific/Engineering
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist: lancedb==0.27.1
|
|
19
|
-
Requires-Dist: lance-namespace==0.7.7
|
|
20
|
-
Requires-Dist: lance-graph==0.5.4
|
|
17
|
+
Requires-Dist: pyarrow>=14
|
|
21
18
|
Requires-Dist: ruff ; extra == 'dev'
|
|
22
19
|
Requires-Dist: pyright ; extra == 'dev'
|
|
20
|
+
Requires-Dist: lance-graph==0.5.4 ; extra == 'graph'
|
|
21
|
+
Requires-Dist: pylance>=7.0.0,<8 ; extra == 'lance-python'
|
|
22
|
+
Requires-Dist: lance-namespace>=0.7.7,<0.8 ; extra == 'lance-python'
|
|
23
|
+
Requires-Dist: lancedb==0.27.1 ; extra == 'lance-python'
|
|
23
24
|
Requires-Dist: pytest ; extra == 'tests'
|
|
24
25
|
Requires-Dist: pytest-asyncio ; extra == 'tests'
|
|
25
26
|
Requires-Dist: ruff ; extra == 'tests'
|
|
26
27
|
Requires-Dist: moto[s3,server] ; extra == 'tests'
|
|
27
28
|
Requires-Dist: boto3 ; extra == 'tests'
|
|
28
29
|
Requires-Dist: botocore ; extra == 'tests'
|
|
30
|
+
Requires-Dist: pylance>=7.0.0,<8 ; extra == 'tests'
|
|
31
|
+
Requires-Dist: lance-namespace>=0.7.7,<0.8 ; extra == 'tests'
|
|
32
|
+
Requires-Dist: lancedb==0.27.1 ; extra == 'tests'
|
|
29
33
|
Provides-Extra: dev
|
|
34
|
+
Provides-Extra: graph
|
|
35
|
+
Provides-Extra: lance-python
|
|
30
36
|
Provides-Extra: tests
|
|
31
37
|
License-File: LICENSE
|
|
32
38
|
Summary: Multimodal, versioned context storage for agentic workflows
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "lance-context"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.3"
|
|
4
4
|
dependencies = [
|
|
5
|
-
"
|
|
6
|
-
"lancedb==0.27.1",
|
|
7
|
-
"lance-namespace==0.7.7",
|
|
8
|
-
"lance-graph==0.5.4",
|
|
5
|
+
"pyarrow>=14",
|
|
9
6
|
]
|
|
10
7
|
description = "Multimodal, versioned context storage for agentic workflows"
|
|
11
8
|
authors = [{ name = "Lance Devs", email = "dev@lancedb.com" }]
|
|
@@ -42,9 +39,25 @@ requires = ["maturin>=1.4"]
|
|
|
42
39
|
build-backend = "maturin"
|
|
43
40
|
|
|
44
41
|
[project.optional-dependencies]
|
|
42
|
+
graph = ["lance-graph==0.5.4"]
|
|
43
|
+
lance-python = [
|
|
44
|
+
"pylance>=7.0.0,<8",
|
|
45
|
+
"lance-namespace>=0.7.7,<0.8",
|
|
46
|
+
"lancedb==0.27.1",
|
|
47
|
+
]
|
|
45
48
|
# `moto[server]` pulls in flask + flask-cors so moto.server can be launched
|
|
46
49
|
# as a subprocess for the S3 integration tests.
|
|
47
|
-
tests = [
|
|
50
|
+
tests = [
|
|
51
|
+
"pytest",
|
|
52
|
+
"pytest-asyncio",
|
|
53
|
+
"ruff",
|
|
54
|
+
"moto[s3,server]",
|
|
55
|
+
"boto3",
|
|
56
|
+
"botocore",
|
|
57
|
+
"pylance>=7.0.0,<8",
|
|
58
|
+
"lance-namespace>=0.7.7,<0.8",
|
|
59
|
+
"lancedb==0.27.1",
|
|
60
|
+
]
|
|
48
61
|
dev = ["ruff", "pyright"]
|
|
49
62
|
|
|
50
63
|
[tool.ruff]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "lance-context-python"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.3"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["Lance Devs <dev@lancedb.com>"]
|
|
6
6
|
publish = false
|
|
@@ -16,3 +16,6 @@ lance-context-core = { path = "../crates/lance-context-core" }
|
|
|
16
16
|
pyo3 = { version = "0.25", features = ["extension-module", "abi3-py39", "py-clone"] }
|
|
17
17
|
serde_json = "1"
|
|
18
18
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|
|
19
|
+
|
|
20
|
+
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
|
|
21
|
+
openssl = { version = "0.10", features = ["vendored"] }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import tomllib
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
PYTHON_ROOT = Path(__file__).resolve().parents[1]
|
|
7
|
+
LANCE_PYTHON_DEPS = {"pylance", "lancedb", "lance-namespace"}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _dependency_names(dependencies: list[str]) -> set[str]:
|
|
11
|
+
return {
|
|
12
|
+
dependency.split(";", 1)[0]
|
|
13
|
+
.split("[", 1)[0]
|
|
14
|
+
.split("=", 1)[0]
|
|
15
|
+
.split("<", 1)[0]
|
|
16
|
+
.split(">", 1)[0]
|
|
17
|
+
.strip()
|
|
18
|
+
.lower()
|
|
19
|
+
for dependency in dependencies
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def test_lance_python_packages_are_optional_runtime_dependencies() -> None:
|
|
24
|
+
pyproject = tomllib.loads((PYTHON_ROOT / "pyproject.toml").read_text())
|
|
25
|
+
project = pyproject["project"]
|
|
26
|
+
runtime_deps = _dependency_names(project["dependencies"])
|
|
27
|
+
optional_deps = project["optional-dependencies"]
|
|
28
|
+
|
|
29
|
+
assert LANCE_PYTHON_DEPS.isdisjoint(runtime_deps)
|
|
30
|
+
assert LANCE_PYTHON_DEPS <= _dependency_names(optional_deps["lance-python"])
|
|
31
|
+
assert LANCE_PYTHON_DEPS <= _dependency_names(optional_deps["tests"])
|
|
@@ -1058,13 +1058,10 @@ wheels = [
|
|
|
1058
1058
|
|
|
1059
1059
|
[[package]]
|
|
1060
1060
|
name = "lance-context"
|
|
1061
|
-
version = "0.2
|
|
1061
|
+
version = "0.3.2"
|
|
1062
1062
|
source = { editable = "." }
|
|
1063
1063
|
dependencies = [
|
|
1064
|
-
{ name = "
|
|
1065
|
-
{ name = "lance-namespace" },
|
|
1066
|
-
{ name = "lancedb" },
|
|
1067
|
-
{ name = "pylance" },
|
|
1064
|
+
{ name = "pyarrow" },
|
|
1068
1065
|
]
|
|
1069
1066
|
|
|
1070
1067
|
[package.optional-dependencies]
|
|
@@ -1072,10 +1069,21 @@ dev = [
|
|
|
1072
1069
|
{ name = "pyright" },
|
|
1073
1070
|
{ name = "ruff" },
|
|
1074
1071
|
]
|
|
1072
|
+
graph = [
|
|
1073
|
+
{ name = "lance-graph" },
|
|
1074
|
+
]
|
|
1075
|
+
lance-python = [
|
|
1076
|
+
{ name = "lance-namespace" },
|
|
1077
|
+
{ name = "lancedb" },
|
|
1078
|
+
{ name = "pylance" },
|
|
1079
|
+
]
|
|
1075
1080
|
tests = [
|
|
1076
1081
|
{ name = "boto3" },
|
|
1077
1082
|
{ name = "botocore" },
|
|
1083
|
+
{ name = "lance-namespace" },
|
|
1084
|
+
{ name = "lancedb" },
|
|
1078
1085
|
{ name = "moto", extra = ["s3", "server"] },
|
|
1086
|
+
{ name = "pylance" },
|
|
1079
1087
|
{ name = "pytest" },
|
|
1080
1088
|
{ name = "pytest-asyncio" },
|
|
1081
1089
|
{ name = "ruff" },
|
|
@@ -1085,18 +1093,22 @@ tests = [
|
|
|
1085
1093
|
requires-dist = [
|
|
1086
1094
|
{ name = "boto3", marker = "extra == 'tests'" },
|
|
1087
1095
|
{ name = "botocore", marker = "extra == 'tests'" },
|
|
1088
|
-
{ name = "lance-graph", specifier = "==0.5.4" },
|
|
1089
|
-
{ name = "lance-namespace", specifier = "
|
|
1090
|
-
{ name = "
|
|
1096
|
+
{ name = "lance-graph", marker = "extra == 'graph'", specifier = "==0.5.4" },
|
|
1097
|
+
{ name = "lance-namespace", marker = "extra == 'lance-python'", specifier = ">=0.7.7,<0.8" },
|
|
1098
|
+
{ name = "lance-namespace", marker = "extra == 'tests'", specifier = ">=0.7.7,<0.8" },
|
|
1099
|
+
{ name = "lancedb", marker = "extra == 'lance-python'", specifier = "==0.27.1" },
|
|
1100
|
+
{ name = "lancedb", marker = "extra == 'tests'", specifier = "==0.27.1" },
|
|
1091
1101
|
{ name = "moto", extras = ["s3", "server"], marker = "extra == 'tests'" },
|
|
1092
|
-
{ name = "
|
|
1102
|
+
{ name = "pyarrow", specifier = ">=14" },
|
|
1103
|
+
{ name = "pylance", marker = "extra == 'lance-python'", specifier = ">=7.0.0,<8" },
|
|
1104
|
+
{ name = "pylance", marker = "extra == 'tests'", specifier = ">=7.0.0,<8" },
|
|
1093
1105
|
{ name = "pyright", marker = "extra == 'dev'" },
|
|
1094
1106
|
{ name = "pytest", marker = "extra == 'tests'" },
|
|
1095
1107
|
{ name = "pytest-asyncio", marker = "extra == 'tests'" },
|
|
1096
1108
|
{ name = "ruff", marker = "extra == 'dev'" },
|
|
1097
1109
|
{ name = "ruff", marker = "extra == 'tests'" },
|
|
1098
1110
|
]
|
|
1099
|
-
provides-extras = ["tests", "dev"]
|
|
1111
|
+
provides-extras = ["graph", "lance-python", "tests", "dev"]
|
|
1100
1112
|
|
|
1101
1113
|
[[package]]
|
|
1102
1114
|
name = "lance-graph"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|