From 1296d59c82948f1e4331b61ac35e9e19ad02aed6 Mon Sep 17 00:00:00 2001 From: Lukas Heumos Date: Wed, 18 Sep 2024 13:46:08 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Use=20uv=20tool=20for=20cellxgene-s?= =?UTF-8?q?chema=20(#99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zethson --- docs/cellxgene-curate.ipynb | 8 +++++--- noxfile.py | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/cellxgene-curate.ipynb b/docs/cellxgene-curate.ipynb index 6dac21d..aac5670 100644 --- a/docs/cellxgene-curate.ipynb +++ b/docs/cellxgene-curate.ipynb @@ -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" ] }, @@ -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" ] }, { @@ -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" ] }, { diff --git a/noxfile.py b/noxfile.py index d7b4926..d8fb8e2 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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 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