Skip to content

Commit

Permalink
✨ Use uv tool for cellxgene-schema
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Sep 18, 2024
1 parent 42c5d03 commit 165f8cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 5 additions & 3 deletions docs/cellxgene-curate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
},
"outputs": [],
"source": [
"# !pip install 'lamindb[bionty,jupyter]' cellxgene-lamin cellxgene-schema==5.1.1\n",
"# !pip install 'lamindb[bionty,jupyter]' cellxgene-lamin\n",
"# cellxgene-schema has pinned dependencies. Therefore we recommend installing it into a separate environment using `uv` or `pipx`\n",
"# uv tool install cellxgene-schema==5.1.1\n",
"!lamin init --storage ./test-cellxgene-curate --schema bionty"
]
},
Expand Down Expand Up @@ -88,7 +90,7 @@
},
"outputs": [],
"source": [
"!cellxgene-schema validate anndata_human_immune_cells.h5ad"
"!MPLBACKEND=agg uvx cellxgene-schema validate anndata_human_immune_cells.h5ad"
]
},
{
Expand Down Expand Up @@ -498,7 +500,7 @@
},
"outputs": [],
"source": [
"!cellxgene-schema validate anndata_human_immune_cells_cxg.h5ad"
"!MPLBACKEND=agg uvx cellxgene-schema validate anndata_human_immune_cells_cxg.h5ad"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ def install(session: nox.Session, group: str) -> None:
elif group == "validator":
extras = "bionty,jupyter,aws,zarr"
run(session, "uv pip install --system tiledbsoma")
run(session, "uv pip install --system cellxgene-schema==5.1.1")
run(session, "uv tool install --system cellxgene-schema==5.1.1")
install_lamindb(session, branch="main", extras=extras)
run(session, "uv pip install --system .[dev]")
run(session, "uv pip install --system numpy==1.23.2") # issue 94


@nox.session
Expand Down

0 comments on commit 165f8cd

Please sign in to comment.