From 3fca0f264f5fcd75527e8d04f9e4fda8e184dcdb Mon Sep 17 00:00:00 2001 From: Intron7 Date: Fri, 6 Dec 2024 13:57:37 +0100 Subject: [PATCH] test hatch env --- .readthedocs.yml | 2 +- hatch.toml | 11 +++++++++++ pyproject.toml | 9 --------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 hatch.toml diff --git a/.readthedocs.yml b/.readthedocs.yml index cd3aca12..9f7007c4 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,7 +13,7 @@ build: - asdf global uv latest # Use uv to synchronize dependencies - - uv pip install --system ".[doc]" + - uv sync --extra doc --frozen # Build documentation using uv and sphinx - uv run -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html diff --git a/hatch.toml b/hatch.toml new file mode 100644 index 00000000..7d11867b --- /dev/null +++ b/hatch.toml @@ -0,0 +1,11 @@ +[envs.default] +installer = "uv" +features = ["dev"] + +[envs.hatch-test] +features = ["test", "rapids12"] + +[envs.docs] +features = ["doc"] +scripts.build = "sphinx-build -M html docs docs/_build {args}" +scripts.clean = "git clean -fXd docs" diff --git a/pyproject.toml b/pyproject.toml index d33bc1d2..acb60ac9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,15 +101,6 @@ markers = [ "gpu: tests that use a GPU (currently unused, but needs to be specified here as we import anndata.tests.helpers, which uses it)", ] -[tool.hatch.envs.hatch-test] -features = ["test", "rapids12"] - -[tool.hatch.envs.docs] -installer = "uv" -features = ["doc"] -scripts.build = "sphinx-build -M html docs docs/_build {args}" -scripts.clean = "git clean -fXd docs" - [tool.hatch.build] # exclude big files that don’t need to be installed exclude = [