Skip to content
Merged
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: 2 additions & 0 deletions python/python/tests/compat/test_venv_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
("12.0.0b5", "lance-namespace>=0.8.0,<0.9"),
("12.0.0b6", "lance-namespace>=0.11.1,<0.12"),
("12.0.0", "lance-namespace>=0.11.1,<0.12"),
("14.0.0b9", "lance-namespace>=0.11.1,<0.12"),
("14.0.0b10", "lance-namespace>=0.13.0,<0.14"),
],
)
def test_lance_namespace_dependency(version: str, expected: str):
Expand Down
3 changes: 3 additions & 0 deletions python/python/tests/compat/venv_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@ def _pip_install(python: Union[str, Path], args: list[str]) -> None:
NAMESPACE_0_7_DEPENDENCY = "lance-namespace>=0.7.2,<0.8"
NAMESPACE_0_8_DEPENDENCY = "lance-namespace>=0.8.0,<0.9"
NAMESPACE_0_11_DEPENDENCY = "lance-namespace>=0.11.1,<0.12"
NAMESPACE_0_13_DEPENDENCY = "lance-namespace>=0.13.0,<0.14"


def _lance_namespace_dependency(pylance_version: str) -> str:
# 12.0.0b5 is the last release published while pylance still pinned
# lance-namespace <0.9; releases cut after that carry the 0.11 range.
if Version(pylance_version) >= Version("14.0.0b10"):
return NAMESPACE_0_13_DEPENDENCY
if Version(pylance_version) > Version("12.0.0b5"):
return NAMESPACE_0_11_DEPENDENCY
if Version(pylance_version) >= Version("7.2.0b5"):
Expand Down
Loading
Loading