Skip to content

Commit

Permalink
test hatch env
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 committed Dec 6, 2024
1 parent 5fb49e6 commit 3fca0f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions hatch.toml
Original file line number Diff line number Diff line change
@@ -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"
9 changes: 0 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 3fca0f2

Please sign in to comment.