lance-context 0.3.2__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.
Files changed (35) hide show
  1. {lance_context-0.3.2 → lance_context-0.3.3}/PKG-INFO +9 -4
  2. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/Cargo.toml +1 -1
  3. {lance_context-0.3.2 → lance_context-0.3.3}/pyproject.toml +18 -5
  4. {lance_context-0.3.2 → lance_context-0.3.3}/python/Cargo.toml +1 -1
  5. lance_context-0.3.3/python/tests/test_packaging_metadata.py +31 -0
  6. {lance_context-0.3.2 → lance_context-0.3.3}/python/uv.lock +18 -8
  7. {lance_context-0.3.2 → lance_context-0.3.3}/Cargo.toml +0 -0
  8. {lance_context-0.3.2 → lance_context-0.3.3}/LICENSE +0 -0
  9. {lance_context-0.3.2 → lance_context-0.3.3}/README.md +0 -0
  10. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-api/Cargo.toml +0 -0
  11. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-api/src/lib.rs +0 -0
  12. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/README.md +0 -0
  13. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/src/api_impl.rs +0 -0
  14. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/src/context.rs +0 -0
  15. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/src/lib.rs +0 -0
  16. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/src/record.rs +0 -0
  17. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/src/serde.rs +0 -0
  18. {lance_context-0.3.2 → lance_context-0.3.3}/crates/lance-context-core/src/store.rs +0 -0
  19. {lance_context-0.3.2 → lance_context-0.3.3}/python/Cargo.lock +0 -0
  20. {lance_context-0.3.2 → lance_context-0.3.3}/python/LICENSE +0 -0
  21. {lance_context-0.3.2 → lance_context-0.3.3}/python/README.md +0 -0
  22. {lance_context-0.3.2 → lance_context-0.3.3}/python/lance_context/__init__.py +0 -0
  23. {lance_context-0.3.2 → lance_context-0.3.3}/python/lance_context/api.py +0 -0
  24. {lance_context-0.3.2 → lance_context-0.3.3}/python/python/tests/test_context.py +0 -0
  25. {lance_context-0.3.2 → lance_context-0.3.3}/python/src/lib.rs +0 -0
  26. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_add_many.py +0 -0
  27. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_async.py +0 -0
  28. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_compaction.py +0 -0
  29. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_delete.py +0 -0
  30. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_external_id.py +0 -0
  31. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_gcs_persistence.py +0 -0
  32. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_id_index.py +0 -0
  33. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_persistence.py +0 -0
  34. {lance_context-0.3.2 → lance_context-0.3.3}/python/tests/test_search.py +0 -0
  35. {lance_context-0.3.2 → 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.2
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,20 +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: pylance==7.0.0
18
- Requires-Dist: lancedb==0.27.1
19
- Requires-Dist: lance-namespace==0.7.7
17
+ Requires-Dist: pyarrow>=14
20
18
  Requires-Dist: ruff ; extra == 'dev'
21
19
  Requires-Dist: pyright ; extra == 'dev'
22
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
30
34
  Provides-Extra: graph
35
+ Provides-Extra: lance-python
31
36
  Provides-Extra: tests
32
37
  License-File: LICENSE
33
38
  Summary: Multimodal, versioned context storage for agentic workflows
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "lance-context-core"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  edition = "2021"
5
5
  license = "Apache-2.0"
6
6
  authors = ["Lance Devs <dev@lancedb.com>"]
@@ -1,10 +1,8 @@
1
1
  [project]
2
2
  name = "lance-context"
3
- version = "0.3.2"
3
+ version = "0.3.3"
4
4
  dependencies = [
5
- "pylance==7.0.0",
6
- "lancedb==0.27.1",
7
- "lance-namespace==0.7.7",
5
+ "pyarrow>=14",
8
6
  ]
9
7
  description = "Multimodal, versioned context storage for agentic workflows"
10
8
  authors = [{ name = "Lance Devs", email = "dev@lancedb.com" }]
@@ -42,9 +40,24 @@ build-backend = "maturin"
42
40
 
43
41
  [project.optional-dependencies]
44
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 = ["pytest", "pytest-asyncio", "ruff", "moto[s3,server]", "boto3", "botocore"]
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.2"
3
+ version = "0.3.3"
4
4
  edition = "2021"
5
5
  authors = ["Lance Devs <dev@lancedb.com>"]
6
6
  publish = false
@@ -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,12 +1058,10 @@ wheels = [
1058
1058
 
1059
1059
  [[package]]
1060
1060
  name = "lance-context"
1061
- version = "0.3.1"
1061
+ version = "0.3.2"
1062
1062
  source = { editable = "." }
1063
1063
  dependencies = [
1064
- { name = "lance-namespace" },
1065
- { name = "lancedb" },
1066
- { name = "pylance" },
1064
+ { name = "pyarrow" },
1067
1065
  ]
1068
1066
 
1069
1067
  [package.optional-dependencies]
@@ -1074,10 +1072,18 @@ dev = [
1074
1072
  graph = [
1075
1073
  { name = "lance-graph" },
1076
1074
  ]
1075
+ lance-python = [
1076
+ { name = "lance-namespace" },
1077
+ { name = "lancedb" },
1078
+ { name = "pylance" },
1079
+ ]
1077
1080
  tests = [
1078
1081
  { name = "boto3" },
1079
1082
  { name = "botocore" },
1083
+ { name = "lance-namespace" },
1084
+ { name = "lancedb" },
1080
1085
  { name = "moto", extra = ["s3", "server"] },
1086
+ { name = "pylance" },
1081
1087
  { name = "pytest" },
1082
1088
  { name = "pytest-asyncio" },
1083
1089
  { name = "ruff" },
@@ -1088,17 +1094,21 @@ requires-dist = [
1088
1094
  { name = "boto3", marker = "extra == 'tests'" },
1089
1095
  { name = "botocore", marker = "extra == 'tests'" },
1090
1096
  { name = "lance-graph", marker = "extra == 'graph'", specifier = "==0.5.4" },
1091
- { name = "lance-namespace", specifier = "==0.7.7" },
1092
- { name = "lancedb", specifier = "==0.27.1" },
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" },
1093
1101
  { name = "moto", extras = ["s3", "server"], marker = "extra == 'tests'" },
1094
- { name = "pylance", specifier = "==7.0.0" },
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" },
1095
1105
  { name = "pyright", marker = "extra == 'dev'" },
1096
1106
  { name = "pytest", marker = "extra == 'tests'" },
1097
1107
  { name = "pytest-asyncio", marker = "extra == 'tests'" },
1098
1108
  { name = "ruff", marker = "extra == 'dev'" },
1099
1109
  { name = "ruff", marker = "extra == 'tests'" },
1100
1110
  ]
1101
- provides-extras = ["graph", "tests", "dev"]
1111
+ provides-extras = ["graph", "lance-python", "tests", "dev"]
1102
1112
 
1103
1113
  [[package]]
1104
1114
  name = "lance-graph"
File without changes
File without changes
File without changes